ویکی چندزبانه بنیاد مستندات آزاد

From The Document Foundation Wiki
< TDF Wiki(Redirected from Multilingual Wiki/fa)
Jump to navigation Jump to search
This page is a translated version of the page TDF Wiki/Multilingual and the translation is 48% complete.
Other languages:
Bahasa Indonesia • ‎Deutsch • ‎English • ‎Esperanto • ‎Jawa • ‎Nederlands • ‎dansk • ‎español • ‎français • ‎galego • ‎italiano • ‎lietuvių • ‎português • ‎português do Brasil • ‎română • ‎slovenčina • ‎Ελληνικά • ‎русский • ‎українська • ‎العربية • ‎فارسی • ‎中文(台灣)‎ • ‎中文(简体)‎ • ‎日本語 • ‎한국어

این صفحه به محتوای «ویکی چندزبانه» که روی ویکی بنیاد مستندات آزاد ارائه می‌شود می‌پردازد.

Gnome-dialog-warning.svg

توضیح مهم
از روش ترجمه OrigLang برای صفحات تازه ساخته شده استفاده نکنید. ما در حال گذار به افزونه ترجمه مدیاویکی هستیم.


پس‌زمینه

این صفحه حاوی نکات مهمی برای ویراستاران ویکی است. لطفاً قبل از افزودن محتوای ترجمه شده یا محلی به ویکی این صفحه را بخوانید.

مطالب با تمرکز محلی

این صفحات، فقط به زبان محلی نوشته می‌شوند و ترجمه نخواهند شد. آن‌ها زیرصفحه صفحه‌ای هستند که با کد زبان با حروف بزرگ نامگذاری شده است.

مثال:

 https://wiki.documentfoundation.org/DE
 https://wiki.documentfoundation.org/DE/Team
 https://wiki.documentfoundation.org/DE/Veranstaltungen
 ...
 https://wiki.documentfoundation.org/FR
 https://wiki.documentfoundation.org/FR/Blabla
 

مطالب با تمرکز جهانی

این صفحات به انگلیسی تنظیم شده و به زبان‌های مختلف ترجمه می‌شوند. صفحات ترجمه شده، زیرمجموعه‌هایی هستند که با کد زبانشان نام‌گذاری شده‌اند. فرایند ترجمه با استفاده از افزونه ترجمه مدیاویکی مدیریت می‌شود.

برای قابل ترجمه کردن یک صفحه این مراحل را دنبال کنید:

  1. محتوایی که باید ترجمه شود را در بلوک‌های <translate></translate> قرار دهید
  2. از الگوی {{#translation:}} برای افزودن پسوند زبان به عناصری مانند منوها، دسته‌ها یا حتی پیوندها به صفحات محلی استفاده کنید
  3. بلوک فهرست گزینشی زبان <languages/> را اضافه کنید
  4. پس از ذخیره کردن صفحه، روی پیوند بالای صفحه کلیک کنید که می‌گوید این صفحه را برای ترجمه مشخص کنید
  5. بررسی کنید که همه چیز درست باشد و روی دکمه‌ای در پایین صفحه کلید کنید که می‌گوید این نسخه را برای ترجمه مشخص کنید

After the page is marked for translation, the Translate extension will automatically add markers in the form of <!--T:1--> to denote translatable strings. To become automatically separated into a string, a block of text has to be surrounded by blank lines. To force the separation of strings, you can add more <translate></translate> blocks. Pay attention to bulleted or numbered lists especially.

When you add or change content in the source page, this will appear at the top of the page: This page has changes since it was last marked for translation. Click the link "marked for translation" to bring the translation system up to date following the same process as in the initial marking for translation.

In an ideal situation, translators should see a minimal amount of wiki markup. Having markup for a table or a template in the translatable string is frustrating and confusing for the translator. Try to leave such markup outside the <translate></translate> blocks.

The page title is made translatable by default, but you can control this with the checkbox "Allow translation of page title" when marking a page for translation. The page title is the first translatable string in the list of strings. In the translation system and interface, the string has a name like "Translations:Faq/General/127/Page display title/ru" while the other string names have numeric identifiers like the "4" in "Translations:Faq/General/127/4/ru".

Sometimes there is a need to give a page a display title that is different from the name in the page path. Note that this is not recommended and should be avoided. In these cases, use the Rename template like so: {{Rename|My new name}}. The template will make sure there are no errors in the translated pages regarding the title.

Sometimes you need to access the English wiki source without the <!--T:1--> markers. This can be done by adding /en at the end of the page path and then editing the source. This will allow you to copy a page structure into a new page (such as Release notes).

When you use the {{#translation:}} template to add language suffixes to local links, be sure to use absolute paths and not relative ones that begin with /. If you use it in relative paths, you will end up with two language codes and a broken link.

Below is an example of a page prepared for translation. Notice the separation of the bulleted list and contents in a table.

 {{TopMenu{{#translation:}}}}
 {{Menu{{#translation:}}}}
 {{Menu.Documentation{{#translation:}}}}
 <languages/>

 <translate>
 == Hello World ==

 * We must take the world as we find it
 * When we are gone, let the world be flooded
 * The world is as fools wish it to be
 * It's a small world!
 </translate>
 <translate>
 * Crows are black the world over
 * He slipped once and all the world knew about it
 * The world is like a market, the one does business and the other does none
 * Huge though the world is, I always miss when I hit at it
 </translate>


 {| class="wikitable"
 |-
 | <translate>Cell content</translate>
 |-
 | {{sometemplate|<translate>Text content for a template</translate>}}
 |}

 [[Development/Create_a_Hello_World_LibreOffice_extension{{#translation:}}|<translate>Tutorial on creating a Hello World extension</translate>]]

 [[Category:Documentation{{#translation:}}]]
 

انتقال محتوای ترجمه شدهٔ قدیمی به سامانه کنونی

In the past, TDF wiki employed a translation process that used templates called OrigLang and Lang. The templates displayed a menu that linked the source page with the translated ones. You can find all the translated content that use the Lang template in this list: Special:WhatLinksHere/Template:Lang. Likewise, you can list the pages with OrigLang template.

Translate extension has a migration tool, which helps in moving already translated content to the new system. If the source and translation blocks match exactly, the migration will be very easy. Otherwise you have to cut and paste strings between the input boxes.

The migration goes as follows:

  1. After marking a page for translation, wait for some minutes, so the server will have processed the page
  2. Navigate to Special:PageMigration
  3. In the input box, input the language path of the page you want to migrate, like: Mypath/Mypage/de for some imaginary German translation
  4. Click the Import button
  5. Clean up the contents in the input boxes containing the old translations (for example, remove any useless menu templates)
  6. In the column with the translations, you can't leave empty or extra input boxes at the end, so delete them by clicking the trashcan icon next to them
  7. After you cleaned up and put everything in order, click the Save button

Remember that you can always view the old version of a translated page using its View history link and clicking on an old revision.

If you want to view the source of an old revision, copy its link from the history and visit the link after adding this to the end: &action=edit

Sometimes it does not make sense to use the migration tool. Leaving wiki markup outside the translate elements often confuses the tool. In these cases, the suggestions presented by the translation memory can be more useful.