FedoraProject:Translating

From FedoraProject

(Difference between revisions)
Jump to: navigation, search
(Undo revision 251507 by Lewis41 (talk))
(Step 5: Start the new page)
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{autolang|base=yes}}
 
{{autolang|base=yes}}
{{lang|en|es|page=Base page name}}
 
  
 
{{policy page}}
 
{{policy page}}
Line 29: Line 28:
 
  <nowiki>{{</nowiki>lang|en|page=''Base page name''<nowiki>}}</nowiki>
 
  <nowiki>{{</nowiki>lang|en|page=''Base page name''<nowiki>}}</nowiki>
  
The text between <code>lang</code> and <code>page=</code> is the list of language codes. Add the language code that you are translating to this list. Use [http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/Names.php?view=markup this list] to determine the proper MediaWiki language code.
+
The text between <code>lang</code> and <code>page=</code> is the list of language codes. Add the language code that you are translating to this list. Use '''[http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/languages/Names.php?view=markup this list]''' to determine the proper MediaWiki language code.
  
 
{{admon/note | 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. }}
 
{{admon/note | 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 ==
 
== Step 5: Start the new page ==
Click on the red link for your language to start the new page. Insert the template <code><nowiki>{{autolang}}</nowiki></code> at the top of your page, so that the list of languages is there. ''Be certain to not include "base=yes" in the template for non-English subpages.''
+
Click on the red link for your language to start the new page. Insert the template <code><nowiki>{{autolang}}</nowiki></code> at the top of your page, so that the list of languages is there.  
 +
{{admon/caution|<nowiki>Do NOT include "base=yes"in non-English subpages</nowiki>|<nowiki>Be certain to NOT include "base=yes" in the template for non-English subpages.</nowiki>}}
  
 
== Moving pages from the old translation setup ==
 
== 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 <code><nowiki>{{autolang}}</nowiki></code> to the top.
 
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 <code><nowiki>{{autolang}}</nowiki></code> to the top.

Revision as of 07:51, 28 March 2012


Warning (medium size).png
This is a page that describes policies of the Fedora Project.
For policy pages, accuracy and clarity are important. You are encouraged to edit the wiki to improve it. If you have any substantive changes to make to this page, use the talk page to discuss the changes with other page maintainers. Do this before making the changes.
Shortcut:
FP:LANG

Contents

Step 1: Find the English version of the page

English is the base language for the Fedora Project wiki, so there needs to be an English version of the page you are working on. (If there isn't an English version of the page you are working on, see #Handling translations without an English version.)

If there is already a language template at the top of that page, click [edit] on the right side of the language box and move to step 4; otherwise, continue to step 2.

Handling translations without an English version

If the page you create doesn't have an English version, create a new page for the English version, add the {{autolang}} template as noted above, and then add the {{needs english}} template. This will flag the page for needing an English translation as well as create a base page.

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.