Translation File Checklist.

e107 CMS » Forums » Miscellaneous » Translations << Previous thread | Next thread >>
CaMer0n
Jun 23 2006, 07:07PM
CaMer0n
  • e107 Main site administrator
  • e107 Core developer
  • e107 Design Team
Registered Member #1013
Joined: Feb 27 2003, 06:41AM
Location: Las Vegas, NV, USA
Posts: 766
If you are getting blank pages, or if others are, you should check the following in your language pack files:

  • Check for Syntax errors in the php code. A missing " or ); will halt everything.
  • Make sure that none of your translated files contain a BOM or Byte-Order-Mark. (will not be visible when viewing in utf-8 mode). ie. if you see  , it needs to be deleted.
    Note: Notepad creates a BOM by default when saving as utf-8, try removing the  with an ASCII php editor.
  • Make sure your {Language}.php file has the correct CHARSET and that your browser is detecting it as such. (usually it's View -> Character Encoding, in the browser)
  • If you still get a blank page, login as admin and add ?[debug] to the URL.
    example: news.php?[debug] OR news.php?[debug]item.41
    - you should then be able to see what the php error is.

Hope this helps.

Update:

The no 1 thing you can do for checking your language pack is to use the tool that was made for this purpose.
Go to admin -> languages -> tools.


Cameron

[ Edited Jul 23 2010, 05:06AM ]
Go to top
eesh
Jun 24 2006, 02:48AM
Registered Member #3100
Joined: Sep 06 2003, 11:20AM
Posts: 10
I've worked with files with BOMs now and then, and IIRC I didn't see any problems.. Maybe it has something to do with the OS or something?
Go to top
CaMer0n
Jun 24 2006, 07:51PM
CaMer0n
  • e107 Main site administrator
  • e107 Core developer
  • e107 Design Team
Registered Member #1013
Joined: Feb 27 2003, 06:41AM
Location: Las Vegas, NV, USA
Posts: 766
Yeah.. from what I can tell, on some systems it halts the script, on others it ignores it and runs properly. Also, if you have a BOM in your script, you will get a warning when you try to validate the xhtml of the page at W3c.
Go to top
G3D45
Jul 06 2006, 12:20AM
Registered Member #18052
Joined: May 25 2005, 09:31AM
Posts: 10
I have this problem.. I dont have any problems with white pages till I updated my site from 0.72 to 0.75. No content pages can't be seen. Why everything goes fine with version 0.72, but with version 0.75 not? Also ?[debug] doesn't help
Go to top
Lion
Jul 12 2011, 10:34AM
Registered Member #31981
Joined: Nov 03 2006, 01:01PM
Location: Czech Republic
Posts: 15
Hi, I found out my signup.php does not work in my language, as I see on the top, I should check all language files, shouldn't I? Will it help?
English lang signup.php works properly.

and it might be related also to Prefs / no menu on right side like security, (in English right menu is shown)
Thank you
[ Edited Jul 12 2011, 10:36AM ]
Go to top
Website
marj
Jul 12 2011, 10:43AM
marj
Registered Member #1159
Joined: Mar 16 2003, 08:00AM
Posts: 6161
If you've got troubles on signup in your language, the problem is surely in lan_signup

use a proper editor to find out and correct the bug
using the debug mode may help to narrow down where it is located
Go to top
Lion
Jul 12 2011, 10:54AM
Registered Member #31981
Joined: Nov 03 2006, 01:01PM
Location: Czech Republic
Posts: 15
hm, debug
Parse error: syntax error, unexpected '<' in /var/www/web5/klubka.com/klubka.com/e107_languages/Czech/lan_usersettings.php on line 2
[ Edited Jul 12 2011, 11:14AM ]
Go to top
Website
Lion
Jul 12 2011, 11:17AM
Registered Member #31981
Joined: Nov 03 2006, 01:01PM
Location: Czech Republic
Posts: 15
so it is fixed now thank you, I missed the debug mode on the top.
Go to top
Website
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System