User:Kaganer/Translation admin notes

From Meta, a Wikimedia project coordination wiki
Jump to navigation Jump to search

Using 'Special:MyLanguage' vs using 'Template:Localised Link' ('ll')[edit]

My best practice ;)

  1. If your link to translatable page is placed within a longer text, and displayed text
    1. is different from target pagename — then is better using 'Special:MyLanguage' (with 'tvar')
      exampletext text [[<tvar|some>Special:MyLanguage/Target page</>|displayed text]] text text
      reason — these same result without unneeded calling of template
    2. is equal to target pagename — then is better using 'Special:MyLanguage' also, by these same way
      reason — if displayed text is equal in English, this may not be true for other languages
  2. If your link to translatable page is placed as separate item (part of list or navigation template), and displayed text
    1. is different from target pagename — then is better using {{ll}}, with tagging only displayed text as translatable
      example{{ll|Target page|<translate>displayed text</translate>}}
      reason — these same result with more laconical wiki-code
    2. is equal to target pagename — then is better using {{ll}}, with excluding from translatable part
      example<translate>text text</translate>* {{ll|Target page}} <translate>text text</translate>
      reason — if target pagename is translated, {{ll}} is substitute appropriate translation automatically; no needed duplicate translations (with errors); economy of translators' efforts

Substituting translations based on user-interface language[edit]

For some community pages, like WM:RFH or election pages, etc., is used translatable header that substituted based on user-interface language (through {{TNT}} directed by |uselang={{int:lang}}).

If direction of user-interface language is RTL, this header should be begin from code with unclosed "div" tag:

{{#ifeq:{{dir|{{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}}}|rtl|<div class="mw-content-rtl" dir="rtl">}}

and should end with the same condition, but with the closing "div":

{{#ifeq:{{dir|{{{uselang|{{CURRENTCONTENTLANGUAGE}}}}}}}|rtl|</div>}}

This will ensure that the table of contents, lists, and headers are displayed correctly.

...[edit]

See also[edit]

Ses also some talks about them: one, ...