Defect #6882
Plugin multilanguage not working
| Status: | New | Start date: | 2010-11-13 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 0% |
|
| Category: | Plugin API | |||
| Target version: | - | |||
| Affected version: | 1.0.3 | Resolution: |
Description
I have noticed, that eaven if there are both language files (plugin-dir/config/local and lang), when switching languages, it shows that it has not found those language strings.
Only after I copy that plugin language content to main (config/locales) file, only then, it works. I think it's a bug, cause default version (english) is working correctly, no errors shown, but when switch language, errors reaveals.
I have checked, my new language files is copy of english ones, and have added correct country code and everything is set to work, but no.
History
#1 Updated by Nils Linde over 1 year ago
- Assignee deleted (
Azamat Hackimov)
#2 Updated by Jean-Philippe Lang over 1 year ago
- Category changed from Translations to Plugin API
- Priority changed from High to Normal
I've just tested with 1.0.3 and the sample plugin (that can be found in extra/sample_plugin) and localization is fine.
#3 Updated by Nils Linde over 1 year ago
So, that could be the plugin problem?
Is there anything more to be done, than just adding a yml file to those directories with specific language code (and for new version, adding language code to first line, e.g. en: or lv:)?
#4 Updated by Henrik Ammer over 1 year ago
Nils Linde wrote:
So, that could be the plugin problem?
Is there anything more to be done, than just adding a yml file to those directories with specific language code (and for new version, adding language code to first line, e.g. en: or lv:)?
Have you restarted the webserver? Cuz my webserver running Redmine in production mode definatly needs one for new language files.
#5 Updated by Nils Linde over 1 year ago
Henrik Ammer wrote:
Nils Linde wrote:
So, that could be the plugin problem?
Is there anything more to be done, than just adding a yml file to those directories with specific language code (and for new version, adding language code to first line, e.g. en: or lv:)?Have you restarted the webserver? Cuz my webserver running Redmine in production mode definatly needs one for new language files.
Ofcourse, it needs restart after every string change, cause it needs to recompile templates. Have done that, nothing helps...