Re: Translations inside of SVG files



On Wed, 2014-02-05 at 15:58 +0100, Frederic Peters wrote:
Andre Klapper wrote:
On Sun, 2014-02-02 at 08:51 +0100, Frederic Peters wrote:
Actually we already have some translated SVGs in the current Getting
Started documentation. It doesn't use the systemLanguage attribute,
they're "just" considered as XML files and itstool does the job of
extracting strings to a po file, and merging them back, creating one
SVG file per language.

An example is here: https://help.gnome.org/users/gnome-help/3.10/gs-goa3.svg.es

It's not perfect as it duplicates the files, and it currently requires
the SVG files to be declared in HELP_FILES and be in the same
directory as Mallard pages, but those are minor issues in my opinion.

Looks like nobody has tried linking PNGs from within SVG files yet? :P

I started Inkscape, took a PNG screenshot (nothing to translate) and
linked (not: embedded) it from within an SVG file.
The PNG is the lowest layer in the SVG and I could put text in the layer
above which could theoretically be parsed and translated.

I didn't want to embed the PNG in SVG - per Fred's explanations above
I'd waste bytes by duplicating the PNG data for each translation.

Now Yelp 3.10 displays the SVG, but not the external PNG below. I filed
https://bugzilla.gnome.org/show_bug.cgi?id=723983 with a testcase.

andre
-- 
Andre Klapper  |  ak-47 gmx net
http://blogs.gnome.org/aklapper/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]