Hi, I am doing some translations on transifex and I would like to see how
this looks in application. But I have hard time converting labels.json (and
other files too) to labels.xml.
I tried using translation_converter.exe (translation_converter -from
for_use_core-geonetwork_iso19139-strings-xml-string_sl_SI.json -format
simple) and it is working for some files, but not working for others.
So for example I would like to convert from:
"labels/element[name='gmd:MD_ScopeCode']": "Scope code",
"labels/element[name='code' and id='207.0' and
context='gmd:MD_Identifier']": "Koda",
to:
<element name="gmd:MD_ScopeCode">
<label>Scope code</label>
<description>Class of information to which the referencing entity
applies</description>
</element>
<element name="code" id="207.0" context="gmd:MD_Identifier">
<label>Code</label>
<description>Alphanumeric value identifying an instance in the
namespace</description>
<help>alphanumeric value identifying an instance in the namespace</help>
</element>
--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Conversion-from-transifex-to-xml-tp5246062.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
Hi,
2016-01-19 12:39 GMT+01:00 amacar <amadej.pevec@anonymised.com>:
Hi, I am doing some translations on transifex and I would like to see how
this looks in application. But I have hard time converting labels.json (and
other files too) to labels.xml.
I tried using translation_converter.exe (translation_converter -from
for_use_core-geonetwork_iso19139-strings-xml-string_sl_SI.json -format
simple) and it is working for some files, but not working for others.
So for example I would like to convert from:
"labels/element[name='gmd:MD_ScopeCode']": "Scope code",
"labels/element[name='code' and id='207.0' and
context='gmd:MD_Identifier']": "Koda",
to:
<element name="gmd:MD_ScopeCode">
<label>Scope code</label>
<description>Class of information to which the referencing entity
applies</description>
</element>
<element name="code" id="207.0" context="gmd:MD_Identifier">
<label>Code</label>
<description>Alphanumeric value identifying an instance in the
namespace</description>
<help>alphanumeric value identifying an instance in the namespace</help>
</element>
For the Angular app, you can use
https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/download-from-transifex.sh
to retrieve translation from transifex and update json files.
Then Jesse made a PR sometimes ago with a maven plugin which should take
care of xml files I think
https://github.com/geonetwork/core-geonetwork/pull/1057 but we never really
tested it. If you've time to investigate it ?
HTH
Francois
--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Conversion-from-transifex-to-xml-tp5246062.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at
http://sourceforge.net/projects/geonetwork