Skip to content

Commit 15bcd16

Browse files
committed
update(tooling): keep obsolote translation and add newline in .pro file
1 parent 8f11314 commit 15bcd16

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

docs/development/translation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ sudo apt install qttools5-dev-tools
1919
1. Update `.ts` files:
2020

2121
```bash
22-
pylupdate5 -noobsolete -verbose qtribu/resources/i18n/plugin_translation.pro
22+
pylupdate5 -verbose qtribu/resources/i18n/plugin_translation.pro
2323
```
2424

2525
1. Translate your text using QLinguist or directly into `.ts` files. Launching it through command-line is possible:

qtribu/resources/i18n/plugin_translation.pro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ FORMS = ../../gui/dlg_contents.ui \
55
../../gui/dlg_settings.ui \
66
../../gui/form_article.ui \
77
../../gui/form_rdp_news.ui \
8-
../../gui/wdg_authoring.ui
8+
../../gui/wdg_authoring.ui \
9+
../../gui/wdg_editing_compliance.ui
910

1011
SOURCES = ../../constants.py \
1112
../../gui/dlg_contents.py \
@@ -14,6 +15,7 @@ SOURCES = ../../constants.py \
1415
../../gui/form_rdp_news.py \
1516
../../gui/gui_commons.py \
1617
../../gui/wdg_authoring.py \
18+
../../gui/wdg_editing_compliance.py \
1719
../../logic/news_feed/json_feed.py \
1820
../../logic/news_feed/mdl_rss_item.py \
1921
../../logic/news_feed/rss_reader.py \

scripts/generate_translation_profile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ def get_relative_paths(filepaths_list: list[Path]) -> list[str]:
8484
"# Do not edit this file manually\n\n"
8585
)
8686
f.write(f"{forms}\n\n{sources}\n\n{translations}")
87+
f.write("\n")

0 commit comments

Comments
 (0)