Re: Localization questions

Tim Starling <[email protected]>
Newsgroups gmane.science.linguistics.wikipedia.international
Message-ID <[email protected]>
Brion Vibber wrote:
> On Nov 2, 2003, at 00:09, Onur Volkan HATEM wrote:
>> -How can I test the new locale?
> 
> 
> So far there's not an easy to do this except to run your own local copy 
> of the wiki software, sorry.

Actually my new script checktrans2.php will work without a proper local 
copy. You just need a MediaWiki snapshot, and PHP itself. Run it like this:

cd maintenance
php checktrans2.php ../languages/LanguageTr.php

If there are syntax errors, it will tell you the line number plus 
approximately 1254. In other words, if you subtract 1254 from the line 
number, that should tell you approximately the line number in your file 
where the error is.

It basically works by chopping off the end of the file starting with the 
class definition, filtering out include lines and "<?" tags, 
concatenating Language.php and the target, then eval()ing the result.

-- Tim Starling.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.