public function i18ntest()
	{
		self::$i18ntest1 = t('Google is nice');
		self::$i18ntest2 = t('%name is %what', array('name' => 'Google', 'what' => 'shit'));
		self::$i18nfromAlpha = t('This message comes from alpha');
		self::$notFoundWithParams = t('Message not found with %n paramaters', array('n' => 1));
	}
Example #2
0
	public function testI18nManual()
	{
		I18n::setLanguage('nl');
		
		CoOrg::process('alpha/sub/i18ntest');
		
		$this->assertEquals('Google is leuk', AlphaSubController::$i18ntest1);
		$this->assertEquals('shit van Google', AlphaSubController::$i18ntest2);
		$this->assertEquals('Dit bericht komt van alpha', AlphaSubController::$i18nfromAlpha);
		$this->assertEquals('Message not found with 1 paramaters', AlphaSubController::$notFoundWithParams);
		AlphaSubController::$i18ntest1 = '';
		AlphaSubController::$i18ntest2 = '';
		AlphaSubController::$i18nfromAlpha = '';
		AlphaSubController::$notFoundWithParams = '';
	}