File:SystemLanguageArrows.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 780 × 210 pixels, file size: 1 KB)

Render this image in .

Captions

Captions

This is a test file illustrating the usage of the SVG <switch> element to translate SVGs based on systemLanguage attribute.

Summary[edit]

Description
Català: Exemple de l'ús de l'element SVG <switch> per traduir SVG basat en l'atribut systemLanguage.
English: This is a test file illustrating the usage of the SVG <switch> element to translate SVGs based on the systemLanguage attribute.
Date
Source Own work, systemLanguage.svg
Author Jmarchn
Other versions
SVG development
InfoField
 
The SVG code is valid.
 
This typeset was created with a text editor.
 
Please do not replace the simplified code of this file with a version created with a vector graphics editor,  and do not translate with the buggy SVG translator
 
 This diagram is translated using SVG switch elements: all translations are stored in the same file.
Source code
InfoField

SVG code

<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" width="780"
height="210" viewBox="-20 -56 260 70" font-family="Liberation mono">
<text font-size="20" x="6" y="-32">systemLanguage:</text>
<text font-size="10" x="20" y="-16">ca cs de en es fr it pl pt tl to zh</text>
<switch font-size="18" fill="red">
<text systemLanguage="ca">ca<tspan fill="#000"></tspan></text>
<text systemLanguage="cs">cs<tspan fill="#000" dx="16"></tspan></text>
<text systemLanguage="de">de<tspan fill="#000" dx="34"></tspan></text>
<text systemLanguage="en">en<tspan fill="#000" dx="53"></tspan></text>
<text systemLanguage="es">es<tspan fill="#000" dx="73"></tspan></text>
<text systemLanguage="fr">fr<tspan fill="#000" dx="93"></tspan></text>
<text systemLanguage="it">it<tspan fill="#000" dx="112"></tspan></text>
<text systemLanguage="pl">pl<tspan fill="#000" dx="129"></tspan></text>
<text systemLanguage="pt">pt<tspan fill="#000" dx="148"></tspan></text>
<text systemLanguage="tl">tl<tspan fill="#000" dx="168"></tspan></text>
<text systemLanguage="to">to<tspan fill="#000" dx="188"></tspan></text>
<text systemLanguage="zh">zh<tspan fill="#000" dx="207"></tspan></text>
<text>other</text>
</switch>
</svg>

Licensing[edit]

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.

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current14:25, 17 September 2023Thumbnail for version as of 14:25, 17 September 2023780 × 210 (1 KB)Iketsi (talk | contribs)reverted to Sarang's version until I figure out what is breaking librsvg // Editing SVG source code using c:User:Rillke/SVGedit.js
14:23, 17 September 2023Thumbnail for version as of 14:23, 17 September 2023780 × 210 (1 KB)Iketsi (talk | contribs)removing monospace as alternative // Editing SVG source code using c:User:Rillke/SVGedit.js
14:21, 17 September 2023Thumbnail for version as of 14:21, 17 September 2023780 × 210 (1 KB)Iketsi (talk | contribs)setting Liberation mono as default font and adding width/height to hopefully fix RSVG rendering // Editing SVG source code using c:User:Rillke/SVGedit.js
14:15, 17 September 2023Thumbnail for version as of 14:15, 17 September 2023512 × 138 (1 KB)Iketsi (talk | contribs)simplified; improved alignment // Editing SVG source code using c:User:Rillke/SVGedit.js
17:45, 31 July 2020Thumbnail for version as of 17:45, 31 July 2020780 × 210 (1 KB)Sarang (talk | contribs)slightly simplified
17:13, 9 July 2020Thumbnail for version as of 17:13, 9 July 2020780 × 210 (1 KB)Sarang (talk | contribs)This is a simplified version created with Text editor. As always with fonts, the librsvg rendering is not relyable, it shows different positions in different display sizes. Nevetheless it is an example for systemLanguage usage.
06:44, 15 February 2019Thumbnail for version as of 06:44, 15 February 2019512 × 224 (13 KB)Jmarchn (talk | contribs)User created page with UploadWizard

File usage on other wikis

The following other wikis use this file:

Metadata