Open link in a new tab

Content

Expand project menu

Custom translation unavailable

Hello,
comming from redmine i liked openproject much more :)
6.1.1 installed via apt on ubuntu 14.04.
I’ve created my own translation and put it in config/locales/pl2.yml and js-pl2.yml.
Problem is that it won’t show as one of available languages in admin panel /settings?tab=display .
I know there is a plugin for translations created on crowdin but that is not what i’m interrested in.
I’m PHP dev and i don’t have any experience in ruby but i was able to track that list of available languages is created by listing files in config/locales/*.yml . I have no idea why my translation won’t show on languages list.
I would appeciate any hints.

Message actions

Hi Paweł,

you will still need to have the translations plugin installed. Place your custom translations into the config/locales folder within the plugin and the system should pick it up.

Regards

Jens

Message actions

Plugin is installed and running. I can see many languages available but not the one i’ve put in config/locales.

Message actions

Hi Paweł,

this is probably due to the name of the files (pl2.yml and js-pl2.yml) which do not conform to the standard schema of the files as pl2 is not a valid locale.

Given that, and if you do not need to keep the original polish l10n file, I propose using the diff and patch commands to extract the differences you have in pl2.yml/js-pl2.yml and apply them to pl.yml/js-pl.yml. This has the additional benefit of allowing you to benefit from changes to the original l10n files in upcoming versions and to reapply the patch to those versions again.

If that is not an option, you will probably have to rename the files to something that is a valid locale.

Regards

Jens

Message actions

OMG i’ve figured it out. Only missing part was service openproject restart. I think there is some lang cache that’s cleared on startup.
Thanks for help.