Skip to content

Commit 22f9d5f

Browse files
committed
Update version to 3.8.0 and enhance gettext_helpers functionality
1 parent a5a307e commit 22f9d5f

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
# Changelog #
22

3-
## Version 3.7.2 ##
3+
## Version 3.8.0 ##
4+
5+
ℹ️ Changes:
6+
7+
* `utils.gettext_helpers`:
8+
* `do_rescan_files`: use `--no-location` option to avoid including the file location in the translation files
9+
* `msgmerge`: use `--update` option to avoid regenerating the translation files
10+
* Replace `flake8` with `ruff` for linting in GitHub Actions workflow
411

512
🛠️ Bug fixes:
613

7-
* [Issue #84](https://github.com/PlotPyStack/guidata/issues/84 ) - Side effects of `win32_fix_title_bar_background` with `QGraphicsEffect` active
14+
* [Issue #84](https://github.com/PlotPyStack/guidata/issues/84) - Side effects of `win32_fix_title_bar_background` with `QGraphicsEffect` active
815
* [Issue #82](https://github.com/PlotPyStack/guidata/issues/82) - Autodoc extension: translation of generic documentation text
916
* Initially, the generic documentation text like "Returns a new instance of" was translated using the `gettext` function.
1017
* This was a mistake, as this text should be translated only after the documentation has been generated, i.e. by the `sphinx-intl` tool.
1118
* In other words, translating those generic texts should be done in the application documentation, not in the library itself.
1219
* To fix this issue, the generic documentation text is no longer translated using `gettext`, but is left as is in the source code.
13-
1420
* [Issue #80](https://github.com/PlotPyStack/guidata/issues/80) - `ValueError` when trying to show/edit an empty array
1521

16-
ℹ️ Changes:
17-
18-
* Replace `flake8` with `ruff` for linting in GitHub Actions workflow
19-
2022
## Version 3.7.1 ##
2123

2224
ℹ️ Changes:

guidata/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
and application development tools for Qt.
99
"""
1010

11-
__version__ = "3.7.2"
11+
__version__ = "3.8.0"
1212

1313

1414
# Dear (Debian, RPM, ...) package makers, please feel free to customize the

guidata/utils/gettext_helpers.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ def do_rescan_files(files, modname, dirname):
6060
potfile, # Nom du fichier pot
6161
"-p",
6262
localedir, # dest
63+
"--no-location",
6364
]
6465
+ files
6566
)
@@ -81,7 +82,7 @@ def do_rescan_files(files, modname, dirname):
8182
outf.write(data)
8283
else:
8384
print("merge...")
84-
subprocess.call(["msgmerge", "-o", pofilepath, pofilepath, potfilepath])
85+
subprocess.call(["msgmerge", "--update", pofilepath, potfilepath])
8586

8687

8788
def do_compile(modname, dirname=None):

0 commit comments

Comments
 (0)