Converting translation files to xml

Steven R. Loomis via CLDR-Users cldr-users at unicode.org
Tue Dec 11 16:34:28 CST 2018


Marcel,
 The DTD gives you some,but not all of the information needed to produce
LDML. The spec is needed as well.

 An XML DTD is not enough information to automatically transform between
formats.

Luca,
 As Mark said there is currently no automatic way to do this transform
between xliff and ldml. . It's not a bad idea, though,  An issue though is
how the naming would work. Some amount of configuration would be needed to
set up this transform even in the best case.


On Tue, Dec 11, 2018 at 10:13 AM Marcel Schneider via CLDR-Users <
cldr-users at unicode.org> wrote:

> On 09/12/2018 13:55, lmelonimamo via CLDR-Users wrote:
> > Hello,
> >
> > I'm trying to contribute to Sardinian by using some translation files
> > that I worked on some time ago (the ISO standards for Debian, that
> > contain things like translations for currencies, locales, language
> > families, countries and administrative divisions). I have them in
> > these formats: csv, po, tmx, tbx, xliff and xlsx. Is there a way to
> > convert them to the xml format that can be used for bulk data
> > upload?
>
> On 11/12/2018 16:55, Mark Davis ☕️ via CLDR-Users wrote:
> > There is no automatic way to do that, sorry.
> >
>
> I’m currently editing XML/LDML by hand and do that using text editors
> and spreadsheet software which is known as the quick-and-dirty way.
> There’s much copy-pasting, formulas add code around the data, and for
> final formatting VS Code has the XML Tools extension.
>
> Nothing new for you but on my part I always thought at programs able
> to take in format X, store the data and output it as an XML file
> based on the provided DTD. Turns out it’s not that easy.
>
> Good luck.
>
> Best regards,
> Marcel
> _______________________________________________
> CLDR-Users mailing list
> CLDR-Users at unicode.org
> http://unicode.org/mailman/listinfo/cldr-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://unicode.org/pipermail/cldr-users/attachments/20181211/a6f7a3a8/attachment.html>


More information about the CLDR-Users mailing list