15 Commits

Author SHA1 Message Date
Dmitry Gribenchuk
8116df6c21
cleanup unused import and fix comment space 2023-12-13 20:10:28 +02:00
Ghostkeeper
e705bbea4b
Add usage instructions for the next time
We keep forgetting.

Contributes to issue CURA-8472.
2021-09-06 13:37:12 +02:00
Nino van Hooff
89f0970a88 Remove trailing whitespace from Python files 2020-05-29 14:30:33 +02:00
Nino van Hooff
fe779d9501 Convert doxygen to rst for Cura scripts 2020-05-28 16:25:26 +02:00
Ghostkeeper
a314c4943b
Fix import script if Uranium is not on your PYTHONPATH
It was doing an os.path.exists on the relative path which has no context of where we're looking from. So make it absolute first and then check for the existence of the file. Also take the correct parent folder then and improve debug output.
2020-04-15 18:08:04 +02:00
Remco Burema
0b27119001 Fix encoding/decoding issues (Windows) for i18n import script.
part of CURA-6663
2019-08-08 15:47:05 +02:00
Ghostkeeper
b1cbaaef72
Fix warning message appearing for plural forms
There is no msgstr then so it thinks it's empty.

Contributes to issue CURA-6663.
2019-07-26 15:53:42 +02:00
Ghostkeeper
79d57ec10a
Fix comparisons when source is single-line but dest is multi-line
Or vice-versa. It's now agnostic to number of lines.

Contributes to issue CURA-6663.
2019-07-26 15:43:19 +02:00
Ghostkeeper
9e059b7a1a
Fix writing files with plural forms
Contributes to issue CURA-6663.
2019-07-26 15:31:42 +02:00
Ghostkeeper
23826d3404
Write resulting file
It seems to fail now for plurals. I didn't think of that yet.

Contributes to issue CURA-6663.
2019-07-26 15:07:26 +02:00
Ghostkeeper
58c32f97a1
Add documentation
Contributes to issue CURA-6663.
2019-07-26 14:23:04 +02:00
Ghostkeeper
a3611404d6
Find translations in source file
So it can add the translations to the destination file.

Contributes to issue CURA-6663.
2019-07-26 14:20:06 +02:00
Ghostkeeper
3f7bd2ac23
Handle iterating over source files and finding correct destination file
Contributes to issue CURA-6663.
2019-07-26 13:48:10 +02:00
Ghostkeeper
5a03ace239
Also discover Uranium translation directory
Contributes to issue CURA-6663.
2019-07-26 13:18:47 +02:00
Ghostkeeper
d1c4b63971
Add empty script to perform imports from Lionbridge
I want to automate this or it'll be a lot of work.

Contributes to issue CURA-6663.
2019-07-26 13:18:47 +02:00