From 7b43ce484be2b4f4ecf58f748593aaccd108d5f5 Mon Sep 17 00:00:00 2001 From: Bandie Date: Thu, 4 Oct 2018 22:52:59 +0200 Subject: [PATCH] Updated How to translate (markdown) --- How-to-translate.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/How-to-translate.md b/How-to-translate.md index 595e274..3e86650 100644 --- a/How-to-translate.md +++ b/How-to-translate.md @@ -4,15 +4,16 @@ This article will show you how you can help to translate this project. 1. Install git, gettext and po4a. 2. Fork this project. 3. Clone your fork on your computer. +4. (Optional:) Get an editor for po files or use an online service for it. We will begin with the simplest translations: -## Translation within the program - gettext +## Translating the program 1. Change into the `po` directory. 2. Run `msginit --locale=` (for example `msginit --locale=de_DE.UTF-8`). This will ask for your mail adress. It will generate a file ending with `.po` which you want to translate. 3. Change the header from `"Last-Translator: \n"` to `"Last-Translator: Your Name \n"` -4. Do your translation. (You can use some .po translation programs) +4. Do your translation. (You can use some .po translation programs or use online services for it) 5. Add your language to the `LINGUAS` file. @@ -63,7 +64,7 @@ msgstr "" ## man pages -### Preparation +### Translating the man pages 1. Change into the `po4a` directory. 2. Run `msginit --locale=` (for example `msginit --locale=de_DE.UTF-8`). This will ask for your mail adress. It will generate a file ending with `.po` which you want to translate. 3. Change the header from "Last-Translator: " to "Last-Translator: Your Name "