I never understood how it works if pirate and yoda are in english? They are automatically translated for you on post or...?
Re: English British support
« Reply #15, on October 12th, 2011, 08:26 PM »
I can't see it disappearing either, in which case we might as well remove the internal disable option for it.
That's not a bad idea. A little bit tricky to get right, but certainly doable.Quote add a version number to every single language file
The variable nature before made it practically impossible to get this one right,
I never understood how it works if pirate and yoda are in english? They are automatically translated for you on post or...?
(And even better -- cache the resulting language...)
(e.g. we just do a md5 of the contents, after removing comments and whitespace.)
Question. Let's say we have arbitrary language x, based on language y, neither of which is English. Do we load English, then y then x?
Caching is a tricky subject for languages. Caching into the cache folder in the usual fashion? If so, I'm not clear how it helps performance.
$txt += array(
'lang_locale' => 'fr_FR',
'lang_dictionary' => 'fr',
'lang_spelling' => 'french',
'lang_rtl' => false,
'lang_capitalize_dates' => false,
'number_format' => '1 234,00',
'time_format' => '%e %B %Y à %H:%M',
...
No, we should store it as a version number in the file rather than rely on contents as unless we store changes in the DB, the language files should be considered volatile.Quote (e.g. we just do a md5 of the contents, after removing comments and whitespace.)
Elsewhere I mentioned gathering a list of the languages in a manner that encourages loading the files themselves to get the language's own name from it. Putting the version number would be trivial to load at that point.
$txt = unserialize('...') is only 10% faster than the regular version on index.french.php. Although this is about 50% faster:
No no, I do mean having the version number in the file -- I just mean we should have a script, on our side, that will go through the language files and increase the version number inside the files if they're found to have been changed against our reference files
- I meant array_merge of course.
- sounds good. Is it what smf used to update tier changelog number? ;)