עזרה:הרחבת תרגום

From mediawiki.org
This page is a translated version of the page Help:Extension:Translate and the translation is 78% complete.
העמוד הראשי המיוחד של ההרחבה „Special:Translate”, במשימה הכי נפוצה שלה, „הצגת כל ההודעות שלא תורגמו”

הרחבת התרגום היא כלי המרחיב את מדיה־ויקי עם תכונות הנדרשות בשביל עבודת תרגום. ניתן להשתמש בה כדי לתרגם דפי תוכן, ממשק תוכנת ויקי, ואף תוכנות, כפי שמבוצע באתר translatewiki.net. הרחבת התרגום כוללת ממשק תרגום קל לשימוש, ומאפשרת לחלק בין מבנה התוכן לשפתו, ומראה למתרגמים רק את התוכן שאפשר לתרגם על ידי חלוקת התוכן לקטעים קצרים. לכל יחידה מנוהל מעקב אחר שינויים באופן נפרד אוטומטית, כך שמתרגמים יכולים לראות מיידית מה צריך עדכון בדף מסוים או בכל הוויקי.

הרחבת התרגום משמשת לתרגום מנשק המשתמש של מדיה־ויקי ומיזמי תכנה נוספים תחת translatewiki.net על ידי אלפי מתרגמים כל חודש. אצל userbase.kde.org ההרחבה משמשת לתרגום של אלפי דפי תוכן עם תיעוד למשתמשים. קל מאוד להתחיל להשתמש בהרחבת התרגום ובאותה העת מתאפשרת הרחבתה לצד אספקת דיווחים מתקדמים, סקירה ותכונות ניהול מהלך עבודה.

תכונות

עורך התרגומים: הודעה עם עצה (לא מופיע בתמונה) והצעות משתי שפות מסייעות

ממשק: התכונה המרכזית של הרחבת התרגום היא ממשק תרגום פשוט אך פונקציונלי. מלבד המידע החיוני כמו הגדרת הודעות ותיעוד, ניתן גם לראות תרגומים בשפות אחרות. אם הגדרה השתנתה, תראה את השינויים. התוסף מגיע עם כמה בדיקות מובנות, שיכולות לעזור עם טעויות נפוצות כמו סוגריים לא מאוזנים ומשתנים שלא השתמשו בהם. בהתאם לתצורה, ישנן גם הצעות משירותי זיכרון התרגום ושירותי תרגום המכונה כמו אלה של Google Translate, מתרגם הבינג של מיקרוסופט ואפרטיום.

השימושיות של ממשק התרגום מורחבת בעזרת JavaScript ו־AJAX. המנגנון מספק WebAPIs בהם ניתן להשתמש בממשקים ניידים או בממשקים המותאמים לסוג מסוים של תוכן. כמו כן, ניתן לייצא הודעות לתרגום בכל כלי מקוון או מקוון אחרים המקבלים את תבנית הקובץ Gettext po.

קבוצות הודעות ומשימות: הרבה תכונות בנויות סביב שמי מושגים בסיסיים: קבוצות הודעות ומשימות

קבוצת הודעות מייצגת אוסף של הודעות. דף תוכן אחד יהיה קבוצת הודעות אחת, כאשר בצורה הפשוטה ביותר, כל פסקה תהיה הודעה אחת בקבוצה זו. ההודעות המשמשות בכל סיומת MediaWiki מהוות קבוצת הודעות באתר translatewiki.net - לכמה מהתוספים הגדולים יש מספר קבוצות. בנוסף ניתן ליצור קבוצה של קבוצות, כמו כל עלוני החדשות או כל הודעות הרחבת התרגום. הרבה מהסטטיסטיקה והמשימות עובדות על בסיס קבוצת ההודעות.

The tasks, or in other words different listings of messages in a message group, facilitate different use cases. Normally a translator gets a list of all untranslated messages in a chosen message group, but there are tasks where you can review messages or just get a list of all messages, translated or not.

This special page reports the translation status of each message group

Reporting and statistics: The extension has extensive reporting features ranging from a view of untranslated messages across all message groups in a given language to lists of translators per language with their activity level.

תרגום תוכן: If you have ever tried to translate content in MediaWiki without any tools, you know it does not scale. The translated versions get out of date and there is no way to track changes to the master page, so there are many half-translated and outdated translations without a clear overview of the overall status. Translators often feel discouraged when they cannot work with small manageable pieces of text. Translators don't find what to work on or what needs updating. The users also get confused by outdated information.

This is all solved with the Translate extension and its page translation feature. It adds a bit of overhead to the pages that need translation, but the benefits far outweigh this. Essentially you only need to mark the parts of the page that need translation. The extension then splits such parts into paragraph sized units and creates a message group for them. After that translators can use all the features described above. In addition you can easily add a language bar with the ‎<languages /> tag or have links automatically go to the user's preferred language version (only) when it exists, by using links of the form [[Special:MyLanguage/Pagename]].

לעוד מידע ראה את המדריך איך להגדיר עמוד תוכן לתרגום ואת התיעוד מעמיק של תכונת תרגום העמודים

Developers: The extension comes with built-in support for many common translation file formats, like Java properties and Gettext po files. It has an extensive set of tools, both in-wiki and on the command line, to efficiently import and export translations.

Searching: Without a search feature, it is difficult for translators to find specific messages they want to translate. Traversing all the translations or strings of the project is inefficient. Also, translators often want to check how a specific term was translated in a certain language across the project.

This is solved by the special page Special:SearchTranslations. Translators can find the messages containing certain terms in any language and filter by various criteria: this is the default. After searching, they can switch the results to the translations of said messages, for instance to find the existing, missing or outdated translations of a certain term.

מקרי בוחן

You can translate almost anything with the Translate extension. Naturally there are specialized tools for translation of certain kind of content like video subtitles, that are better done with those tools, but in general Translate performs very well with any kind of text that can be split into messages with length ranging from one word up to one large paragraph. Longer messages become unwieldy to translate and are just harder to work with.

The three primary use cases that the Translate extension supports are content translation, local interface translation and software translation. All of them are covered in the following sections, with links to tutorials and to reference documentation or in-depth topical help where available. Of the three use cases the interface translation has been utilized the least.

תרגום תוכן

The translation is outdated: outdated parts are replaced with new source text and translators can reach the messages to update in a single click

Most wikis have content they would like to be available in multiple languages. Whether just a few or hundreds of pages, it doesn't matter. In order to prevent wasting translator's time, pages should be marked for translation only when they are reasonably stable. Each change that is made afterwards can affect tens or hundreds of old translations, and the time needed to update them adds up. Especially with volunteer translators, you should be aware of this aspect, and respect the time they spend making translations and updates, avoiding unnecessary work. If you use the Translate extension to translate pages, you are already well on your way to using the translator time available in the most effective and efficient way.

The way the Translate extension splits up a page into paragraph sized units does not leave too much freedom for translators to change the content. This is usually a good thing and is ideal where continuity and consistency of content across languages is desired. It can be worked around, but in principle this way of doing translations is not generally suitable, for example, for Wikipedia articles, which usually are totally independent of each other. Even if they originally start as a translation from a different language, they usually begin living their own independent life from the original version. With Translate, the original page is always the main version, and new content cannot be developed in translated versions.

With these limitations in mind there are still plenty of cases where this feature is a perfect match. Most, if not all, user documentation falls into this category as well as news-like content that does not change once written. If you have the Translate extension already installed and access rights configured, try creating a page and wrapping the whole text inside <languages /><translate>...</translate> and follow the links, or follow the tutorial How to prepare a page for translation.

קבוצות של עמודים יכולים עוד יותר להצטבר יחד עם עמוד הSpecial:AggregateGroups

ממשק תרגום מקומי בוויקי רב לשוני

One thing almost every wiki has customized is the sidebar. It is possible to create a message group for the custom sidebar messages and also for other local interface customisations.

One interesting expansion is the multilingual pages or templates built with the {{int:}} magic word. The translatewiki.net main page and some Wikimedia Commons templates are good examples of this. The magic word {{int:}} is an alternative to the content translation feature and it is more suitable to mark-up heavy pages just like the translatewiki.net main page. Another nice feature is that the language of the page automatically follows the user interface language, so there is no need for a language bar, although you might want to have an interface language selector instead.

Setting this up is currently a bit more complicated than content translation and needs software configuration, but it is all covered in the tutorial How to make an interface message group.

תרגום תוכנה

The Translate extension is a good fit for translating software interface messages. At translatewiki.net, it is used to translate dozens of software products from games to web applications. The Translate extension supports reading and updating translations from and to common formats used in web development including Java properties, Gettext and Yaml files.

Change tracking is also available for externally tracked files, because internally the extension uses a cached derivative version of the localisation files where the source text and its translations are stored, instead of using them directly in their original format. Translation administrators can either use the web interface or a command line interface to check new message definitions and "fuzzy" (request update of) translations when they need updating. This works regardless of the underlying file format or version control system (if any).

בעזרת כלי שורת פקודה פשוטים, מנהלי התרגום יכולים לייבא בקלות אפילו קבוצה גדולה של תרגומים קיימים ועם פקודה אחת בלבד הם יכולים לייצא את כל התרגומים בפורמט הנכון ובמבנה הספריות הנכון. אתה יכול לייצא ישירות אל מאגר VCS, שם תוכל לבצע שינויים וקבצים חדשים בקלות.

קריאה נוספת ומדריכים

למתרגמים ולמנהלי תרגומים

שקופיות של סדנא על שימוש בTemplate:דקדוק:תחילית ב־Wikimania17

למנהלי תרגומים

מסמכי עזר למפתחים

עוד באותו נושא