Skip to content

Commit e5119b5

Browse files
committed
Use guidata's updated i18n functions
1 parent 671ef5a commit e5119b5

File tree

12 files changed

+464
-3092
lines changed

12 files changed

+464
-3092
lines changed

.env.template

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,8 @@
1-
PYTHONPATH=.
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

.vscode/tasks.json

Lines changed: 22 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -78,67 +78,53 @@
7878
"type": "shell"
7979
},
8080
{
81-
"label": "gettext - Scan",
82-
"type": "shell",
83-
"command": "cmd",
81+
"label": "Preprocess internationalization",
82+
"command": "${command:python.interpreterPath}",
8483
"args": [
85-
"/c",
86-
"gettext.bat",
87-
"rescan",
84+
"scripts/internationalization_preprocess.py"
8885
],
89-
"options": {
90-
"cwd": "scripts",
91-
"env": {
92-
"UNATTENDED": "1",
93-
"PYTHONUTF8": "1",
94-
"PYTHON": "${command:python.interpreterPath}",
95-
}
96-
},
9786
"group": {
9887
"kind": "build",
99-
"isDefault": true
88+
"isDefault": false
89+
},
90+
"options": {
91+
"cwd": "${workspaceFolder}"
10092
},
10193
"presentation": {
10294
"echo": true,
103-
"reveal": "always",
10495
"focus": false,
10596
"panel": "shared",
97+
"reveal": "always",
10698
"showReuseMessage": true,
10799
"clear": false
108-
}
100+
},
101+
"type": "shell",
109102
},
110103
{
111-
"label": "gettext - Compile",
112-
"type": "shell",
113-
"command": "cmd",
104+
"label": "Postprocess internationalization",
105+
"command": "${command:python.interpreterPath}",
114106
"args": [
115-
"/c",
116-
"gettext.bat",
117-
"compile",
107+
"scripts/internationalization_postprocess.py"
118108
],
119-
"options": {
120-
"cwd": "scripts",
121-
"env": {
122-
"UNATTENDED": "1",
123-
"PYTHON": "${command:python.interpreterPath}",
124-
}
125-
},
126109
"group": {
127110
"kind": "build",
128-
"isDefault": true
111+
"isDefault": false
112+
},
113+
"options": {
114+
"cwd": "${workspaceFolder}"
129115
},
130116
"presentation": {
131117
"echo": true,
132-
"reveal": "always",
133118
"focus": false,
134119
"panel": "shared",
120+
"reveal": "always",
135121
"showReuseMessage": true,
136122
"clear": false
137-
}
123+
},
124+
"type": "shell"
138125
},
139126
{
140127
"label": "Run pytest",
141-
"type": "shell",
142128
"command": "cmd",
143129
"args": [
144130
"/c",
@@ -158,11 +144,9 @@
158144
"presentation": {
159145
"echo": true,
160146
"reveal": "always",
161-
"focus": false,
162-
"panel": "dedicated",
163147
"showReuseMessage": true,
164-
"clear": true
165-
}
148+
},
149+
"type": "shell"
166150
},
167151
{
168152
"label": "Update requirements.txt",

babel.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# This file is used to configure Babel for the project.
2+
3+
[python: **.py]
4+
encoding = utf-8

doc/requirements.rst

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,20 +41,26 @@ Optional modules for development:
4141
* - Name
4242
- Version
4343
- Summary
44-
* - ruff
45-
-
46-
- An extremely fast Python linter and code formatter, written in Rust.
47-
* - pylint
48-
-
49-
- python code static checker
44+
* - babel
45+
- == 2.17.0
46+
- Internationalization utilities
5047
* - Coverage
5148
-
5249
- Code coverage measurement for Python
5350
* - Cython
5451
- >=3.0
5552
- The Cython compiler for writing C extensions in the Python language.
53+
* - pylint
54+
-
55+
- python code static checker
56+
* - python-dotenv
57+
- == 1.1.0
58+
- Read key-value pairs from a .env file and set them as environment variables
59+
* - ruff
60+
-
61+
- An extremely fast Python linter and code formatter, written in Rust.
5662
* - toml-to-requirements
57-
- ==0.3.0
63+
-
5864
- Convert a pyproject.toml file to a requirements.txt file
5965

6066
Optional modules for building the documentation:
-33.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)