Centova Technologies Forum

Centova Cast v3 => General discussion => Topic started by: sylar on July 26, 2013, 07:45:02 am

Title: Locale problem
Post by: sylar on July 26, 2013, 07:45:02 am
Hi guys,
Today i updated to centova 3.0.4 and i met this weird problem. My locale turned automatically from bg_BG to  en_US. I tried that language merge script, i tried the one with the string removal but nothing helped. I even tried to make translation directo the en_US lang file but no result.

Is there some new setting in the new version? I saw the locale per account option but its "Server default (bg_BG)"

P.S.
I Noticed that when i change my default locale, my Bulgarian locale is not even in the list of locales of per account settings.

PP.S
I think there is something in commin with the file:

/usr/local/centovacast/extra/hidef/localeslist.data because my locale does not exist in there. Is there some way to rebuild this file ?
Title: Re: Locale problem
Post by: Headshaker on July 26, 2013, 01:01:44 pm
File location and type has changed ...

Everything is located now under /usr/local/centovacast/system/i18n/  in *.po files ....

I found that after 2,5 days of translating php file :/

I'm really HAPPY that centova cast mentioned this anywhere so I wouldn't have to do through php array all translations :/

So now I will be waiting for converter from php to po file from CC team.

REGARDS !
Title: Re: Locale problem
Post by: Headshaker on July 26, 2013, 04:30:14 pm
Just for update....

If you wan to se your language and updates in translations after creating *.po files you need to run

/usr/local/centovacast/sbin/updatelanguages

:)
Title: Re: Locale problem
Post by: sylar on July 26, 2013, 04:51:00 pm
Thank you for the answer, i tried that too but with no result. It updates the changes to .po files but in my cas i dont have my locale as .po file(s). As i understand we have to wait conversion script from php to .po files so there is no point trying translate directly .po files ?
Title: Re: Locale problem
Post by: Headshaker on July 28, 2013, 04:09:56 am
This is what I'm saying. You have to create your own locale with *.po files.

I don't think so that there will be any converter.
Title: Re: Locale problem
Post by: sylar on July 28, 2013, 06:30:40 am
I Have to translate the whole panel again from the beginning ?  :(
Title: Re: Locale problem
Post by: Headshaker on July 29, 2013, 07:04:10 am
Yes. It looks like.
But what I'm doing is:

1. Copy text to translate from poedit (software to edit *.pot files)
2. Search copied phrase in old style php translation file
3. Copy translated text
4. Paste translated text to poedit

spend something like 4 hours to do just the user.pot file :/

another 4 left

Thanks Centova
Title: Re: Locale problem
Post by: Centova - Steve B. on July 29, 2013, 10:07:56 pm
I'm really HAPPY that centova cast mentioned this anywhere so I wouldn't have to do through php array all translations :/
The replacement of our i18n system is explicitly noted in the 3.0.4 changelog and the documentation is here (http://www.centova.com/faq/cast3/customizations/centova_cast_v3_localization).


spend something like 4 hours to do just the user.pot file :/

another 4 left

Thanks Centova
Why?  Just contact the helpdesk!  We do of course have a converter -- we converted all of the existing locale files to .po format, after all!  I'd be happy to run any custom language files through our converter for anyone who needs a quick conversion.

The only reason we haven't released the converter is because it's built into our language file updater, which pulls in all of the localization strings from our source code.  So obviously it won't be of much use to anyone who doesn't have the unencoded source code.
Title: Re: Locale problem
Post by: sylar on July 30, 2013, 05:08:10 am
Thank you steve. I will send you the language file asap
Title: Re: Locale problem
Post by: Centova - Steve B. on July 31, 2013, 03:48:27 pm
Just an update -- I ended up deciding to make a simple, standalone conversion script for v2 language files.  It's admittedly not received much testing, but it's available at:
https://secure.centova.com/clientdist/v2_locale_to_po.tar.gz

Just unpack it, then run:
Code: [Select]
chmod a+x ./v2_locale_to_po.php
./v2_locale_to_po.php /path/to/locale-xx_XX.php

Do replace xx_XX with your actual locale code, of course.


Title: Re: Locale problem
Post by: Headshaker on August 01, 2013, 02:22:22 pm
Thank you very much !!!

This small script was very useful :)

Anyway... Is Centova Cast Team interested in Polsih translation ? :>
Title: Re: Locale problem
Post by: Roberto Brandolini on September 05, 2013, 10:57:14 am
Hi,

the link:
https://secure.centova.com/clientdist/v2_locale_to_po.tar.gz

is empty.