[jira] Created: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
20 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
-------------------------------------------------------------------------------------------------------

                 Key: OFBIZ-2008
                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
             Project: OFBiz
          Issue Type: New Feature
    Affects Versions: SVN trunk
            Reporter: Nemanja Simonovic
            Priority: Minor


Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nemanja Simonovic updated OFBIZ-2008:
-------------------------------------

    Attachment: Ofbiz2po.java

Extracts *Labels.xml to gettext PO files

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Priority: Minor
>         Attachments: Ofbiz2po.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Nemanja Simonovic updated OFBIZ-2008:
-------------------------------------

    Attachment: Po2ofbiz.java

 Tool to merge back messgaes from PO files in ofbiz *Labels.xml.
 
This tool depends on '#KEY: ...' comment lines generated by Ofbiz2po to merge  back translations.


> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640852#action_12640852 ]

Jacques Le Roux commented on OFBIZ-2008:
----------------------------------------

Hi Nemanja ,

I never used PO and gettext, what are the advantages over ou current XML files ?

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

Re: [jira] Commented: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nemanja Simonovic
most translation memory tools can tools work with po files, eg. pootle
(pootle is translation collaboration server), OmegaT, kbabel;
those greatly improve translation speed

On Sun, Oct 19, 2008 at 7:16 PM, Jacques Le Roux (JIRA) <[hidden email]> wrote:

>
>    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640852#action_12640852 ]
>
> Jacques Le Roux commented on OFBIZ-2008:
> ----------------------------------------
>
> Hi Nemanja ,
>
> I never used PO and gettext, what are the advantages over ou current XML files ?
>
>> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
>> -------------------------------------------------------------------------------------------------------
>>
>>                 Key: OFBIZ-2008
>>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>>             Project: OFBiz
>>          Issue Type: New Feature
>>    Affects Versions: SVN trunk
>>            Reporter: Nemanja Simonovic
>>            Priority: Minor
>>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>>
>>
>> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
>
> --
> This message is automatically generated by JIRA.
> -
> You can reply to this email to add a comment to the issue online.
>
>
Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-2008:
--------------------------------------

    Assignee: Jacques Le Roux

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12640858#action_12640858 ]

Jacques Le Roux commented on OFBIZ-2008:
----------------------------------------

From Nemanja on dev ML
{quote}
most translation memory tools can tools work with po files, eg. pootle
(pootle is translation collaboration server), OmegaT, kbabel;
those greatly improve translation speed
{quote}

Please Nemanja, use rather comments in Jira issue to allow to more easily follow the thread, thanks.

Yes, I see now, you want to be able to collaborate. I think you are already able to do it using our format, subversion and Eclipse or an UTF8 capable editor like Scite. Of course this is maybe not as easy as using i18n specialized tools...

I will think about where we could put your patches in OFBiz OOTB, of course any ideas from a commiter is also welcome ;)

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641027#action_12641027 ]

Jeroen van der Wal commented on OFBIZ-2008:
-------------------------------------------

There are currently 11739 labels to be translated from English to the desired language and that's going to be a hell of a job using an editor.

Exporting the labels to the po format gives us the opportunity to host a collaboration environment for just the translations. A good example is the translation of Filezilla using a Pootle server: http://pootle.locamotion.org/projects/filezilla/

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641038#action_12641038 ]

Adrian Crum commented on OFBIZ-2008:
------------------------------------

I'm all for having tools that make translations easier, and I'm sure the attached patches help. The files are not suitable for committing however. They are not in the proper patch file format and there are no Apache headers. Also, it would be convenient if build.xml files were updated to turn these classes into ant tasks.

In the meantime, anyone wanting to do translations can still download and use the files on their local copy.


> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641048#action_12641048 ]

Jacques Le Roux commented on OFBIZ-2008:
----------------------------------------

Jeroen, Nemanja,

First of all, thanks for your initiative, it is very appreciated (at least by me ;o) !

It's all about organisation at this stage. As Adrian outlined, we need to have proper patches. This is not the harder part, you just have to read carefully http://docs.ofbiz.org/display/OFBADMIN/OFBiz+Contributors+Best+Practices. But then (or even before) some questions arise

* Do we really need to put them in OFBz ?
** If yes where shoud we put these new features ?
* Should we think about giving a way for translation to be done as easily  as in FileZilla ?
** If yes who (which organisation ?) will provide the infrastructure resources ?
*** This could maybe done on an ASF infra server. In such case we would need an intermediation from PMC (ok, at least Adrian and I are already aware).
** Jeroen have you an idea of the work load needed to set a Pootle server for OFBiz ?
** In case we get to the point we have a such server running, how will we get back the translations done in OFBiz ?
*** Could this be done in the 2 ways (upload-merge from OFBiz to Pootle server and vice versa) ? I suppose this is common questions around a Pootle server so please give us more explanations...

I'm sure I forget some points here, please fill in

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641052#action_12641052 ]

Adrian Crum commented on OFBIZ-2008:
------------------------------------

Jacques,

I don't think we need to go that far. I see this being more like the JavaDoc ant task that we already have - it's something people can run on their local copy and they can do with it what they want.

Maybe a simpler and easier strategy would be to have this converted to an ant task - giving users the ability to create *.po files. Then it's up to the users to set up a system to manage those files (SourceForge account, private SVN server, etc).


> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641063#action_12641063 ]

Nemanja Simonovic commented on OFBIZ-2008:
------------------------------------------

I did read Contributors Best Practices (i missed the topic about Apache headers, i thought JIRA will add them automagicly).  I could not find
appropriate place for file in OfBIZ hierarchy so I gave up creating a patch and posted plain files.

I think we could put when with rest of import/export/migration tools for OfBIZ; if there aren't any now I think some will
certainly appear as more people starts using OfBIZ.

If tools are with OfBIZ (or in some other public repository) everyone can setup pootle server (or use some other tool)
for translation he is making.



> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641073#action_12641073 ]

Adrian Crum commented on OFBIZ-2008:
------------------------------------

Probably the best place to put it is in the framework/base component. You'll have to modify the build.xml file in framework/base to create the jar(s) separately and copy them to the ofbiz home folder (so the task can be run from the ofbiz home folder).

We could set up an import/export folder where you could drop the *.po files - and set the folder for SVN ignore. That will allow someone to check in/out from the folder into a separate *.po file repository.

Each component's build.xml file would have two new targets - like "label-import-po" and "label-export-po" - to import/export the translated files.

If that sounds like too much work, you could do the same thing as the WebTools XML file import/export capability. Just provide a UI in WebTools to import/export *.po files from/to a user-specified folder. OFBiz would have to be running to do the import/export if you take that route.


> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Adrian Crum updated OFBIZ-2008:
-------------------------------

    Attachment: PropertyTranslators.patch

The attached PropertyTranslators.patch file contains some classes that might be useful for property file translation.

I coded this in a hurry and it is not tested. I put it here to demonstrate a more generic and extend-able approach to the problem.


> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Assignee: Jacques Le Roux
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java, PropertyTranslators.patch
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jacques Le Roux reassigned OFBIZ-2008:
--------------------------------------

    Assignee:     (was: Jacques Le Roux)

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java, PropertyTranslators.patch
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeroen van der Wal updated OFBIZ-2008:
--------------------------------------

    Attachment: src.rar

I've taken the tools of Nemanja and updated it to have a fully GNU Gettext compatible solution for translating OFBiz.

Translating OFbiz requires these steps:
1. Run Export.java to export all labels from the *Labels.xml files
2. Edit the .po file of your language using an gettext editor like poedit. If your desired lanugage does not exist copy the .pot file to a .po file with the appropriate language code.
3. When done translating run Merge.java the merge the translated labels into the OFBiz .xml files.

The code is still rough, and we will provide a patch to integrate it into webtools later.

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Priority: Minor
>         Attachments: Ofbiz2po.java, Po2ofbiz.java, PropertyTranslators.patch, src.rar
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Updated: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeroen van der Wal updated OFBIZ-2008:
--------------------------------------

    Attachment: gettext_.patch

We worked on integrating the Gettext tools into OFBiz webtools. Here is what we changed:
1. Put the Ofbiz2po and Po2ofbiz code into Adrians PropertyTranslator utility class.
2. Replaced our file searching classes with the OFBiz utility methods, so now finding OFBiz label files is faster because we don't need to search the whole OFBiz folder recursively.
3. Created a service and UI in OFBiz webtools for importing and exporting the labels to and from Gettext format.

We noticed that some labels in productUiLabels.xml contain unescaped markup:
{<property key="ProductRedExplanation">
        <value xml:lang="de"><b style="color: red;">Rot</b> Datum/Zeit Angaben sind rot markiert wenn die aktuelle Zeit vor dem Von Datum oder nach dem Bis Datum ist. Wenn das Von Datum <b style="rot">rot</b> ist, ist die Zuordnung noch nicht aktiv; falls das Bis Datum <b style="color: red;">rot</b> ist, ist die Zuordnung abgelaufen (<u>und sollte vermutlich gelГ¶scht werden</u>).</value>}}
These labels are not exported to gettext format correctly and appear in the console and log for further analysis.

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Priority: Minor
>         Attachments: gettext_.patch, Ofbiz2po.java, Po2ofbiz.java, PropertyTranslators.patch, src.rar
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Issue Comment Edited: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665109#action_12665109 ]

jcvanderwal edited comment on OFBIZ-2008 at 1/19/09 4:15 AM:
--------------------------------------------------------------------

We worked on integrating the Gettext tools into OFBiz webtools. Here is what we changed:
1. Put the Ofbiz2po and Po2ofbiz code into Adrians PropertyTranslator utility class.
2. Replaced our file searching classes with the OFBiz utility methods, so now finding OFBiz label files is faster because we don't need to search the whole OFBiz folder recursively.
3. Created a service and UI in OFBiz webtools for importing and exporting the labels to and from Gettext format.

We noticed that some labels in productUiLabels.xml contain unescaped markup:
{quote}<property key="ProductRedExplanation">
        <value xml:lang="de"><b style="color: red;">Rot</b> Datum/Zeit Angaben sind rot markiert wenn die aktuelle Zeit vor dem Von Datum oder nach dem Bis Datum ist. Wenn das Von Datum <b style="rot">rot</b> ist, ist die Zuordnung noch nicht aktiv; falls das Bis Datum <b style="color: red;">rot</b> ist, ist die Zuordnung abgelaufen (<u>und sollte vermutlich gelГ¶scht werden</u>).</value>{quote}
These labels are not exported to gettext format correctly and appear in the console and log for further analysis.

      was (Author: jcvanderwal):
    We worked on integrating the Gettext tools into OFBiz webtools. Here is what we changed:
1. Put the Ofbiz2po and Po2ofbiz code into Adrians PropertyTranslator utility class.
2. Replaced our file searching classes with the OFBiz utility methods, so now finding OFBiz label files is faster because we don't need to search the whole OFBiz folder recursively.
3. Created a service and UI in OFBiz webtools for importing and exporting the labels to and from Gettext format.

We noticed that some labels in productUiLabels.xml contain unescaped markup:
{<property key="ProductRedExplanation">
        <value xml:lang="de"><b style="color: red;">Rot</b> Datum/Zeit Angaben sind rot markiert wenn die aktuelle Zeit vor dem Von Datum oder nach dem Bis Datum ist. Wenn das Von Datum <b style="rot">rot</b> ist, ist die Zuordnung noch nicht aktiv; falls das Bis Datum <b style="color: red;">rot</b> ist, ist die Zuordnung abgelaufen (<u>und sollte vermutlich gelГ¶scht werden</u>).</value>}}
These labels are not exported to gettext format correctly and appear in the console and log for further analysis.
 

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Priority: Minor
>         Attachments: gettext_.patch, Ofbiz2po.java, Po2ofbiz.java, PropertyTranslators.patch, src.rar
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665139#action_12665139 ]

Adrian Crum commented on OFBIZ-2008:
------------------------------------

Jeroen,

Thank you very much for your continued work on this. The code I submitted was not tested - did you have a chance to try it out? Does it work properly?

Regarding the unescaped markup example: there is an even bigger problem with that translation - it uses embedded HTML in a UI label. That is a bad design and should be corrected.

If no one gets to this before me I will work on it. I'm trying to finish another issue first.


> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Priority: Minor
>         Attachments: gettext_.patch, Ofbiz2po.java, Po2ofbiz.java, PropertyTranslators.patch, src.rar
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Assigned: (OFBIZ-2008) Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-2008?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bilgin Ibryam reassigned OFBIZ-2008:
------------------------------------

    Assignee: Bilgin Ibryam

> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back
> -------------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2008
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2008
>             Project: OFBiz
>          Issue Type: New Feature
>    Affects Versions: SVN trunk
>            Reporter: Nemanja Simonovic
>            Assignee: Bilgin Ibryam
>            Priority: Minor
>         Attachments: gettext_.patch, Ofbiz2po.java, Po2ofbiz.java, PropertyTranslators.patch, src.rar
>
>
> Tools to extract messages from *Labels.xml files to gettext PO files and merge translation results back

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.