Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
1463 Näkymät

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 :




Avatar
Hylkää
Tekijä Paras vastaus

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. 

Avatar
Hylkää
Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
4
heinäk. 25
1902
1
heinäk. 25
1140
1
huhtik. 25
1073
0
maalisk. 25
1030
0
jouluk. 24
1485