Online Manual:Translation Portal: Difference between revisions From Online Manual

Jump to: navigation, search
(Just adding info about translating links.)
m (Illori moved page Online Manual:Portal de Traducción to Online Manual:Translation Portal over a redirect without leaving a redirect)
 
(41 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This is a project page for Translators. Translators can check in here to find out what they can do.
{{TOCright}}
If you have any questions about this information, or suggestions for improving this page, please discuss in the [http://www.simplemachines.org/community/index.php?board=202.0 Doc Helpers board]
This is the project page for translators of the SMF Wiki. Translators can check in here to find out what they can do.
If you have any questions about this information, or suggestions for improving this page, please discuss in the [http://www.simplemachines.org/community/index.php?board=202.0 Doc Helpers Board].


==Languages to Translate==
==Languages to Translate==
Below is a list of the 40 languages which SMF has been translated into. The links show the percentage of the translation completed in the Translation Extension for each language. This is the place to check to see what still needs to be translated. If the English text of these pages is modified, translations may need to be updated, so also please keep checking for updates from the Documentation Team in the [http://www.simplemachines.org/community/index.php?board=202.0 Documentation Help] board regarding changes to these pages. If the language you are interested in translating is not in this list feel free to contact the Documentation team at the above email address and let us know which language you want to translate and we will work with you on seeing if you can add it.


Below is a list of the 40 languages which SMF has been translated into. The links show the percentage of the Wiki translation completed in the Translation Extension for each language. This is the place to check to see what still needs to be translated (ignore the top two Mediawiki entries as they are for the Wiki interface). If the English text of these pages is modified, translations may need to be updated, so also please keep checking for updates from the Documentation Team in the [http://www.simplemachines.org/community/index.php?board=202.0 Documentation Help] board regarding changes to these pages. If the language you are interested in translating is not in the following list please notify the Doc Team by posting in the [http://www.simplemachines.org/community/index.php?board=202.0 Documentation Help] board.
{|
|-
| valign="top" |
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=sq Albanian]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=sq Albanian]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=ar Arabic]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=ar Arabic]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=hy Armenian]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=bg Bulgarian]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=bg Bulgarian]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=ca Catalan]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=ca Catalan]
Line 25: Line 31:
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=id Indonesian]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=id Indonesian]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=it Italian]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=it Italian]
| valign="top" |
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=ja Japanese]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=ja Japanese]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=lt Lithuanian]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=lt Lithuanian]
Line 45: Line 52:
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=ur Urdu]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=ur Urdu]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=vi Vietnamese]
*[http://wiki.simplemachines.org/smf/index.php?title=Special%3ALanguageStats&code=vi Vietnamese]
|}


==How to translate these pages==
==How to Start Translating==
These translations will be done using a wiki extension called the [http://www.mediawiki.org/wiki/Extension:Translate Translate extension], provided by the translatewiki team. To begin, go to the base page to be translated. If you have permission to translate, you will see a link titled "Translate this page" before the content of the page. Follow the link to the Translate form. You'll see the page's name listed in "Group". Choose the language from the drop-down list, and hit the "Fetch" button.


You will see all the language strings which need to be translated. The translation tool calls them messages. The link for the language message is on the left, and the content is on the right. Click on the link to start an editing window for that message. Above the editing window, you will see the source text, labeled "Message definition".  In the textarea below, you may begin typing in the translation. If you wish, enter a Summary to discribe the changes you have made. When you have completed translating the language message, you must use the "Save page" button to save the language message you are editing on this page.
These translations are being done using a wiki extension called the [http://www.mediawiki.org/wiki/Extension:Translate Translate Extension], provided by the translatewiki team. You can start translating pages by clicking on the page title in the statistics page for your language as listed above. If you want to review pages that have already been fully translated, untick the box next to ''Suppress completely translated message groups'', which can be found at the top of the statistics page - then click on the button ''Show Statistics''.


For more information on translating, please see the [http://translatewiki.net/wiki/Translating:Page_translation_feature#Translators Page translation feature documentation] from the translatewiki team
A list of the translatable pages can also be found at [[Special:PageTranslation]]. If you have permission to translate, you will see on these pages a link titled ''Translate this page'' above the content of the page. This is another way of accessing the Translate Extension.


==Translating links==
===Using the Translate Extension===
 
#Make sure that the language you want to translate to is selected in the top right-hand corner. If it isn't, just click on that section and then search for your language.
#At the top of the page, you can select the page that you want to translate. If you click on ''All'' (next to ''Message Group''), you will see a list of all the pages that are available in the Translate Extension.
#You can filter what is shown on the page by clicking on the links at the top of the page:
#*'''All''' - this shows all the translation units, including ones that have already been translated, as well as untranslated and outdated units.
#*'''Untranslated''' - Only the untranslated units will be shown.
#*'''Outdated''' - These units have been translated, but they now need updating.
#*'''Translated''' - Only translated units will be shown.
#At the bottom of the page, you can change the display of the Translate Extension:
#*'''List''' - Each translation unit is displayed in just one line. To see the full text of a unit, just click on it.
#*'''Page''' - This displays the full text of each translation unit.
#*'''Review''' - Select this in order to review and confirm each translated unit.
#Choose a unit to translate. Just click on a particular unit and enter the translation in the box below the source English text. When you have completed the translation of a unit (message), click on ''Save translation''. If a translation already exists, you can make alterations by clicking on the edit icon to the right of each translation unit.
 
'''IMPORTANT:'''
 
* When translating, you must always '''include all the Wiki code'''. For example, if you see <nowiki>==Profile Information==</nowiki>, then make sure you include all the equal signs (==) as these indicate that it is a heading. For further information about wiki code, take a look at the [http://en.wikipedia.org/wiki/Help:Cheatsheet Wikipedia Cheatsheet].
 
* As you're translating a unit, please take note of any warning message above the input box. The Translate Extension may have found some inconsistencies in your translation compared to the English source version. In this case you must update the translation and save the changes.
 
==Translating Links==


The standard method for creating Wikilinks doesn't work very well in the Translation Extension, so the '''llink''' template method is used instead.
The standard method for creating Wikilinks doesn't work very well in the Translation Extension, so the '''llink''' template method is used instead.


*'''1. Linking to another wiki page:'''
*'''Linking to another wiki page:'''


English version:<nowiki>{{llink|Main menu|text=Main menu}}</nowiki><br />
English version:<nowiki>{{llink|Main menu|text=Main menu}}</nowiki><br />
Line 64: Line 92:
"Main menu" is the name of the original English version of the page. You should never translate this as the ''llink'' template will automatically redirect users to the translated version. You should however translate the part after '''text='''. In the example, the Esperanto translation "ĉefa menuo" has been entered.
"Main menu" is the name of the original English version of the page. You should never translate this as the ''llink'' template will automatically redirect users to the translated version. You should however translate the part after '''text='''. In the example, the Esperanto translation "ĉefa menuo" has been entered.


*'''2. Linking to a certain section of another wiki page:'''
*'''Linking to a certain section of another wiki page:'''


English version: <nowiki>{{llink|Profile|anchor=Personal_Messaging|text=Personal Message Options}}</nowiki><br />
English version: <nowiki>{{llink|Profile|anchor=Personal_Messaging|text=Personal Message Options}}</nowiki><br />
Line 75: Line 103:
Note that for languages which use certain special characters, the text after the above hash sign might have been automatically converted into a compatible format, which might seem a little confusing at first. For example, in the case of Esperanto, the above link appears as ''...#Privataj_mesa.C4.9Doj'' rather than ''...#Privataj_mesaĝoj''. Make sure that you use the converted form.
Note that for languages which use certain special characters, the text after the above hash sign might have been automatically converted into a compatible format, which might seem a little confusing at first. For example, in the case of Esperanto, the above link appears as ''...#Privataj_mesa.C4.9Doj'' rather than ''...#Privataj_mesaĝoj''. Make sure that you use the converted form.


===How to translate a template===
==Translating Templates==
In wikimedia a template is a special page that can be used within other pages to repeat consistently informations and/or structures (e.g. boxes like [[Template:Version specific]]). Templates can contain HTML, formatting entities, logical constructs and of course text. HTML, formatting and logical operators must not be translated, while text should be.


The translation of a template follows a different approach then the translation of a normal page.
The instructions for translating a template should be found on the template itself. For example, take a look at [[Template:Version_specific]] (scroll down to the section "How to translate this template"). Be careful to follow the notes accurately and translate only the necessary parts. Don't alter any code or other text in the template because that will break it.


* '''Create a new sub-page of the template'''. <!--
A list of the templates ready for translation can be found in the [[:Category:Translatable templates]]
--><br />The first step is create a new sub-page of the template. The name of this sub-page must correspond to the code of the language you want to translate the template to (we will provide a list of codes as soon as possible, in the meantime you will find few links already created in each updated template).<!--
--><br />Example: For the template [[Template:Add_new_template_translation]] , you can see the existing subpages at [[Special:PrefixIndex/Template:Add_new_template_translation/]].  Here's how the '''/it''' sub-page was created
*# Go to the template. You'll find it at http://wiki.simplemachines.org/smf/Template:Add_new_template_translation
*# Edit the address bar on your browser.  Add a slash, followed by the correct language code. For italian, this was done by adding '''/it''', so the address bar now said http://wiki.simplemachines.org/smf/Template:Add_new_template_translation/it
* '''Copy the entire template to the sub-page'''.
*#Now, at the template's base page (for example, http://wiki.simplemachines.org/smf/Template:Add_new_template_translation), use the "edit" or "view source" button to see the complete source of the base page.  Copy all of this
*#If the translated template sub-page already exists, you should see an "edit link" (for example, at http://wiki.simplemachines.org/smf/Template:Add_new_template_translation/it). If it does not yet exist, you will see a message such as "There is currently no text in this page. .... '''edit this page'''". This is the English-language version of the message. The actual message content may depend on the localization settings you have chosen on the wiki. Follow the link to '''edit this page'''.
*# Paste the content you copied from the template's base page into the sub-page you are creating.
*Translate ONLY the text that needs to be translated, and keep everything else just as it was. Complex templates will be marked up with contents to tell where to begin and end translation (<nowiki><!-- start translate --></nowiki>) and the end (<nowiki><!-- stop translate --></nowiki>).
*A list of the templates ready for translation can be found in the [[:Category:Translatable templates]]


==Tips and trick about translations==
===Why Templates and How to Work with Them===
===Headlines, templates, other formatting and line spacing===
Just noticed:
{{code|1=<nowiki>{{Other languages}}
{{TOCright}}
<translate><!--T:1-->
===View All Members===</nowiki>}}
will result in the headline no being properly displayed in translated pages (i.e. the triple equals doesn't get translated to a heading and remains as it is).
To solve the issue, please use an empty line between the last template and the translate tag:
{{code|1=<nowiki>{{Other languages}}
{{TOCright}}


<translate><!--T:1-->
In the case of the Version Specific template it is used to create the coloured boxes that highlight version specific features. These boxes require quite a lot of code, so instead of pasting all this code into every page where it is needed, a template is used instead. This particular template is used on a page by adding:
===View All Members===</nowiki>}}
The same applies to any kind of text: always leave a white line between the templates at the beginning of the page and the translate tag.


===Redirects===
<nowiki>{{ {{Localized|Version specific}}|small=yes|version=2.0|content=</nowiki><br /><nowiki>
Once a page is marked for translation is impossible to "revoke" this mark and let the page behave like a normal one. The same applies to redirects too.<br>
Translate the text here.
But redirects are more complicated: for example if the content of a page (let's say page_A) is moved to another page (page_B for this example), page_A is redirected to page_B and page_B is marked for translation, the translate extension will show the entries twice. Additionally if a placeholder is used in the redirect (e.g. <nowiki>&nbsp;</nowiki> in page_A) and is marked for translation, for sure if the id of the translation unit is the same as one of the ids in page_B there will be problems in particular while translating the unit with the same name.
}}</nowiki>


The workaround used temporarily is to avoid the redirect and use a message in the page that should contain the redirect with a link to the new page and being sure that there are no conflicts between .
In the above make sure that you translate only the part marked "Translate the text here". Leave everything else as it is and check that the final brackets are included after your translation because they close the box.


'''Alternative solution to be tested'''<br>
For further information about templates, please see the [http://meta.wikimedia.org/wiki/Help:A_quick_guide_to_templates Wikimedia Quick Guide to Templates].
Use a placeholder in the redirect page and name the translation unit something totally different from any other unit in the proper page.

Latest revision as of 09:54, 23 April 2022

This is the project page for translators of the SMF Wiki. Translators can check in here to find out what they can do. If you have any questions about this information, or suggestions for improving this page, please discuss in the Doc Helpers Board.

Languages to Translate

Below is a list of the 40 languages which SMF has been translated into. The links show the percentage of the Wiki translation completed in the Translation Extension for each language. This is the place to check to see what still needs to be translated (ignore the top two Mediawiki entries as they are for the Wiki interface). If the English text of these pages is modified, translations may need to be updated, so also please keep checking for updates from the Documentation Team in the Documentation Help board regarding changes to these pages. If the language you are interested in translating is not in the following list please notify the Doc Team by posting in the Documentation Help board.

How to Start Translating

These translations are being done using a wiki extension called the Translate Extension, provided by the translatewiki team. You can start translating pages by clicking on the page title in the statistics page for your language as listed above. If you want to review pages that have already been fully translated, untick the box next to Suppress completely translated message groups, which can be found at the top of the statistics page - then click on the button Show Statistics.

A list of the translatable pages can also be found at Special:PageTranslation. If you have permission to translate, you will see on these pages a link titled Translate this page above the content of the page. This is another way of accessing the Translate Extension.

Using the Translate Extension

  1. Make sure that the language you want to translate to is selected in the top right-hand corner. If it isn't, just click on that section and then search for your language.
  2. At the top of the page, you can select the page that you want to translate. If you click on All (next to Message Group), you will see a list of all the pages that are available in the Translate Extension.
  3. You can filter what is shown on the page by clicking on the links at the top of the page:
    • All - this shows all the translation units, including ones that have already been translated, as well as untranslated and outdated units.
    • Untranslated - Only the untranslated units will be shown.
    • Outdated - These units have been translated, but they now need updating.
    • Translated - Only translated units will be shown.
  4. At the bottom of the page, you can change the display of the Translate Extension:
    • List - Each translation unit is displayed in just one line. To see the full text of a unit, just click on it.
    • Page - This displays the full text of each translation unit.
    • Review - Select this in order to review and confirm each translated unit.
  5. Choose a unit to translate. Just click on a particular unit and enter the translation in the box below the source English text. When you have completed the translation of a unit (message), click on Save translation. If a translation already exists, you can make alterations by clicking on the edit icon to the right of each translation unit.

IMPORTANT:

  • When translating, you must always include all the Wiki code. For example, if you see ==Profile Information==, then make sure you include all the equal signs (==) as these indicate that it is a heading. For further information about wiki code, take a look at the Wikipedia Cheatsheet.
  • As you're translating a unit, please take note of any warning message above the input box. The Translate Extension may have found some inconsistencies in your translation compared to the English source version. In this case you must update the translation and save the changes.

Translating Links

The standard method for creating Wikilinks doesn't work very well in the Translation Extension, so the llink template method is used instead.

  • Linking to another wiki page:

English version:{{llink|Main menu|text=Main menu}}
Esperanto version:{{llink|Main menu|text=ĉefa menuo}}

"Main menu" is the name of the original English version of the page. You should never translate this as the llink template will automatically redirect users to the translated version. You should however translate the part after text=. In the example, the Esperanto translation "ĉefa menuo" has been entered.

  • Linking to a certain section of another wiki page:

English version: {{llink|Profile|anchor=Personal_Messaging|text=Personal Message Options}}
Dutch version: {{llink|Profile|anchor=Persoonlijke_berichten|text=Persoonlijke berichten opties}}

Again, don't translate the English name of the original page ("Profile" in this case). But do translate the words after text=, as these are the words that will appear in the link on the page. The anchor= marks the part of the Profile page that the link will lead to. The target of anchor= has to be changed in order to work correctly on the translated page. For example, in the case of the Dutch translation it has to be changed to anchor=Persoonlijke_berichten. You can discover what to enter after anchor= by going to the translated version of the page (in this case, Profile), then click on the the translated title of Personal Messaging in the Table of Contents. You will then see the required text in the address bar of your browser, the part after the hash sign (#). For example, in the case of the Dutch version:

http://wiki.simplemachines.org/smf/Profile/nl#Persoonlijke_berichten

Note that for languages which use certain special characters, the text after the above hash sign might have been automatically converted into a compatible format, which might seem a little confusing at first. For example, in the case of Esperanto, the above link appears as ...#Privataj_mesa.C4.9Doj rather than ...#Privataj_mesaĝoj. Make sure that you use the converted form.

Translating Templates

The instructions for translating a template should be found on the template itself. For example, take a look at Template:Version_specific (scroll down to the section "How to translate this template"). Be careful to follow the notes accurately and translate only the necessary parts. Don't alter any code or other text in the template because that will break it.

A list of the templates ready for translation can be found in the Category:Translatable templates

Why Templates and How to Work with Them

In the case of the Version Specific template it is used to create the coloured boxes that highlight version specific features. These boxes require quite a lot of code, so instead of pasting all this code into every page where it is needed, a template is used instead. This particular template is used on a page by adding:

{{ {{Localized|Version specific}}|small=yes|version=2.0|content=
Translate the text here. }}

In the above make sure that you translate only the part marked "Translate the text here". Leave everything else as it is and check that the final brackets are included after your translation because they close the box.

For further information about templates, please see the Wikimedia Quick Guide to Templates.



Advertisement: