Haoyu Qiu
c0e9d928e6
Improve editor property capitalization
...
* Captialize stop words when they are the last word.
* Add stop words logic in `extract.py`.
2022-11-25 18:54:37 +08:00
Jiri Suchan
c5bd2f9dce
ci: add Python static analysis check via mypy
2022-09-30 19:03:17 +07:00
Rémi Verschelde
fdb2456ccb
i18n: Sync editor translations with Weblate (3.5 branch)
...
(cherry picked from commit 7ee90a080f
)
2022-09-27 23:51:05 +02:00
Rémi Verschelde
ae0c1b2b5c
i18n: Sync editor translations with Weblate (3.5 branch)
...
(cherry picked from commit 367ffd10c8
)
2022-09-09 14:52:16 +02:00
Danil Alexeev
d4555ef5fb
Add String.to_{camel,pascal,snake}_case
methods
2022-08-30 12:36:24 +03:00
Rémi Verschelde
97db538352
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 4e64c1f1b6
)
2022-08-05 03:32:15 +02:00
Rémi Verschelde
d5f8ecd54e
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 5e66d2e2c4
)
2022-07-27 15:59:43 +02:00
Rémi Verschelde
2bc9b7b76b
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 556e090bcc
)
2022-07-18 10:28:22 +02:00
Rémi Verschelde
550f9faa9c
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 30ceef93b0
)
2022-07-06 15:04:47 +02:00
Rémi Verschelde
5235ce4379
i18n: Sync editor translations with Weblate
...
(cherry picked from commit f29241fa1e
)
2022-06-29 12:12:43 +02:00
Rémi Verschelde
22a8c80f67
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 000499662b
)
2022-06-19 14:00:18 +02:00
Rémi Verschelde
d04e7a7506
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 135c252a38
)
2022-06-16 21:07:30 +02:00
Rémi Verschelde
72dea3b821
i18n: Sync editor translations with Weblate
...
Remove some translation templates which were empty or almost empty
(less than 10 strings translated, years without further activity).
(cherry picked from commit f1eab40cda
)
2022-06-08 13:18:34 +02:00
Rémi Verschelde
24e6602832
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 5be04c9153
)
2022-06-01 00:42:08 +02:00
Rémi Verschelde
2f0adb1c16
i18n: Sync editor translations with Weblate
...
(cherry picked from commit bf2c722a25
)
2022-05-24 00:09:46 +02:00
Haoyu Qiu
fc3b845c07
Add dedicated macros for property name extraction
...
* Replace case-by-case extraction with PNAME & GNAME
* Fix group handling when group hint begins with property name
* Exclude properties that are PROPERTY_USAGE_NO_EDITOR
* Extract missing ADD_ARRAY*, ADD_SUBGROUP* macros
2022-05-19 14:08:47 +08:00
Rémi Verschelde
80acc7a2c2
i18n: Sync editor translations with Weblate
...
(cherry picked from commit caeae1f949
)
2022-05-17 23:45:31 +02:00
Rémi Verschelde
b2beab3a0a
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 0997c2de84
)
2022-05-05 15:55:44 +02:00
Rémi Verschelde
340ffabd20
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 1e61fb1e37
)
2022-04-25 17:19:34 +02:00
Haoyu Qiu
2f20ff0ed6
Extract theme property names for localization
2022-04-01 11:35:22 +08:00
Haoyu Qiu
39245c8216
Strip feature tag manually when extracting property paths
2022-03-30 20:29:43 +08:00
Haoyu Qiu
0a9f97f423
Add more patterns for property path extraction
2022-03-30 18:21:46 +08:00
Rémi Verschelde
29a946ee91
Merge pull request #59374 from timothyqiu/extract-refactor-master
...
Refactor editor `extract.py`
2022-03-29 08:44:37 +02:00
Rémi Verschelde
a7a3ff6940
i18n: Sync editor translation template after #59349
...
(cherry picked from commit 15dc747de8
)
2022-03-29 01:23:03 +02:00
Rémi Verschelde
c5192d57c6
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 0db753ef54
)
2022-03-29 01:22:58 +02:00
Haoyu Qiu
d91c35a325
Refactor editor extract.py
2022-03-21 15:56:00 +08:00
Haoyu Qiu
46f5cd65a1
More editor extract.py
improvements and fixes
2022-03-20 20:21:00 +08:00
Rémi Verschelde
309cd91ea7
i18n: Sync editor translation template after #59265
...
(cherry picked from commit 0de7cfc60f
)
2022-03-18 11:52:26 +01:00
Rémi Verschelde
38a77fd3ff
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 4228d320bd
)
2022-03-18 11:52:22 +01:00
Haoyu Qiu
4d73899352
Improves editor property name extraction
2022-03-18 17:56:45 +08:00
Rémi Verschelde
e10e7c8ea4
i18n: Sync editor translation POs with template
...
(cherry picked from commit 93a3d47edc
)
2022-03-17 19:53:24 +01:00
Rémi Verschelde
a4fc940bfe
i18n: Add property paths to editor translation template
...
(cherry picked from commit 972c6687ff
)
2022-03-17 19:53:18 +01:00
Rémi Verschelde
4245f996e5
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 98b8f4043a
)
2022-03-17 19:53:13 +01:00
Haoyu Qiu
e64cd21f6f
Remap property path based on path substrings
...
Also added captialization caching.
2022-03-18 00:31:13 +08:00
Rémi Verschelde
7e4a8d3ab3
Merge pull request #58706 from timothyqiu/property-i18n
2022-03-10 21:09:50 +01:00
Rémi Verschelde
e78f9da476
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 751769ed45
)
2022-03-09 10:44:18 +01:00
Haoyu Qiu
d6df2ffad8
i18n: Make property paths and categories translatable
2022-03-03 18:31:40 +08:00
Rémi Verschelde
c4c29728a3
i18n: Sync editor translations with Weblate
...
Minor proofreading of new OSX export strings.
(cherry picked from commit 9f09251027
)
2022-02-16 10:08:40 +01:00
Rémi Verschelde
6167ec42f9
i18n: Sync editor translations with Weblate
...
(cherry picked from commit da5a11fe45
)
2022-01-12 18:45:36 +01:00
Rémi Verschelde
4dbef3a4f5
i18n: Sync template with current 3.x codebase
...
Weblate will now track the state of `3.x` to prepare for the 3.5 release.
(cherry picked from commit 02d9ac1071
)
2022-01-07 13:35:28 +01:00
Rémi Verschelde
3ccedb4cdf
i18n: Sync editor translations with Weblate (last 3.4 sync)
...
Next sync will be with the `3.x` branch to prepare the 3.5 translations.
(cherry picked from commit dd002197db
)
2022-01-07 13:34:52 +01:00
Rémi Verschelde
fe52458154
Update copyright statements to 2022
...
Happy new year to the wonderful Godot community!
2022-01-03 21:27:34 +01:00
Rémi Verschelde
3c1d3912b6
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 0fe94ee6e5
)
2021-12-21 12:50:05 +01:00
Rémi Verschelde
6214727c80
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 8a30e04fd1
)
2021-12-16 15:16:02 +01:00
Rémi Verschelde
04cc06b28e
i18n: Remove deleted translations from PO files
...
Since we bundle the whole files in the editor binary, they actual impact the
binary size needlessly.
Automate it via `make merge`.
(cherry picked from commit 6fb47a271f
)
2021-12-10 11:53:24 +01:00
Rémi Verschelde
e156c4809a
i18n: Sync editor translations with Weblate
...
(cherry picked from commit fd86272ca0
)
2021-12-10 11:53:14 +01:00
Rémi Verschelde
36150e432c
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 7ca1be5f37
)
2021-11-19 09:55:09 +01:00
Rémi Verschelde
3447e0dd19
i18n: Sync editor translations with Weblate
...
Latvian (lv) is now above the threshold for inclusion.
(cherry picked from commit 74bcf37f90
)
2021-11-03 15:06:02 +01:00
Rémi Verschelde
0aa6f27061
i18n: Sync editor translations with Weblate
...
(cherry picked from commit 4010bb9af0
)
2021-10-23 12:38:15 +02:00
Rémi Verschelde
01aec21d25
i18n: Only include editor translations above a threshold
...
This reduces the size of the editor binaries significantly, as we otherwise
embed all WIP translations, including ones with very low completion ratios,
and end up paying for the size of all `msgid`s for each locale.
Cf. https://github.com/godotengine/godot-proposals/issues/3421 for details.
The thresholds used are:
- 30% for the editor interface (should already include most common strings
while more obscure ones like UndoRedo action names might be untranslated).
- 10% for the class reference: this is a HUGE resource and 10% is already
a lot of useful content, especially if focused on the most used APIs.
This currently reduces the size of the editor binary by 17% on Linux.
The list will be synced manually every now and then.
(cherry picked from commit 8425c58991
)
2021-10-20 15:10:13 +02:00