silverstripe-framework/_config/i18n.yml
Hamish Friedlander efea4dbe94 NEW Allow specifying priority for translations
Priority for translations was hardcoded, and hardcoded the project name as "mysite".

This takes the order from a configuration property "module_prority". You can
use standard config fragment before and after rules to make a module less or
more important than anything else, with these tweaks:

 - Unless it has it's order explicitly defined, the "project" module (normally mysite)
   will be considered highest priority

 - There is an "other_modules" value in the order list which will be replaced by
   all the modules (except the project module) that don't have their order
   explicitly defined.
2013-05-06 12:51:46 +12:00

16 lines
178 B
YAML

---
Name: basei18n
Before: '/i18n'
---
i18n:
module_priority:
- admin
- framework
- sapphire
---
Name: defaulti18n
---
i18n:
module_priority:
- other_modules