diff options
author | Ghostkeeper <rubend@tutanota.com> | 2021-09-06 14:37:12 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2021-09-06 14:37:12 +0300 |
commit | e705bbea4b6f38bcc87ed22b02d1eb211ceb6e0b (patch) | |
tree | c81eaeae3d6dd1c34a85cd19f0b716c9d032edb7 | |
parent | ce134812f15188423b3664ed2b231b71d4d56cbd (diff) |
Add usage instructions for the next time
We keep forgetting.
Contributes to issue CURA-8472.
-rw-r--r-- | scripts/lionbridge_import.py | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/scripts/lionbridge_import.py b/scripts/lionbridge_import.py index 0a7b63e9ac..65b07183a3 100644 --- a/scripts/lionbridge_import.py +++ b/scripts/lionbridge_import.py @@ -1,4 +1,4 @@ -# Copyright (c) 2019 Ultimaker B.V. +# Copyright (c) 2021 Ultimaker B.V. # Cura is released under the terms of the LGPLv3 or higher. import argparse #To get the source directory from command line arguments. @@ -190,6 +190,20 @@ def find_translation(source: str, msgctxt: str, msgid: str) -> str: return "\"\"\n" if __name__ == "__main__": + print("""Usage instructions: + +1. In Smartling, in the Cura project go to the "Files" tab. +2. Select all four .pot files. +3. In the expando above the file list, choose "Download Selected". +4. In the pop-up, select: + - Current translations + - Select all languages + - Organize files: Folders for languages. +5. Download that and extract the .zip archive somewhere. +6. Start this script, with the location you extracted to as a parameter, e.g.: + python3 /path/to/lionbridge_import.py /home/username/Desktop/cura_translations +""") + argparser = argparse.ArgumentParser(description = "Import translation files from Lionbridge.") argparser.add_argument("source") args = argparser.parse_args() |