Initial translation setup#85
Conversation
There was a problem hiding this comment.
It would be nice if we didn't have to do this to run the factory, but I don't have any immediate ideas.
There was a problem hiding this comment.
Should be ZendSkeletonApplication
- s/ZendSkeletonModule/ZendSkeletonApplication in de_DE po file - Switch back to en_US in module.config.php after accidental commit
There was a problem hiding this comment.
Right now the locale is being hardcoded to en_US. Perhaps we should add the ability to choose a language in the skeleton to illustrate how to change the locale?
There was a problem hiding this comment.
Good idea -- though, I'm not exactly sure what the best practice is on this, or how well routes support something like prepending a locale to the route stack... @DASPRiD may have more feedback on how he intended to handle this.
There was a problem hiding this comment.
Hi Evan,
that could be solved like that:
$localeList = array(
'en_US',
'en_UK',
'fr_FR',
'fr_CA',
'de_DE',
'tr_TR',
);
$browser = Locale::acceptFromHttp($_SERVER['HTTP_ACCEPT_LANGUAGE']);
$locale = Locale::lookup($localeList, $browser, 'en_US');since Zend\Locale\Locale::getBrowser() has been removed, but this would cause a direct depandancy to php5-intl extension, which isn't activated/loaded on the half of isp's in Germany, i don't know what is givven in the us
There was a problem hiding this comment.
We could check if class_exists first. Thoughts?
There was a problem hiding this comment.
Sure, why not. I hope that our ISP's will be forced to load intl by ZF2 release. ^^
There was a problem hiding this comment.
Hmmm, I think we might have to add something to the TranslatorServiceFactory to do this cleanly.
Pointed out by @coss.
Adds ar_SY translation
This merges PR zendframework#85
This PR adds the following translations:
Thank you to everyone who has contributed translations so far! You're all awesome!