From Fedora Project Wiki

(Translated)
(Updated link)
Line 5: Line 5:


== Krok 1: Najděte anglickou verzi stránky ==
== Krok 1: Najděte anglickou verzi stránky ==
Angličtina je základní jazyk pro wiki Fedora projektu, takže musí existovat anglická verze stránky, na které pracujete. (Pokud neexistuje anglická verze stránky, na které pracujete, přečtěte si část  [[#Handling translations without an English version| Manipulace s překlady bez anglické verze]].)
Angličtina je základní jazyk pro wiki Fedora projektu, takže musí existovat anglická verze stránky, na které pracujete. (Pokud neexistuje anglická verze stránky, na které pracujete, přečtěte si část  [[#Manipulace s překlady bez anglické verze]].)


Pokud v horní části této stránky již existuje šablona jazyků, klikněte na odkaz <nowiki>[editovat]</nowiki> na pravé straně šablony jazyků a přejděte ke kroku 4; jinak pokračujte krokem 2.
Pokud v horní části této stránky již existuje šablona jazyků, klikněte na odkaz <nowiki>[editovat]</nowiki> na pravé straně šablony jazyků a přejděte ke kroku 4; jinak pokračujte krokem 2.

Revision as of 14:40, 15 March 2018

Warning.png
Tato stránka popisuje zásady projektu Fedora.
Pro stránky zásad je důležitá přesnost a přehlednost. Doporučujeme vám upravovat wiki a zlepšovat ji. Pokud byste na této stránce chtěli provést nějaké zásadní změny, použijte stránku Diskuse pro projednání těchto změn s dalšími správci wiki stránek. Toto učiňte před provedením těchto změn.
Shortcut:
FP:LANG

Krok 1: Najděte anglickou verzi stránky

Angličtina je základní jazyk pro wiki Fedora projektu, takže musí existovat anglická verze stránky, na které pracujete. (Pokud neexistuje anglická verze stránky, na které pracujete, přečtěte si část #Manipulace s překlady bez anglické verze.)

Pokud v horní části této stránky již existuje šablona jazyků, klikněte na odkaz [editovat] na pravé straně šablony jazyků a přejděte ke kroku 4; jinak pokračujte krokem 2.

Manipulace s překlady bez anglické verze

Pokud vámi vytvořená stránka nemá anglickou verzi, vytvořte novou stránku pro anglickou verzi, přidejte šablonu {{autolang}} jak popsáno výše a pak přidejte šablonu {{needs english}}. Tímto bude stránka označena potřebou anglického překladu stejně tak, jako potřebou vytvořit základní stránku.

Step 2: Add the language template to the English page

Edit the English page, and at the top of it, add the {{autolang}} template:

{{autolang|base=yes}}

The base=yes part is required for the English page. Save the page.

Step 3: Create the language template

The {{autolang}} autolang template should provide a link for you to set up the language box. Click it, and an edit page will come up. Don't change any of the content and save the page. Then click the [edit] link on the right side of the language box.

Step 4: Add your language to the template

At this point you should have an edit box open with template syntax that looks similar to this:

{{lang|en|page=Base page name}}

The text between lang and page= is the list of language codes. Add the language code that you are translating to this list. Use this list to determine the proper MediaWiki language code.

Note.png
Please keep the list alphabetical
Keep the list of language codes alphabetical by code. This means German (de) should come before English (en), for example.

Step 5: Start the new page

Click on the red link for your language to start the new page. Insert the template {{autolang}} at the top of your page, so that the list of languages is there.

Stop (medium size).png
Do NOT include "base=yes" in non-English subpages
Be certain to NOT include "base=yes" in the template for non-English subpages.

Moving pages from the old translation setup

For translated pages that aren't in the proper place, follow steps 1-4 above. Then, copy the title of the new page (e.g., "Fedora Project Wiki/de"). Click the "move" button at the top of the old page and paste the new page name in the "to new title" field. Edit the new page and add {{autolang}} to the top.