Comment 2 for bug 1421893

Revision history for this message
jazzynico (jazzynico) wrote : Re: Units can't be can't be translated (units.xml not localizable)

> Both of them are not SI units!

Well, inch and foot aren't in the SI, but are in the same file. (see http://www.bipm.org/utils/common/pdf/si_brochure_8_en.pdf, page 129 -37 in the PDF document- chapter 4.2 "Other non-SI units not recommended for use").

> The "gradian" has a common unit symbol ("gon") which is not used, though.

Confirmed. Note that the "gon" is mentioned page 124 (32 in the PDF) because of its use in navigation.
But SVG 1.1 uses "grad"... (see http://www.w3.org/TR/SVG/types.html#BasicDataTypes, and http://www.w3.org/TR/SVG/types.html#InterfaceSVGAngle -no change in SVG 2 apparently). I'd favor "gon".

> The "turn" does not have a common unit symbol at all

It's a bit more difficult. The turn is not mentioned at all in the SI documents, and it seems that its symbol varies...
In France, the official symbol is "tr" (tour), and I read "rev" (revolution) in English papers.
Note that turn is also defined in src/svg/svg-angle.h (see https://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/13614#src/svg/svg-angle.h).

That said, I'm not sure how the unit.xml file is used in Inkscape. If it's for UI purpose only, I guess we could define and use a primary key for each entry and allow all the other elements to be translated.