Changes

From SME Server
Jump to navigationJump to search
Line 135: Line 135:  
The DBs are created by a part of the smanager-refresh, specifically the /etc/e-smith/events/actions/navigation2-conf.  And it uses a category of lex files found under the "General" directory in the I18M/Modules directory.These Lex files in the General category do not have the prefix on the key string (so $c->l("Save") works). For each menu entry it uses the General lex file (actually the equivalent .pm file) to resolve the translation of the "description" and the "heading" in the controller file and slots it into the navigation2.<langCode> file.  
 
The DBs are created by a part of the smanager-refresh, specifically the /etc/e-smith/events/actions/navigation2-conf.  And it uses a category of lex files found under the "General" directory in the I18M/Modules directory.These Lex files in the General category do not have the prefix on the key string (so $c->l("Save") works). For each menu entry it uses the General lex file (actually the equivalent .pm file) to resolve the translation of the "description" and the "heading" in the controller file and slots it into the navigation2.<langCode> file.  
   −
The General .lex file will need to be converted to a .po file in order to be translatable by Weblate.  
+
The General .lex file will need to be converted to a .po file in order to be translatable by Weblate and converted back. I'll enhance the Lex2po program to do this. 
    
==== Testing in a Chromium based Browser ====
 
==== Testing in a Chromium based Browser ====

Navigation menu