![]() |
Topic: Some fast tips...How to avoid errors! | ||||
![]() Last Visit: 05/20/06 ![]() Level 7 Dev Joined: 06/19/03 Forum Posts: 6737 |
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! (Damian Conway from the book Perl Best Practices). [*]LANGUAGE FILES (and language support) -> http://www.mlapp.org... ![]() [*]FOR THE LATEST WEB-APP SECURITY PATCHES -> http://www.mlapp.org... ![]() [*]FOR THE LATEST WEB-APP MODS (addons) -> http://www.web-app.net... ![]() [*]FOR THE LATEST VERSION OF STATSLOG script (security addon) -> http://www.mlapp.org... ![]() [*]TO CONTACT ME CLICK HERE-> info@mlapp.org OR VISIT-> http://www.mlapp.org... ![]() ![]() ![]() ![]() ![]() ![]() |
||||
Logged |
|
![]() ![]() ![]() ![]() ![]() | ||
Pages: [1] |