silverstripe-framework/tests/i18n/_fakewebroot/i18ntestmodule/lang/de.yml
Devlin 1e5679f20f BUGFIX i18n module load order in i18n::include_by_locale()
The "project" module (normally mysite) is considered with the highest priority. Yet, the project's i18n is loaded first and cannot overwrite existing translations. I've added a array_reverse(), so the iteration keeps the translation of the module with the highest priority.

Old $sortedModules: mysite, (other_modules,) cms, admin, framework.
New $sortedModules: framework, admin, cms, (other_modules,) mysite.
2013-10-11 15:20:51 +02:00

17 lines
681 B
YAML

de:
NONAMESPACE: Include Entity without Namespace (de)
SPRINTFNONAMESPACE: My replacement no namespace: %s (de)
SPRINTFINCLUDENONAMESPACE: My include replacement no namespace: %s (de)
LAYOUTTEMPLATENONAMESPACE: Layout Template no namespace (de)
i18nTestModule:
# Comment for entity
ENTITY: Entity with "Double Quotes" (de)
ADDITION: Addition (de)
MAINTEMPLATE: Main Template (de)
WITHNAMESPACE: Include Entity with Namespace (de)
LAYOUTTEMPLATE: Layout Template (de)
SPRINTFNAMESPACE: My replacement: %s (de)
PRIORITYNOTICE: Low Module Priority (de)
i18nTestModuleInclude.ss:
SPRINTFINCLUDENAMESPACE: My include replacement: %s (de)