$Configuration['Garden']['Locale'] = 'LANG'; changes locale globally for whole forum and there is no way to change it per user at the moment
locale definitions priority of loading:
/applications/APPLICATION_NAME/locale/LANG/definitions.php
/plugins/PLUGIN_NAME/locale/LANG/definitions.php
/themes/CURRENT_THEME_NAME/locale/LANG.php
/conf/locale-LANG.php or /conf/locale.php if not found
Gdn:GetAvailableLocaleSources() scans only /applications/dashbord/locale/*
So it is not much.There is no list of definitions and it is not easy to create one
- need to grab by addon when using forum or
- go through source files and get definitions from T()/Translate() function or
- use some other translation which already went through this definitions' collecting
Vanilla co-founder
When talking about locale files loading I was talking about priority of loading, not priority of definitions used :)PS: Your priority listing of file locations seems to be in the opposite order. A conf/locale.php is checked first, then the theme, etc.
Process of reading definitions from locale files will take more time than just PHP include. It should be cached.
Cache will be per language priority combination, not user. There can be thousands of users, but there is only limited number of language priority settings
Cache has to be cleared when there is a change in any of the locale files.
Vanilla co-founder
Vanilla co-founder
It looks like you're new here. If you want to get involved, click one of these buttons!