Added by Rob Mosher over 7 years ago
Hi,
Wondering if it’s possible to rename the “Projects” tab at the top to something else. Also, any reference to that categorization’s cAsE or pluralization such as “project” becoming “widget” and “Projects” to “Widgets” etc.
Thanks!
Replies (4)
Hi Rob,
these labels stem from the translations we provide at
config/locales/en.yml
(andjs-en.yml
for translations provided in the frontend). They are being translated by users on Crowdin, so its not really feasible to change this permanently.You can just alter the mentioned files, but keep in mind these may be overridden by updates. A more permanent alternative would be to maintain your own translation with the alterations you need.
Best,
Oliver
Thank you for your response Oliver. I like your solution, though are translations extensible? Ie - could I base it off of English and just opt to change certain terms, or would I have to maintain a custom translation fully (which would match 99.9% with the English translation).
Yes, we use the i18n gem (and i18n-js library) to provide translations, which use fallbacks to allow partially translated languages defaulting back to english.
Thank you Oliver. I will look into this further but could you provide a brief description of how this would incorporate into OpenProject to get me started? I’m guessing I’d set the language in OP to a language I would “create” which contains only the words/phrases I want to customize, and then i18n would then populate with the remaining words with another language, English in my case. Yes?