File:SystemLanguageLayers.svg

Summary

Description
English: This is a test file illustrating the usage of the SVG <switch> element to translate SVGs based on systemLanguage attribute.
Date
Source Own work
Author Jmarchn
Other versions
SVG development
InfoField
 
The SVG code is valid.
 
This diagram was created with Inkscape.
Category:Valid SVG created with Inkscape:Diagrams#SystemLanguageLayers.svg
 
Category:Translation possible - SVG (switch)This diagram is translated using SVG switch elements: all translations are stored in the same file.

Look at here for more information.

SVG draft model code

...
  <g
     inkscape:groupmode="layer"
     id="Layer_draw"
     inkscape:label="Layer_draw"
     ... objects of this layer (circle, text) ...
  </g>
  <switch
     id="Layers_by_language"
     style="display:inline">
    <g
       systemLanguage="ca"
       inkscape:groupmode="layer"
       id="Layer_ca"
       inkscape:label="Layer_ca"
       style="display:inline">
       ... objects of this layer (circle, text tags, arrow) ...
    </g>
    <g
       systemLanguage="en"
       inkscape:groupmode="layer"
       inkscape:label="Layer_en"
       id="Layer_en"
       style="display:inline">
       ... objects of this layer ...
    </g>
    ... other language-layers ...
    <g
       inkscape:groupmode="layer"
       inkscape:label="Layer_other"
       id="layer_other">
       ... objects of this layer ...
    </g>
  </switch>
</svg>

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Category:CC-BY-SA-3.0#SystemLanguageLayers.svg
Category:Self-published work Category:Examples representing SVG Category:MediaWiki localisation Category:Technical examples
Category:CC-BY-SA-3.0 Category:Examples representing SVG Category:MediaWiki localisation Category:Self-published work Category:Technical examples Category:Translation possible - SVG (switch) Category:Valid SVG created with Inkscape:Diagrams