From 5989bb1ed3589bb9006faaa9bb243bc84ffa3ea9 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Sun, 8 Oct 2017 14:25:21 +0300 Subject: [PATCH] Update localization guide --- docs/localization_howto.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/localization_howto.md b/docs/localization_howto.md index 41922f1..b1a9a3e 100644 --- a/docs/localization_howto.md +++ b/docs/localization_howto.md @@ -1,12 +1,13 @@ ## ADD SUPPORT FOR NEW LANGUAGE ### Requirements -- [GNU gettext](https://www.gnu.org/software/gettext) (To build the MO files) +- [GNU gettext](https://www.gnu.org/software/gettext) (To build the .MO files) ### Notes - Do **NOT** send me the PO files via email since i'm not looking at them anymore - See the **Help** & **Helpful links** sections below for help - The instructions below assume basic knowledge of the command line (OS independent) +- Binary translation files (.MO) built during step 7 are only for the translator to test his work (in step 8) and you should **NOT** force push them - Make sure to update the following headers in the **PO** file: - **PO-Revision-Date** - update the revision date - **Last-Translator** - provide valid contact information @@ -21,7 +22,7 @@ `python new-locale.py language_code_here` 5. Edit the created **PO** file with your favorite editor 6. Add the new language in the **optionsframe.py** file -7. Build the binary translation files (MO) using the **setup.py** script: +7. Build the binary translation files (.MO) using the **setup.py** script: `python setup.py build_trans` 8. Test the translations by running youtube-dl-gui: `python -m youtube_dl_gui` @@ -49,7 +50,7 @@ git push origin master 1. Open **optionsframe.py** with your favorite editor 2. Locate the **LOCALE_NAMES** attribute - 3. Add your language to it (make sure to sort alphabetically based on the language name) + 3. Add your language to it (make sure to **sort alphabetically** based on the language name) ``` python LOCALE_NAMES = twodict([