From 29a3f86381ac2c8f580949dee627878e83c8d9e4 Mon Sep 17 00:00:00 2001 From: Nino van Hooff Date: Mon, 20 Apr 2020 12:15:22 +0200 Subject: [PATCH] Fix / clarify translations.md CURA-7344 --- docs/translations.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/translations.md b/docs/translations.md index ffe3f16acf..2eba51c726 100644 --- a/docs/translations.md +++ b/docs/translations.md @@ -77,8 +77,9 @@ The following steps are pretty much the same for both Cura and Uranium, but have mkdir build cd build cmake .. +cd .. ``` -Now build the build-target [extract-messages] (with the terminal; when your still in the build directory). (If it starts wining that it can't find some directory; fix it, throw away the build folder and create the build-files again.) +`make` commands can now be executed from the project root. Now build the build-target [extract-messages] (with the terminal; when your still in the build directory). (If it starts wining that it can't find some directory; fix it, throw away the build folder and create the build-files again.) ``` make extract-messages ``` @@ -122,13 +123,13 @@ Creating the MO files & testing ------------------------------- In the building process; the MO files are automatically created. So you only manually create the MO files that you want to test. A great example is x-test. The PO files for x-test are automatically created by [extract-messages]. It is basically an English translation with two X's before and after each string. You use it to test whether all strings are being properly translated. -Create a directory in the directory of the language (x-test is this example). The name of the new directory has to be [LC_MESSAGES]. Create the MO file with the terminal: +The directory of the language (x-test is this example) must contain a special directory called `LC_MESSAGES`. This directory is created automatically. Create the MO file with the terminal (project root): ``` -make i18n-update-mo +make i18n-create-mo ``` Or for your language: ``` -make i18n-update-mo- +make i18n-create-mo- ``` Setting the environment variable doesn't function. So for now you need to edit the language default in: Uranium/UM/i18n.py ~~def __init__(self, name = None, language = "default"):~~