Differences
This shows you the differences between two versions of the page.
| translations:advanced:translation_guidance_in_xfce [2026/09/11 21:44] – created kevinbowen | translations:advanced:translation_guidance_in_xfce [2026/09/12 01:39] (current) – Add warning note and table of contents kevinbowen | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ~~NOTOC~~ |
| + | ====== | ||
| + | <note important> | ||
| + | </ | ||
| - | ===== 0. License and Authors ===== | ||
| - | This document is provided under the [[http:// | + | * **[[# |
| - | It is based on the contributions by the following authors: | + | * **[[# |
| + | * **[[#Get the editor for PO file editing|Get the editor for PO file editing]]** | ||
| + | * **[[# | ||
| + | * **[[# | ||
| + | * **[[# | ||
| + | * **[[# | ||
| + | * **[[# | ||
| + | * **[[#XML files for desktop menu (it requires full source)|XML files for desktop menu (it requires full source)]]** | ||
| + | * **[[# | ||
| + | * **[[# | ||
| + | * **[[#Web page translation|Web page translation]]** | ||
| + | * **[[# | ||
| + | * **[[# | ||
| + | * **[[# | ||
| - | * Christian Biere < | + | ---- |
| - | * Thomas Schürger < | + | |
| - | * Murphy < | + | |
| - | * Daichi Kawahata < | + | |
| - | * Stavros Giannouris < | + | |
| - | * Mike Massonnet < | + | |
| - | * Added entry about web pages and po-doc documentation | + | |
| - | * Updated old references from SVN to Git | + | |
| - | ===== 1. Intro ===== | + | ===== 1. Introduction |
| This is a short summary of the gettext documentation. See the [[# | This is a short summary of the gettext documentation. See the [[# | ||
| if this information isn't sufficient for you. | if this information isn't sufficient for you. | ||
| + | |||
| ===== 2. Get the PO files ===== | ===== 2. Get the PO files ===== | ||
| Line 57: | Line 66: | ||
| If you are going to continue as translator, you might want to learn | If you are going to continue as translator, you might want to learn | ||
| one of above. | one of above. | ||
| + | |||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| ===== 4. Contact with the former translator in your language ===== | ===== 4. Contact with the former translator in your language ===== | ||
| Line 69: | Line 81: | ||
| translations mailing list (xfce-i18n@xfce.org). | translations mailing list (xfce-i18n@xfce.org). | ||
| + | ---- | ||
| ===== 5. Prepare the PO file ===== | ===== 5. Prepare the PO file ===== | ||
| Line 84: | Line 97: | ||
| Note: The command " | Note: The command " | ||
| generated .pot file. | generated .pot file. | ||
| + | |||
| + | ---- | ||
| ===== 6. Translate the messages ===== | ===== 6. Translate the messages ===== | ||
| Line 186: | Line 201: | ||
| * An explanation for plural mechanism. | * An explanation for plural mechanism. | ||
| * Commenting with "''#''" | * Commenting with "''#''" | ||
| + | |||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| ==== 6.1 Translation Context ==== | ==== 6.1 Translation Context ==== | ||
| Line 203: | Line 221: | ||
| In the translated string discard everything up to the first "'' | In the translated string discard everything up to the first "'' | ||
| translate the rest only. | translate the rest only. | ||
| + | |||
| + | ---- | ||
| ==== 6.2 Order switching ==== | ==== 6.2 Order switching ==== | ||
| Line 211: | Line 231: | ||
| msgid " | msgid " | ||
| msgstr "%2$s space left on device %1$s" | msgstr "%2$s space left on device %1$s" | ||
| + | |||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| ===== 7 Convert the output to UTF-8 (if it's not already UTF-8 encoded) ===== | ===== 7 Convert the output to UTF-8 (if it's not already UTF-8 encoded) ===== | ||
| Line 233: | Line 256: | ||
| encoded character sets. | encoded character sets. | ||
| + | ---- | ||
| ===== 8. Checking and Submitting the PO file ===== | ===== 8. Checking and Submitting the PO file ===== | ||
| Line 249: | Line 273: | ||
| translations to the list unless you have no warning. | translations to the list unless you have no warning. | ||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| ===== 9. Template updates ===== | ===== 9. Template updates ===== | ||
| Line 275: | Line 301: | ||
| Sometimes, it requires updating POFILES.in in the first place, when there are strings in new source files. | Sometimes, it requires updating POFILES.in in the first place, when there are strings in new source files. | ||
| + | |||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| ===== 10. Desktop files (4.2 branch only and it requires full source) ===== | ===== 10. Desktop files (4.2 branch only and it requires full source) ===== | ||
| Line 332: | Line 361: | ||
| xfwm4/ | xfwm4/ | ||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| ===== 11. XML files for desktop menu (it requires full source) ===== | ===== 11. XML files for desktop menu (it requires full source) ===== | ||
| Line 356: | Line 387: | ||
| then, newly translations will appear. | then, newly translations will appear. | ||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| ===== 12. Checking your translations in the actual situation ===== | ===== 12. Checking your translations in the actual situation ===== | ||
| Line 372: | Line 405: | ||
| and restarting the application. | and restarting the application. | ||
| + | ---- | ||
| ===== 13. Documentation translation ===== | ===== 13. Documentation translation ===== | ||
| Line 390: | Line 424: | ||
| What you should do **as translator**, | What you should do **as translator**, | ||
| + | |||
| + | ---- | ||
| ===== 14. Web page translation ===== | ===== 14. Web page translation ===== | ||
| Line 397: | Line 433: | ||
| $ svn co http:// | $ svn co http:// | ||
| + | ---- | ||
| ===== 15. Feedback ===== | ===== 15. Feedback ===== | ||
| Line 406: | Line 443: | ||
| Your feedback will be gratefully appreciated. | Your feedback will be gratefully appreciated. | ||
| + | ---- | ||
| ===== 16. Appendix ===== | ===== 16. Appendix ===== | ||
| Line 424: | Line 461: | ||
| * Translation Project: | * Translation Project: | ||
| * http:// | * http:// | ||
| + | |||
| + | ---- | ||
| + | |||
| + | ===== 17. License and Authors ===== | ||
| + | |||
| + | This document is provided under the [[http:// | ||
| + | It is based on the contributions by the following authors: | ||
| + | |||
| + | * Christian Biere < | ||
| + | * Thomas Schürger < | ||
| + | * Murphy < | ||
| + | * Daichi Kawahata < | ||
| + | * Stavros Giannouris < | ||
| + | * Mike Massonnet < | ||
| + | * Added entry about web pages and po-doc documentation | ||
| + | * Updated old references from SVN to Git | ||
| + | |||
| + | [[|Back to Top]] | ||
| + | ---- | ||
| + | |||
| + | [[: | ||
| + | |||
| + | [[: | ||