Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1440 Представления

Hello guys:


Recently i got some problem with the translation function : 

I export the .po file for modules and revised some translation in the file,  after finished I move the file into the directory i18n .  But it has no effect on the frontend pages, no matter I tried restart server、re-activing the language、upgrading the module whatever.


The main problems are as follows:

  • For the custom modules I created,  some records missed for unknown reason when i export the .po file,  but they obviously present on the page .  I tried adding the missed strings and their translation into the file manually, but no effect.
  • For the module 'base' , the .po file seems ok but no effect after applied.  I even tried initializing / upgrading the module with CLI command (-i base , --i18n-overwrite -u base) 、directly modifying the source .po file in /base/i18n but still no effect.


I'm confused if anything i missed with the translation process? Please kindly help with any following questions:

1、Does the translation for 'base' module can be modified or not ?  If yes, any tips?


2、I noticed by chance that the translation can only be added in the database , but seems cann't be removed even if you set the language de-active(see images below). 

So ,  activing a language is Irreversible ? How to uninstall a language to relieve the database load? 

 

In database :




Аватар
Отменить
Автор Лучший ответ

Self answer for whom may need:

After searching on internet and practising , here is partial answer for question #1 :

Double check if the target file is set as noupdate . 


 In the module 'base',a few files are set as noupdate=1, which means data inside could not be updated once the module installed,including translation change


For example:  I meant to modify the translation for countries' name in the model 'res.country',  but no effect whatever i did yesterday.  Finally i noticed the data file is noupdate:

After changing it to noupdate=0, the translation updated as well. 

Аватар
Отменить
Related Posts Ответы Просмотры Активность
4
июл. 25
1888
1
июл. 25
1125
1
апр. 25
1063
0
мар. 25
1016
0
дек. 24
1481