Vietnam
|
Edited by fanha99 at 2012-4-8 18:30
hi, I checked the r19
there is some EN files not sync with the SC, right?
so I only need to compare with the SC?
how to enable the langs switch? can you show me the link?
is there some usefull tool to check the lang files?
I attach my tool:
1. discuz_langdiff.php to check 2 lang folder. it will check all the .php files, one by one, and show the result:
--- count the number of text id inside each file. you will know is there missing some text in the file.
--- list out all the text id which is exist in the A lang, but not exist in the B lang
--- list out all the text id which is exist in the B lang, but not exist in the A lang
2. discuz_genfile.php sort the text id of B lang, to make sure it have the same order with A lang,
for each text id,
-- it will get from B if that id exist in both files.
-- get from A if not exist in B but exist in A
-- discard all the text id which is not exist in A
how to use:
- copy these 2 file into you main folder of discuz
- edit
- $mlang = "sc";
- $tlang = "en";
Copy the Code - call it via browser.
for the 2nd tool, you will need to define the file name too
- checkdir("source/language/". $mlang. "/", "forum/lang_template.php");
Copy the Code - call it via browser. then press ctrl+u in the result screen
with these 2 tools, you can make sure you are not missing any text id when you translate.
I hope these tool is useful.
any bug report is welcome.
|
|