vot Publish time 2011-12-05 12:54

UCH2ML Language Verifier

As I see, many users have a lot of problems with strange UCHome 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 UCHome root.
2) Visit the URL:
your_site.tld/your_folder/_check_lang.php

3) You will see a usage prompt, like this:Check for UCHome 2.0 Language Pack Integrity
Set the language for check!
Example:
/uchome2/_check_lang.php?lang=en4) 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 for UCHome 2.0 Language Pack Integrity

CHECK LANGUAGE started.
Directory: language/en/

   Checking filelang_admincp.php
   Checking filelang_cp.php
   Checking filelang_cpmessage.php
   Checking filelang_exif.php
   Checking filelang_install.php
   Checking filelang_showmessage.php
   Checking filelang_source.php
   Checking filelang_source2.php
   Checking filelang_template.php
   Checking filelang_title.php

------------------------
CHECK LANGUAGE finished.If you see Warning or Error message like this:Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /www/Blog/htdocs/uchome2/language/en/lang_admincp.php on line 25so, 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 :)


Simon Publish time 2011-12-10 18:05

That's great. Thanks

vot Publish time 2011-12-10 19:37

UCHome2ML: Language Verifier script added to the repository.

http://code.google.com/p/discuzx-en/source/detail?r=234
Pages: [1]
View full version: UCH2ML Language Verifier