Localisation/tr: Difference between revisions

From FreeCAD Documentation
(Created page with "Bu araç [http://www.mediawiki.org/wiki/Help:Extension:Translate Help: Extension: Translate] bölümünde belgelenmiştir ve [http://www.mediawiki.org/wiki/MediaWiki_Language_...")
(Created page with "Çeviri için bir sayfa hazırlamaya hemen başlamak için, lütfen [http://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example Sayfa çeviri örneğini]...")
Line 31: Line 31:
Bu araç [http://www.mediawiki.org/wiki/Help:Extension:Translate Help: Extension: Translate] bölümünde belgelenmiştir ve [http://www.mediawiki.org/wiki/MediaWiki_Language_Extension_Bundle MediaWiki Dilinin Uzatma Paketi]nin bir parçasıdır.
Bu araç [http://www.mediawiki.org/wiki/Help:Extension:Translate Help: Extension: Translate] bölümünde belgelenmiştir ve [http://www.mediawiki.org/wiki/MediaWiki_Language_Extension_Bundle MediaWiki Dilinin Uzatma Paketi]nin bir parçasıdır.


To quickly get started on preparing a page for translation, please read the [http://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example Page translation example]. Essentially, a pair of <nowiki><translate> ... </translate></nowiki> tags need to surround the entire page to activate the translation system, and the page needs to be marked for translation.
Çeviri için bir sayfa hazırlamaya hemen başlamak için, lütfen [http://www.mediawiki.org/wiki/Help:Extension:Translate/Page_translation_example Sayfa çeviri örneğini] okuyun. Temel olarak, çeviri sistemini etkinleştirmek için tüm sayfayı çevreleyen bir çift <nowiki> <translate> ... </translate> </nowiki> etiketi olmalı ve sayfanın çeviri için işaretlenmesi gerekir.


To see an example of how the translation tool works, visit the [[Main Page]]. You will see an automatically generated language bar at the top. Click on [[Main Page/de|Deutsch]] (German), it will get you to [[Main Page/de]]. Right under the title, you can read "This page is a translated version of the page Main Page and the translation is XX% complete.", XX being the current percentage of translation. Click on "Translate" at the top of the page to start the translation utility to update, correct and review the existing translation.
To see an example of how the translation tool works, visit the [[Main Page]]. You will see an automatically generated language bar at the top. Click on [[Main Page/de|Deutsch]] (German), it will get you to [[Main Page/de]]. Right under the title, you can read "This page is a translated version of the page Main Page and the translation is XX% complete.", XX being the current percentage of translation. Click on "Translate" at the top of the page to start the translation utility to update, correct and review the existing translation.

Revision as of 08:00, 8 January 2019

Yerelleştirme genel olarak bir Yazılımın çok dilli bir kullanıcı arayüzüne sahip olma sürecidir. FreeCAD'de kullanıcı arayüzünün dilini Düzenle → Seçenekler → Uygulama altında ayarlayabilirsiniz. FreeCAD çoklu dil desteğini etkinleştirmek için Qt kullanır. Unix / Linux sistemlerinde, FreeCAD sisteminizin mevcut yerel ayarlarını varsayılan olarak kullanır.

FreeCAD'i çevirme de yardım

Kullanıcıların FreeCAD'e katkıda bulunabilecekleri çok önemli şeylerden biri (örneğin programlama becerileri yoksa), farklı yönlerini (kaynak kodu, wiki, web sitesi, dokümantasyon vb.) Başka bir dile çevirmeye yardımcı olmaktır. İşte bunu yapmanın yolları

FreeCAD kaynak kodunu çevirin

FreeCAD, Crowdin adlı üçüncü taraf işbirlikçi çevrimiçi çeviri sistemini kullanmaktadır. Crowdin, özel bir yazılımdır ancak FOSS(Free and Open Source Software, Ücretsiz ve açık kaynak yazılım) projelerine ücretsizdir. Aşağıda nasıl kullanılacağına ilişkin talimatlar verilmiştir:

  • Crowdin'deki FreeCAD çeviri projesi sayfasına gidin.
  • Yeni bir profil oluşturarak veya bir üçüncü taraf hesabı kullanarak giriş yapın (GitHub, GitLab, GMail vb ...)
  • Tercüme etmek istediğiniz dile tıklayın
  • Dosyalardan birinin yanındaki Çevir düğmesine tıklayarak çeviri işlemine başlayın. Örneğin, FreeCAD.ts, FreeCAD ana GUI'sinin metin dizelerini içerir.
  • Mevcut çeviriler için oy kullanabilir veya kendinizinkini oluşturabilirsiniz.
FreeCAD çevirisinde aktif olarak yer alıyorsanız ve bir sonraki sürüm başlatılmaya hazır olmadan önce bilgilendirilmek istiyorsanız, çevirinizi incelemek için zamanınız varsa, lütfen Crowdin FreeCAD çeviri ekiplerinden birine abone olun.


FreeCAD wiki'sini çevirin

Bu wiki, çoğu el kitabından oluşan birçok içeriğe ev sahipliği yapıyor. Ana Sayfa 'dan başlayarak belgelere göz atabilir veya Kullanım kılavuzuna göz atabilirsiniz.

Wikiyi çevirmek için, wiki düzenleme izninizin olması gerekir; bkz. Wiki'de nasıl düzenleme iznini alabilirim?.

Ayrıca, wiki işaretlemesi hakkında yeterli bilgiye sahip olmalı ve WikiPages bölümünde açıklanan genel şekillendirme kurallarına uymalısınız.

Mediawiki Çeviri Uzantısı

Wiki SourceForge'dan uzaklaştığında, Yorik, sayfaların çevrilmesini kolaylaştıran MediaWiki'nin Çeviri eklentisini kurdu. Çeviri uzantısının avantajları, sayfa başlığının artık çevrilebilmesi, çevirilerin kaydını tutması, orijinal sayfanın güncellendiğini bildirmesi ve çevirileri orijinal İngilizce sayfasıyla senkronize olarak tutmasıdır.

Bu araç Help: Extension: Translate bölümünde belgelenmiştir ve MediaWiki Dilinin Uzatma Paketinin bir parçasıdır.

Çeviri için bir sayfa hazırlamaya hemen başlamak için, lütfen Sayfa çeviri örneğini okuyun. Temel olarak, çeviri sistemini etkinleştirmek için tüm sayfayı çevreleyen bir çift <translate> ... </translate> etiketi olmalı ve sayfanın çeviri için işaretlenmesi gerekir.

To see an example of how the translation tool works, visit the Main Page. You will see an automatically generated language bar at the top. Click on Deutsch (German), it will get you to Main Page/de. Right under the title, you can read "This page is a translated version of the page Main Page and the translation is XX% complete.", XX being the current percentage of translation. Click on "Translate" at the top of the page to start the translation utility to update, correct and review the existing translation.

If you go to Main Page/de, you will notice that you cannot edit the page directly anymore by clicking the [Edit] tags, and the top link "Edit" has been substituted by the "Translate" link that opens the translation utility.

When adding new content, the English page should be created first, then translated into another language. If someone wants to change or add content in a page, the English page should be modified first.

If you are unsure on how to proceed with the translations, don't hesitate to ask for help in the Development/Wiki subforum or in the specific language subforum in the FreeCAD forum.

Important notes

Every wiki user that has "Editor" permissions is able to launch the translate utility and write, save, and review translations.

However, only users with "Administrator" permissions are able to mark pages for translation. A page that is not marked for translation won't make use of the translation extension and won't be correctly synchronized to the English information.

The left sidebar is also translatable, but only Administrators can modify this element of the site. Please follow the dedicated instructions on Localisation Sidebar.

The first time you switch a page to the new translation system, it loses all its old "manual" translations. To recover a translation, you should save an offline copy of the old text before the switch. Then you can use this old translated text to fill in the translation units in the new system. You can also open an earlier version from the history, and get the old text in this way. This has to be done for every language that had a translated page.

Old translation instructions

These instructions are for historical background only. Translations should use the new system with the #Mediawiki Translation Extension described above.

So the first step is to check if the manual translation has already been started for your language (look in the left sidebar, under "manual").
If not, head to the forum and say that you want to start a new translation, we'll create the basic setup for the language you want to work on.
You must then gain wiki edit permission.
If your language is already listed, see what pages are still missing a translation (they will be listed in red). The technique is simple: go into a red page, and copy/paste the contents of the corresponding English page, and start translating.
Do not forget to include all the tags and templates from the original English page. Some of those templates will have an equivalent in your language (for example, there is a French Docnav template called Docnav/fr). You should use a slash and your language code in almost all the links. Look at other already translated pages to see how they did it.
Add a slash and your language code in the categories, like [[Category:Developer Documentation/fr]]
And if you are unsure, head to the forums and ask people to check what you did and tell you if it's right or not.
Four templates are commonly used in manual pages. These 4 templates have localized versions (Template:Docnav/fr, Template:fr, etc...)

  • Template:GuiCommand : is the Gui Command information block in upper-right of command documentation.
  • Template:Docnav : it is the navigation bar at the bottom of the pages, showing previous and next pages.

Page Naming Convention
Please take note that, due to limitations in the Sourceforge implementation of the MediaWiki engine, we require that your pages all keep their original English counterpart's name, appending a slash and your language code. For example, the translated page for About FreeCAD should be About Freecad/es for Spanish, About FreeCAD/pl for polish, etc. The reason is simple: so that if translators go away, the wiki's administrators, who do not speak all languages, will know what these pages are for. This will facilitate maintenance and avoid lost pages.
If you want the Docnav template to show linked pages in your language, you can use redirect pages. They are basically shortcut links to the actual page. Here is an example with the French page for About FreeCAD.

  • The page About FreeCAD/fr is the page with content
  • The page À propos de FreeCAD contains this code:
#REDIRECT [[About FreeCAD/fr]]
  • In the About FreeCAD/fr page, the Docnav code will look like this:
{{docnav/fr|Bienvenue sur l'aide en ligne|Fonctionnalités}}

The page "Bienvenue sur l'aide en ligne" redirects to Online Help Startpage/fr, and the page "Fonctionnalités" redirects to Feature list/fr.

Translate the FreeCAD website

Translate the FreeCAD documentation

Development - How to Add Localisation

This section is for developers who want to add localisation to their code.

Preparing your FreeCAD/master modules for translation

These are the parts to the FreeCAD translation process:

  • extract text strings from source code into *.ts files
  • load *.ts files into FreeCAD Crowdin.
  • translation of strings within Crowdin
  • extract modified/new *.ts files from Crowdin
  • convert *.ts files into *.qm files and update each module's *.qrc file
  • update FreeCAD master

All of the above steps are performed by the "translation scripts" which are run by an administrator periodically.

Preparing your module for translation is quite easy. First, you need to ensure that you have a "translations" directory in myModule/Gui/Resources. Then open a terminal window (or Windows/OSX equivalent) in your "translations" directory and enter the following command:

lupdate -ts myModule.ts

This creates an empty translation file. Once this is done, you need to ensure that the translation scripts are updated as in this pull request.

Everything after this is automatic as far as a developer is concerned. The administrator will extract the text strings, the translators will translate them, then the administrator will extract the translations and update FreeCAD/master.

Preparing your 3rd party module or macro for translation

3rd party modules or macros are translated in much the same fashion, except that you must do some of the work yourself. This forum discussion describes the details .

Older module translation techniques

Localization Older Methods describes the use of translation tools such as Qt Linguist, lupdate, lrelease, pylupdate4, etc in detail. Most of this is no longer required for FreeCAD/master modules, but may be helpful preparing and updating 3rd party modules.

Automating Crowdin Translation Updates

Currently FreeCAD maintainers use the Crowdin API via Crowdin Scripts to pull and push translations in to Crowdin and back in to the Github repo. The Crowdin API gives FreeCAD maintainers the ability to automate aspects of the project's translation workflow, for more info refer to the Crowdin API documentation.

Branding
Extra python modules