Content
You are here:
Missing translation <language name>.js.toolbar.unselected_title
Added by Alexey Gagarin over 10 years ago
Hi, I decided to write my problem down here, as apparatenty it’s not gonna be fixed quickly in Bugs section.
I’m using the latest (30.07.2014) dev git branch of openproject.
I have succesfully created ru.yml file and translated it fo Russian. Everything is displayed in Russian as intended, except when I click on Work Packages section. Than I see the same
screen as on attachments.
I’m completely dumb in Ruby, so maybe the fix can be quick’n’easy? Any ideas?
Thanks in advance.
Replies (7)
Hi Alexey,
could you try the following steps and see if it solves the problem for you?:
1. Delete the cache on your OpenProject system:
2. Delete translations.js
3. Clear the browser cache
Best,
Robin
We finally switched to stable release of OP 4.x. When we first installed it, we came across the very same bug, “missing ru.js….”
This time we were able to fix it.
Steps to take (for any language, tested on Russian and Spanish):
1. Open app/assets/javascripts/angular/openproject-app.js in your OP folder (mine is /var/www/openproject)
2. Find the following strings:
window.I18n = I18n;
I18n.translations.de = require(“json./../../../../config/locales/js-de.yml”).de;
I18n.translations.en = require(“json./../../../../config/locales/js-en.yml”).en;
3. Add your line accordingly (For Russian — I18n.translations.ru = require(“json./../../../../config/locales/js-ru.yml”).ru;
4. Create localization file in your config/locales/ folder, js-ru.yml as follows.
5. Copy the contents of js-en.yml to your js-ru.yml and translate it to your language
6. — su - openproject -c “bash -l”
— cd /var/www/openproject
— source /home/openproject/nodeenv/bin/activate
— bundle exec rake assets:precompile RAILS_ENV=production
7. Start your OP server (if you use Apache Passenger as I do, just restart it)
8. Clear the cache of your browser and reload the OP page. You should be fine now.
Hello i have the same problem with spanish,
i follow up the instructions that Alexey said, but in app/assets/javascripts/angular/openproject-app.js i didnt find any of these lines:
I18n.translations.de = require(“json./../../../../config/locales/js-de.yml”).de;
I18n.translations.en = require(“json./../../../../config/locales/js-en.yml”).en;
how can i fix it, and can i download the crowding transalate to do i manually?
please help me
1. Did you use .deb / .rpm version of OpenProject? I’ve installed it from source tarball.
2. What version of OP are you using? The fix I provided applies only to 4.x branch.
3. Unfortunately, I do not have the complete translation file of Spanish language. We test it just to make sure other translations different from DE and EN have this problem too. :)
thanks for ur answer
1: i use .rpm version
2: i use 4.0
i update tu 4.0.1 and it fix it up
thank you
I can confirm this is as a regression in the dev branch. We’ll try to roll out a fix as soon as possible. In the meantime, if you want to deploy an instance of OpenProject with languages other than German or English, I’d recommend sticking to a release / the 4.0.x branch.