Skip to content

Commit 172de81

Browse files
committed
Simplify internationalization utilities implementation
1 parent 9220a0a commit 172de81

File tree

4 files changed

+25
-23
lines changed

4 files changed

+25
-23
lines changed

.env.template

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1 @@
1-
PYTHONPATH=.
2-
3-
NAME=plotpy
4-
DIRECTORY=.
5-
VERSION=2.7.4
6-
COPYRIGHT=CEA, Codra, Pierre Raybaut
7-
EMAIL=p.raybaut@codra.fr
8-
LOCALE=fr
1+
PYTHONPATH=.

.vscode/tasks.json

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,17 @@
7878
"type": "shell"
7979
},
8080
{
81-
"label": "Preprocess internationalization",
82-
"command": "i18npreprocess",
81+
"label": "🔎 Scan translations",
82+
"command": "${command:python.interpreterPath}",
83+
"args": [
84+
"-m",
85+
"guidata.utils.translations",
86+
"scan",
87+
"--name",
88+
"plotpy",
89+
"--directory",
90+
".",
91+
],
8392
"group": {
8493
"kind": "build",
8594
"isDefault": false
@@ -98,8 +107,17 @@
98107
"type": "shell",
99108
},
100109
{
101-
"label": "Postprocess internationalization",
102-
"command": "i18npostprocess",
110+
"label": "📚 Compile translations",
111+
"command": "${command:python.interpreterPath}",
112+
"args": [
113+
"-m",
114+
"guidata.utils.translations",
115+
"compile",
116+
"--name",
117+
"plotpy",
118+
"--directory",
119+
".",
120+
],
103121
"group": {
104122
"kind": "build",
105123
"isDefault": false

pyproject.toml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,7 @@ plotpy-tests = "plotpy.tests:run"
5656
plotpy-benchmarks = "plotpy.tests.benchmarks:run"
5757

5858
[project.optional-dependencies]
59-
dev = [
60-
"babel == 2.17.0",
61-
"Coverage",
62-
"Cython>=3.0",
63-
"pylint",
64-
"python-dotenv == 1.1.0",
65-
"ruff",
66-
"toml-to-requirements"
67-
]
59+
dev = ["babel", "Coverage", "Cython>=3.0", "pylint", "ruff", "toml-to-requirements"]
6860
doc = [
6961
"PyQt5",
7062
"sphinx",

requirements.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@ Pillow
44
PyQt5
55
PythonQwt>=0.14
66
SciPy>=1.5
7-
babel == 2.17.0
7+
babel
88
guidata>=3.7
99
myst_parser
1010
pylint
1111
pytest
1212
pytest-xvfb
1313
python-docs-theme
14-
python-dotenv == 1.1.0
1514
ruff
1615
scikit-image >= 0.18
1716
sphinx

0 commit comments

Comments
 (0)