Difference between revisions of "Template:Translation"

From Sugar Labs
Jump to navigation Jump to search
(setting up wiki translation system based on the OLPC wiki version)
Line 30: Line 30:
 
== Samples ==
 
== Samples ==
  
  <nowiki>{{</nowiki> Translation | lang = es | source = The Sugar Labs Wiki | version = 30534 <nowiki>}}</nowiki>
+
  <nowiki>{{</nowiki> Translation | lang = es | source = Translating | version = 30534 <nowiki>}}</nowiki>
{{ Translation | lang = es | source = The Sugar Labs Wiki | version = 30534 }}
+
{{ Translation | lang = es | source = Translating | version = 30534 }}
  <nowiki>{{</nowiki> Translation | lang = es | source = The Sugar Labs Wiki | version = 30534  
+
  <nowiki>{{</nowiki> Translation | lang = es | source = Translating | version = 30534  
 
                 | source_display = original  
 
                 | source_display = original  
 
                 | version_display = versión traducida  
 
                 | version_display = versión traducida  
 
                 | diff_display = últimos cambios <nowiki>}}</nowiki>
 
                 | diff_display = últimos cambios <nowiki>}}</nowiki>
{{ Translation | lang = es | source = The Sugar Labs Wiki | version = 30534  
+
{{ Translation | lang = es | source = Translating | version = 30534  
 
           | source_display = original | version_display = versión traducida | diff_display = últimos cambios }}
 
           | source_display = original | version_display = versión traducida | diff_display = últimos cambios }}
  
 
[[Category:Translation]]
 
[[Category:Translation]]
 
</noinclude>
 
</noinclude>

Revision as of 22:24, 17 May 2008

  {{:Template:Translation/translation of/lang-{{{lang}}}}} [[{{{source}}}|{{{source}}}]] [{{fullurl:{{{source}}}|oldid={{{version}}}}} {{:Template:Translation/original/lang-{{{lang}}}}}]  
  {{:{{{source}}}/translations}}   [{{fullurl:{{{source}}}/translations|action=edit}} +/-] [{{fullurl:{{{source}}}|diff=current&oldid={{{version}}}}} {{:Template:Translation/changes/lang-{{{lang}}}}}]  

This template (in conjunction with Template:Translations—note the plural—and the source/translations page) are used to better keep track of the Category:Translated Pages and the Translating effort to lower the language barrier of the project.

Usage

{{ Translation
  | lang            =  <-- 2/3 character language-code of the translation—ie: en, es, ... -->
  | source          =  <-- Source page name—ie: "The Sugar Labs Wiki" (sans quotes) -->
  | version         =  <-- Version ID# of the edition being translated or last updated -->
  | source_display  =  <-- OPTIONAL - display string to the source link above
                            default = value of source -->
  | version_display =  <-- OPTIONAL - display string for the translated version link
                            default = "original" -->
  | diff_display    =  <-- OPTIONAL - display string for the differences to current link
                            default = "diff" -->
}}
NOTE
the version parameter is the number displayed in the source page in the [ID# xxxxx] of the language-navigation blue bar. Keeping this number updated to the LAST version you 'translated' or 'updated' will ease updating the page when following the diff link in your page, as it will show those changes in the original from your last update.

Samples

{{ Translation | lang = es | source = Translating | version = 30534 }}
  Traducción de Translating original  
  
Stop hand.png NOTE:
The content of this page is considered
DEPRECATED and OBSOLETE
It is preserved for historical research, along with its talk page.

For how to translate, go to English [1] / Español [2]

english | español   +/-

cambios  
{{ Translation | lang = es | source = Translating | version = 30534 
source_display = original version_display = versión traducida diff_display = últimos cambios }}
  Traducción de original versión traducida  
  
Stop hand.png NOTE:
The content of this page is considered
DEPRECATED and OBSOLETE
It is preserved for historical research, along with its talk page.

For how to translate, go to English [3] / Español [4]

english | español   +/-

últimos cambios