Russia
|
As I see, many users have a lot of problems with strange X2 errors and faults because of mistakes in language files.
For ensure that your language pack is ok, I have prepared a simple Language Pack Verifier script.
How to use:
1) Upload the file _check_lang.php into your X2ML root folder.
2) Visit the URL:
your_site.tld/your_folder/_check_lang.php
3) You will see a usage prompt, like this:- X2ML LANGUAGE PACK VERIFIER
- (c) by Valery Votintsev (vot), http://codersclub.org/discuzx/
- -------------------------------------------------------------
- Set the language for check!
- Example:
- /Discuzx20ml/_check_lang.php?lang=en
Copy the Code 4) Add the "lang" parameter in your URL and press Enter.
5) If all the language files are correct, you will see a screen like this:- CHECK LANGUAGE started.
- Directory: source/language/zh/
- Checking file: lang_action.php
- ....
- ------------------------
- CHECK LANGUAGE finished.
Copy the Code If you see Warning or Error message like this:- Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /www/Blog/htdocs/discuzx2/language/en/lang_admincp.php on line 25
Copy the Code so, you have a problem at line 25 in the file lang_admincp.php.
You must verify the file and eliminate the problem.
Repeat this procedure for each language pack until no errors will be detected.
Enjoy 
P.S.
Language Pack Verifier is allready uploaded into the X2ML repository.
|
|