[Templates] translation of xml data
Hi!
I'd like to ask, if any one of you have any ideas how should be some additional data inside .svg files kept to enable easy translation? I mean info about the template (name, description etc) and probably, later on, some field names for procedural templates. Is there any recommended mechanism for translation of this data or should I think of something new? Another related question: is adding template info into metadata element ok or should I add a new one? I'm asking these things because it's pretty important to set it now correctly as later on it will be difficult to change anything.
Regards, Jan Darowski
2013/7/11 Jan Darowski <jan.darowski@...400...>:
Hi!
I'd like to ask, if any one of you have any ideas how should be some additional data inside .svg files kept to enable easy translation? I mean info about the template (name, description etc) and probably, later on, some field names for procedural templates.
Procedural templates are currently implemented as extensions. See for example share/extensions/perfectboundcover.inx. In the menu, it's at Extensions > Render > Layout > Perfect-Bound Cover Template.
Regards, Krzysztof
On Thu, 2013-07-11 at 18:13 +0200, Jan Darowski wrote:
Hi!
I'd like to ask, if any one of you have any ideas how should be some additional data inside .svg files kept to enable easy translation? I mean info about the template (name, description etc) and probably, later on, some field names for procedural templates. Is there any recommended mechanism for translation of this data or should I think of something new? Another related question: is adding template info into metadata element ok or should I add a new one? I'm asking these things because it's pretty important to set it now correctly as later on it will be difficult to change anything.
SVG 2 will allow multiple title and descriptor elements with different 'lang' attributes. See:
http://www.w3.org/TR/SVG2/struct.html#DescriptionAndTitleElements
The metadata element is probably a good place to put place for other data. See:
http://www.w3.org/TR/SVG2/metadata.html#MetadataElement
You could create your own data structure here using the Inkscape name space. Since the structure is up to you, you can include a 'lang' attribute.
Tav
participants (3)
-
Jan Darowski
-
Krzysztof Kosiński
-
Tavmjong Bah