[ 
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 via email to