Content
View differences
Updated by Robin Wagner over 10 years ago
Hello Guys,
I upgrade from openproject-ce 4.2.9 (package install - Debian) and was not able to run in Brazilian Portuguese. Javascript throw error “Cannot find module ‘./angular-locale\_pt-BR.js’”. Look in Angular map, it is lower case ‘./angular-locale\_pt-br.js’. In html, ‘lang’ attribute is ‘pt-BR’. Then I add toLowerCase in the code below (frontend/app/openproject-app.js):
// depends on the html element having a ‘lang’ attribute
var documentLang = angular.element(‘html’).attr(‘lang’).toLowerCase() || ‘en’;
require(‘angular-i18n/angular-locale\_’ + documentLang + ‘.js’);
Its run, but I am not sure.
Thank you.
(Sorry my English)
I upgrade from openproject-ce 4.2.9 (package install - Debian) and was not able to run in Brazilian Portuguese. Javascript throw error “Cannot find module ‘./angular-locale\_pt-BR.js’”. Look in Angular map, it is lower case ‘./angular-locale\_pt-br.js’. In html, ‘lang’ attribute is ‘pt-BR’. Then I add toLowerCase in the code below (frontend/app/openproject-app.js):
// depends on the html element having a ‘lang’ attribute
var documentLang = angular.element(‘html’).attr(‘lang’).toLowerCase() || ‘en’;
require(‘angular-i18n/angular-locale\_’ + documentLang + ‘.js’);
Its run, but I am not sure.
Thank you.
(Sorry my English)