| |
| | |

CodersClub

 Forgot password?
 Register
Search
View: 7142|Reply: 3
Collapse the left

X2 Language Pack Verifier

[Copy link]

 Russia

Post time: 2011-12-11 11:23
| Show all posts |Read mode
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:
  1. X2ML LANGUAGE PACK VERIFIER
  2. (c) by Valery Votintsev (vot), http://codersclub.org/discuzx/
  3. -------------------------------------------------------------
  4. Set the language for check!
  5. Example:
  6. /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:
  1. CHECK LANGUAGE started.
  2. Directory: source/language/zh/

  3.    Checking file: lang_action.php
  4.    ....
  5. ------------------------
  6. 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/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.

 Palestine

Post time: 2011-12-11 13:15
| Show all posts
GREAT,why not make plugin for this like official verifier (chinese pack)

 Russia

 Author| Post time: 2011-12-11 13:28
| Show all posts
why not make plugin for this like official verifier (chinese pack)

It is in ToDo.
But I have only 24 hours per day...
May be, you have more?

What about to get and solve any task you wanted?
And put your solution here!

 Palestine

Post time: 2011-12-11 19:33
| Show all posts
vot replied at 2011-12-11 12:28
It is in ToDo.
But I have only 24 hours per day...
May be, you have more?

You are right

sorry
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-05-07 00:44 GMT+3 , Processed in 0.056303 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