Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
1454 มุมมอง

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
1899
1
ก.ค. 25
1135
1
เม.ย. 25
1071
0
มี.ค. 25
1024
0
ธ.ค. 24
1481