Translating owncloud using poedit

Ask all your questions regarding OC 4.x and older. Please read the Support Forum Rules
Forum rules
Before you post; make sure you are using at least PHP Version 5.3.x - Also read How To Solve Problems By Yourself

Translating owncloud using poedit

Postby helpy » Sat Jun 02, 2012 7:00 pm

Hello owncloud users,

I am starting to translate owncloud 4.0 to German (using formal "Sie").
I want to use poedit for the translation.

I already found a way to update the language templates in directory l10n\templates on Windows (using xgettext delivered with poedit, Strawberry perl and a batch file). This was necessary because the pot files (delivered with owncloud 4.0) does not contain all localizable strings. This issue I already documented:

==> viewtopic.php?f=4&t=2674
==> http://bugs.owncloud.org/thebuggenie/ow ... ues/oc-889

The list of the language templates, which I updated on my local PC:
Code: Select all
bookmarks.pot
calendar.pot
contacts.pot
core.pot
files.pot
gallery.pot
media.pot
settings.pot


Now I started translating l10n/de/*.po files.

But there are still language files in a different format:
Code: Select all
settings\l10n\de.php
core\l10n\de.php
core\l10n\l10n-de.php

apps\media\l10n\de.php
apps\gallery\l10n\de.php
apps\files\l10n\de.php
apps\contacts\l10n\de.php
apps\calendar\l10n\de.php


==> Why are there two different formats of language files?


Yes I read http://owncloud.org/dev/translation/ !

But the localizable strings in the project on Transifex are not up to date (same reason as documented in issue 889).

And I did not found an answer to my question.

Thanks for your help,
guido
helpy
Newbie
 
Posts: 8
Joined: Fri May 25, 2012 1:06 pm

Re: Translating owncloud using poedit

Postby helpy » Sat Jun 02, 2012 10:32 pm

I translated some l10n/de/*.po files and uploaded them.
But this does not change the texts :-(

It seems that only the ..../l10n/de.php files will be used for translating the texts.
So I have to convert the l10n/de/*.po files to the appropriate ..../l10n/de.php files.

Is there a way to do this? ... without working with Transifex!

Has someone done translation locally without using Transifex?

Any help is greatly appreciated!

greetings from Germany,
Guido
helpy
Newbie
 
Posts: 8
Joined: Fri May 25, 2012 1:06 pm

Re: Translating owncloud using poedit

Postby helpy » Sun Jun 03, 2012 10:52 am

Hello to ownCloud community,

I found an inconsistency:

In the sources (download of ownCloud 4.0) there is the language template l10n/templates/bookmarks.pot.
But on Transifex in the original language "en" there is NO language resource for bookmarks.

Does anybody know, why this is the case?

Why are there such differences?

Do you know that the original english language resources on Transifex are not complete (see #889)?

I do not found this issue discussed somewhere else in the forum!
Do you miss any information from me?

Greetings from Germany,
Guido
helpy
Newbie
 
Posts: 8
Joined: Fri May 25, 2012 1:06 pm

Re: Translating owncloud using poedit

Postby helpy » Sun Jun 03, 2012 11:19 am

Hello,

finally I found a way to re-write all the de.php files.
This function is included in the perl script l10n/l10n.pl.

I had to scroll through the perl script to find this way.

Now I know the machanism to update the language template files.
  • On Windows I use Strawberry Perl, xgettext (part of Poedit) and the modified perl script l10n/l10n.pl (see oc-889) to update the pot files (l10n/templates/*.pot).
  • With Poedit I translate these pot files and create the german po files (/l10n/de/*.po).
  • Than I use the perl script l10n/l10n.pl to convert the po files to the de.php files

Now I will make my own ownCloud translation (formal German using "Sie").
And than I will document how to translate owncloud using poedit on windows.

Greetings from Bavaria in Germany,
Guido
helpy
Newbie
 
Posts: 8
Joined: Fri May 25, 2012 1:06 pm


Return to OwnCloud Community Edition 4.x and older

Who is online

Users browsing this forum: No registered users and 9 guests