Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

General discussion
  1. OpenProject
  2. Forums
  3. General discussion
  4. Custom translation unavailable

Custom translation unavailable

Added by Paweł Paluch over 8 years ago

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.


Replies (4)

RE: Custom translation unavailable - Added by Jens Ulferts over 8 years ago

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

RE: Custom translation unavailable - Added by Paweł Paluch over 8 years ago

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

RE: Custom translation unavailable - Added by Jens Ulferts over 8 years ago

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

RE: Custom translation unavailable - Added by Paweł Paluch over 8 years ago

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.

  • (1 - 4/4)
Loading...