Pages: [1]
Tags: ADMINISTRATOR BACKUP ANONUSER BOARDMODERATOR ENGLISH GEORGE LNG MIN MSG NEWLANGUAGEFILE QUOT WEBPAGE
  Author: Topic: Some fast tips...How to avoid errors!
offline On
Last Visit: 05/20/06

Level 7
Dev
Joined: 06/19/03
Forum Posts: 6737
 Some fast tips...How to avoid errors!
 Posted on: 08/28/04 at 16:43:47

If you have just translated the language file and for some reason see either:
[*] Only english!  or
[*] Blank page without any words!
[*] The page crushes!

Do not panic :)

This means you have most likely done one or more of these mistakes:

1.) Never change this:
$anonuser = "Guest";
$root = "Administrator";
$boardmoderator = "Moderator";

2.) If you need to use " " at the middle of a line, than place a \    before it.

Example:
$msg{'1000'} = "and than he said:\" I just got to do it! \" and he did it...";

3.) The same for using @

Example:
$msg{'1000'} = "and his email was:george\@nowhere.no But I never bothered sending him anything!";

4.) Fast debugging?
[*] Backup your english.lng
[*] Set webpage on english.lng as default.
[*] Copy/paste in to the english.lng 100 lines at a time from your newlanguagefile.lng
[*] Refresh website, if no error.. these 100 lines were ok, go for the next 100 or even 500. If error. than you know where the error is. It should not take more than 10 min to debug the lng file with this system.
[*] When done rename english.lng  to your_language.lng  and upload the backed up english.lng   you made it!

Good luck!





"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
(Damian Conway from the book Perl Best Practices).



[*]LANGUAGE FILES (and language support) -> http://www.mlapp.org... external link
[*]FOR THE LATEST WEB-APP SECURITY PATCHES -> http://www.mlapp.org... external link
[*]FOR THE LATEST WEB-APP MODS (addons) -> http://www.web-app.net... external link  /perl/webapp/modapp/
[*]FOR THE LATEST VERSION OF STATSLOG script (security addon) -> http://www.mlapp.org... external link
[*]TO CONTACT ME CLICK HERE-> info@mlapp.org OR VISIT-> http://www.mlapp.org... external link
 


[/center]
Logged
       

  Some fast tips...How to avoid errors!
  Language Support
  Forums
  
Pages: [1]
Hop to: