Mailing List Archive

How to create new language files?
Hi,

i wanted to translate the strings for mythnetvision into german when i
realized that there is no mythnetvision_de.ts file. How can i create this
one?



Thanks, Flo

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mythtv.org/pipermail/mythtv-translators/attachments/20100924/182a5991/attachment.htm>
How to create new language files? [ In reply to ]
On 24 September 2010 18:48, Florian Bittner <mythtv at daschatten.de> wrote:
> Hi,
>
> i wanted to translate the strings for mythnetvision into german when i
> realized that there is no mythnetvision_de.ts file. How can i create this
> one?

First you need to add an entry to
mythplugins/mythnetvision/i18n/translate.pro for your ts file, and
then run lupdate to create your empty ts file. Then, translate!

Finally, remember to include translate.pro in your patch/diff file.

Cheers,
Nick

--
Nick Morrott

MythTV Official wiki: http://mythtv.org/wiki/
MythTV users list archive: http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin
How to create new language files? [ In reply to ]
Hi!

>
> Hi,
>
> i wanted to translate the strings for mythnetvision into german when i
> realized that there is no mythnetvision_de.ts file. How can i create
> this one?
>

Just add the relevant entries (follow the same pattern as the existing
ones) to translate.pro (and i18n.pro) and then run lupdate (as instructed
on the wiki page).

(I'll add that info on the wiki page tonight...)

It should create a file for you.

Don't forget to svn add that file to make sure it gets included in the svn
diff you will produce later (though in this case you could submit the file
itself).

Have a nice day!

Nicolas
How to create new language files? [ In reply to ]
2010/9/24 Nicolas Riendeau <knight at teksavvy.com>:
> Hi!
>
>>
>> Hi,
>>
>> i wanted to translate the strings for mythnetvision into german when i
>> realized that there is no mythnetvision_de.ts file. How can i create
>> this one?
>>
>
> Just add the relevant entries (follow the same pattern as the existing
> ones) to translate.pro (and i18n.pro) and then run lupdate (as instructed
> on the wiki page).
>
> (I'll add that info on the wiki page tonight...)

Nicolas, we could also consider just to do it for all of the current
languages...as I see it, there's really no reason why a translator
should be playing with this at all.

Best regards
Kenni
How to create new language files? [ In reply to ]
Hi Kenni,

On 9/24/2010 4:00 PM, Kenni Lund wrote:
> Nicolas, we could also consider just to do it for all of the current
> languages...as I see it, there's really no reason why a translator
> should be playing with this at all.

I can see both advantages and disadvantages to what you are proposing.

pros:

- As long as it is a language that is already supported (at least
partially) it will make the translator job slightly easier. The main
problem currently is not that it is difficult to add a new translation,
it is that it is undocumented. We are already asking them to do things
that are a lot more difficult to do than that (to use Trunk).

- It might encourage people to fill them in if they already exist.

cons:

- It only helps translators who work on a language that's already
supported, not translators who want to add support for a language which
is not already supported.

- It will definitely make it harder to know if this is a new or an
updated translation (poor Matt (skd5aner) will not be able to log this
correctly in the release notes).

If we do it I would suggest only doing it for currently maintained
languages though...

Please let me know if you want my help if you want to go through with this.

Have a nice day!

Nicolas