This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » legacy support » symfony 1.1 » Generte i18n language files
Generte i18n language files [message #70303] Tue, 20 January 2009 13:12 Go to next message
hostis  is currently offline hostis
Messages: 2
Registered: January 2009
Location: Poland
Junior Member
Hi all,
i have little problem with generating language files,
when i generate other language than en before en is every thing ok but when i want to generate de language after en then script told me that he don't found any new strings
$ symfony i18n:extract --auto-save frontend fr
>> i18n      extracting i18n strings for the "frontend" application
>> i18n      found "55" new i18n strings
>> i18n      found "0" old i18n strings
>> i18n      saving new i18n strings
$ symfony i18n:extract --auto-save frontend en
>> i18n      extracting i18n strings for the "frontend" application
>> i18n      found "55" new i18n strings
>> i18n      found "0" old i18n strings
>> i18n      saving new i18n strings
$ symfony i18n:extract --auto-save frontend de
>> i18n      extracting i18n strings for the "frontend" application
>> i18n      found "0" new i18n strings
>> i18n      found "0" old i18n strings
>> i18n      saving new i18n strings


How can i fix this. Default language for app is pl.


And some question about XLIFF. How to use script to generate XLIFF with <file source-language="PL"> Now always generate with "EN" like below:

<?xml version="1.0"?>
<!DOCTYPE xliff PUBLIC "-//XLIFF//DTD XLIFF//EN" "http://www.oasis-open.org/committees/xliff/documents/xliff.dtd">
<xliff version="1.0">
  <file source-language="EN" target-language="fr" datatype="plaintext" original="messages" date="2009-01-20T13:03:19Z" product-name="messages">
    <header/>
    <body>
      <trans-unit id="1">
        <source>Znajomi</source>
        <target/>
      </trans-unit>
      <trans-unit id="2">
        <source>Proponowane kontakty</source>
        <target/>
      </trans-unit>


[Updated on: Tue, 20 January 2009 13:13]

Re: Generte i18n language files [message #71434 is a reply to message #70303 ] Wed, 04 February 2009 14:51 Go to previous messageGo to next message
dierckes  is currently offline dierckes
Messages: 24
Registered: October 2008
Junior Member
hostis wrote on Tue, 20 January 2009 13:12

How to use script to generate XLIFF with <file source-language="PL"> Now always generate with "EN" like below

I have the same problem with symfony 1.2.
I set the default_culture to de_DE, but the generated language file always show 'source-language="EN"' instead of "DE".


http://www.beehave.de
Re: Generte i18n language files [message #79050 is a reply to message #70303 ] Wed, 27 May 2009 15:12 Go to previous messageGo to next message
Monti  is currently offline Monti
Messages: 14
Registered: April 2008
Location: Germany
Junior Member
Same problem for me here in sf 1.2. I tried everything from deleting the messages.xml, recreating it with empty values, ...

It just works for some languages and as soon as it breaks, it seems to break for the others, too.

Did you find any solution on this one?
Re: Generte i18n language files [message #93304 is a reply to message #79050 ] Wed, 10 February 2010 23:24 Go to previous messageGo to next message
_Andreas_
Messages: 12
Registered: January 2009
Junior Member
Hi,

Did anyone find a reason, why the extract task is not working?

I could display the values only once using this command:

symfony i18n:extract --display-old backend de_DE 
>> i18n      extracting i18n strings for the "backend" application
>> i18n      found "0" new i18n strings
>> i18n      found "18" old i18n strings
>> i18n      display old i18n strings
               delete

               save

               list

               save and add

               reset

               filter

               filters

               yes or no

               yes

               no

               Are you sure?

               Actions

               [0] no result|[1] 1 result|(1,+Inf] %1%
results

               Next

               Last

               Previous

               First

               no result


If I run the task again, there are no strings found. The "auto-save" option does not creat a XLIFF file either.

Any hints?

Andreas
Re: Generte i18n language files [message #96204 is a reply to message #71434 ] Thu, 25 March 2010 16:17 Go to previous message
matz  is currently offline matz
Messages: 32
Registered: March 2010
Member
dierckes wrote on Wed, 04 February 2009 14:51

hostis wrote on Tue, 20 January 2009 13:12

How to use script to generate XLIFF with <file source-language="PL"> Now always generate with "EN" like below

I have the same problem with symfony 1.2.
I set the default_culture to de_DE, but the generated language file always show 'source-language="EN"' instead of "DE".

i have the same problem..do you find any solution??
Previous Topic:propel-build-schema error: "...error building XML from metadata: connect failed..."
Next Topic:propel: wrapped: Cannot fetch ColumnMap
Goto Forum:
  

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software