Site Links
Home
Features
Documentation
Pricing & Order
Members Area
Support Options
Who's Online
7 registered (Djuma, driv, FordDoctor, Gardener, Mike L, Ruben Rocha, 1 invisible), 20 Guests and 13 Spiders online.
Key: Admin, Global Mod, Mod
Featured Member
Registered: 11/21/08
Posts: 1
Top Posters (30 Days)
Ruben Rocha 180
Gizmo 112
Rick 106
Thelockman 79
driv 43
AllenAyres 35
ntdoc 28
Ian 24
Sirdude 23
ScriptKeeper 20
Latest Photos
My Home System
test photo gallery
Bernese Mountain Dogs
My Daimler
Dorado and shark
Topic Options
Rate This Topic
#184348 - 05/17/07 07:41 AM How to check a language files?
ehm1 Offline
member

Registered: 06/07/06
Posts: 144
I ask an user from my forum to do the translation to Spanish on my forum.
She send all files back and I upload it. Now if one change the language preference to Spanish, the next login he/she will receive a blank screen. No error message, just a blank screen.
Is there any fast/easy way to check the language files for errors other then open one by one and visually see if there is ";" at the and of each line, no " in the middle of each line, all translation are between "", and etc.?
I start doing it mannualy, but takes very long time for each file...
Thank you

Top
#184351 - 05/17/07 07:49 AM Re: How to check a language files? [Re: ehm1]
Rick Administrator Offline

*****

Registered: 06/04/06
Posts: 7903
Loc: Aberdeen, WA
If you have command line access to the server, you can run "php -l" on each language file to check syntax on the file. If you don't then you can probably use a good php editor to load in the files on your local computer and use the editor to check syntax.
_________________________
UBB.threads™ Developer
My Personal Website · StogieSmokers.com

Top
#184352 - 05/17/07 08:08 AM Re: How to check a language files? [Re: Rick]
ehm1 Offline
member

Registered: 06/07/06
Posts: 144
 Originally Posted By: Rick
If you have command line access to the server, you can run "php -l" on each language file to check syntax on the file. If you don't then you can probably use a good php editor to load in the files on your local computer and use the editor to check syntax.


That is an idea. I open it on Dreamweaver (I don't have line access to my server) and now is going a little faster...
Thank you

Top
#184391 - 05/17/07 03:52 PM Re: How to check a language files? [Re: ehm1]
Gizmo Moderator Offline

***

Registered: 06/04/06
Posts: 12007
Loc: Portland, OR; USA
Likely, they didn't comment out any ' (or " depending on what the opening/closing character is of the line)
_________________________
UGN Security, Elite Web Gamers & VNC Web Design Owner
Longtime UBB Supporter, UBB7 Beta Tester & Resident Post-A-Holic

Top


Shout Box

Today's Birthdays
No Birthdays
Recent Topics
I'm the Admin but.....
by David DelMonte
12/02/08 11:12 AM
Fatal error: Smarty::require_once
()

by ThreadsUser
12/02/08 08:17 AM
PayPal batch file for ID'ing expired and failed payment subscriptions?
by Mitch P.
12/02/08 06:02 AM
Shrinking graemlins
by Djuma
12/01/08 05:48 PM
2 problems I'm seeing now.
by DougMM
12/01/08 04:39 PM
Forum Stats
4261 Members
33 Forums
30535 Topics
154977 Posts

Max Online: 978 @ 06/24/07 08:19 PM