| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 9214|Reply: 2
Collapse the left

UCH2ML Language Verifier

[Copy link]

 Russia

Post time: 2011-12-05 12:54
| Show all posts |Read mode
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:
  1. Check for UCHome 2.0 Language Pack Integrity
  2. Set the language for check!
  3. Example:
  4. /uchome2/_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:
  1. Check for UCHome 2.0 Language Pack Integrity

  2. CHECK LANGUAGE started.
  3. Directory: language/en/

  4.    Checking filelang_admincp.php
  5.    Checking filelang_cp.php
  6.    Checking filelang_cpmessage.php
  7.    Checking filelang_exif.php
  8.    Checking filelang_install.php
  9.    Checking filelang_showmessage.php
  10.    Checking filelang_source.php
  11.    Checking filelang_source2.php
  12.    Checking filelang_template.php
  13.    Checking filelang_title.php

  14. ------------------------
  15. CHECK LANGUAGE finished.
Copy the Code
If you see Warning or Error message like this:
  1. Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /www/Blog/htdocs/uchome2/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


This post contains more resources

You have to Login for download or view attachment(s). No Account? Register

x

 China

Post time: 2011-12-10 18:05
| Show all posts
That's great. Thanks

 Russia

 Author| Post time: 2011-12-10 19:37
| Show all posts
UCHome2ML: Language Verifier script added to the repository.

http://code.google.com/p/discuzx-en/source/detail?r=234
You have to log in before you can reply Login | Register

Points Rules

Archive|Mobile|Dark room|CodersClub

Top.Mail.Ru
Top.Mail.Ru

2024-11-22 03:27 GMT+3 , Processed in 0.048141 sec., 8 queries .

Powered by Discuz! X3.4 Release 20230520

© 2001-2024 Discuz! Team.

MultiLingual version, Rev. 4301, © codersclub.org

Quick Reply To Top Return to the list