Ticket #150 (new defect)
Compile message bundle for installed languages
|Reported by:||andy_st||Owned by:|
translate() calls either result in a translation or fall back to the root locale (= the source message in en_US).
Before falling back from locale xx_YY to root, it should traverse the locale tree.
I.e. try xx_YY, then xx, (then maybe xx_*), then default_locale, then root.
- Generate a messages_xx_YY.php file for each installed locale xx_YY.
- When the language settings are changed or translations are fetched, generate that messsages_xx_YY.php file.
- Change the I18n library to load messages_xx_YY.php instead of querying the DB.