roxen.lists.pike.general

Subject Author Date
Eï™^˜XÝÛØØ[ Bill Welliver <hww3[at]riverweb[dot]com> 13-02-2009
Try renaming the file to .pike or .pmod... I think that's important.

Bill

On Thu, 12 Feb 2009, Hunter wrote:

> Hello.  I'm having some trouble getting string extract for I18n going.
>
> I have read the information at
> http://www.gotpike.org/PikeWiki/index.pike?page=PikeDevel/I18n
>
> I created a test.xml to drive the extraction (test.xml):
> <?xml version="1.0" encoding="ISO-8859-1"?>
>
> <project name="TEST">
>    <baselang>en</baselang>
>    <xmlpath>translations/%L/TEST.xml</xmlpath>
>
>    <file>TestLocale.panel</file>
> </project>
>
>
> And I have a piece of code on which to perform the extraction
(TestLocale.panel):
> // <locale-token project="TEST">LOCALE</locale-token>
> #define LOCALE(X, Y) Locale.translate("TEST", "en", X, Y)
>
> int main()
> {
>    werror(LOCALE(0, "Hello World!\n"));
>    return 0;
> }
>
> I made sure the directory has been created:
> [<hunter[at]linux04> concole]$ ll translations/
> total 20
> drwxrwxr-x  2 hunter hunter 4096 Feb 12 16:26 en
>
>
> However, when I run the -x option, it doesn't find the localization...
> [<hunter[at]linux04> concole]$ pike -x extract_locale --config=test.xml --verbose
> Reading config for project "TEST" in test.xml
>
> Reading TestLocale.panel, parsing... (0 localizations)
>
> [<hunter[at]linux04> concole]$ pike --version
> Pike v7.6 release 86 Copyright 1994-2006 Link ping University
>
> ------------------------------------
> I'm hoping I am missing something rudimentary here, and that someone would be
so
> kind as to point it out for me.  Or, if I'm posting in the wrong place, point
me
> to the right on.  Thanks!
>
>
>