Textual GUI elements in SVG form
 

So we have three text string that are part of the view that are coded in SVG [.../skins/default/media/images/sprites_source/graphics.svg]: 'example', 'cancel' and 'ASK A QUESTION'. How do you recommend going about localizing them.

If you don't mind me asking this, what's the purpose of having these particular strings as SVG?! It is known that textual GUI elements in graphics form cause issues on many levels including usability, l10n and SEO.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Basel Shishani's avatar
197
Basel Shishani
asked 13 years ago

Comments

Are you sure you have the most recent version? I only find the ASK A QUESTION-String in the SVG, however it is not part of the output...

maebert's avatar maebert (13 years ago)

Are you sure, the texts on buttons are html text not images?

byron's avatar byron (13 years ago)

Also check whether SVG is supported by all browsers, I think it is not.

Evgeny's avatar Evgeny (13 years ago)

Sorry guys, this was jumping to conclusion on my part. I checked the code tree for the uppercase string and there was only one instance in the SVG file so I assumed that's where it's coming from. Upon inspection of the element I can see the uppercase is coming from CSS text-transform. My gettext translation wasn't getting through because of a fuzzy marker. Thanks for all of you.

Basel Shishani's avatar Basel Shishani (13 years ago)

No problems, that SVG file is the original source for some of the images used in the skin.

Evgeny's avatar Evgeny (13 years ago)
see more comments