Commit Graph

232 Commits

Author SHA1 Message Date
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 4e64c1f1b6c842cbf343f4f1f176f6fa0671bbc7)
2022-08-05 03:32:15 +02:00
Rémi Verschelde
d5f8ecd54e i18n: Sync editor translations with Weblate
(cherry picked from commit 5e66d2e2c4103ba4c7d178409da2a721bcb6d842)
2022-07-27 15:59:43 +02:00
Rémi Verschelde
2bc9b7b76b i18n: Sync editor translations with Weblate
(cherry picked from commit 556e090bcc72e6e51d210f374d8cb9cb72f8fe39)
2022-07-18 10:28:22 +02:00
Rémi Verschelde
550f9faa9c i18n: Sync editor translations with Weblate
(cherry picked from commit 30ceef93b03c235134d6356b708cc2715d9145d2)
2022-07-06 15:04:47 +02:00
Rémi Verschelde
5235ce4379 i18n: Sync editor translations with Weblate
(cherry picked from commit f29241fa1eed5899604e6b8c8fc3b4c84e4f4641)
2022-06-29 12:12:43 +02:00
Rémi Verschelde
22a8c80f67 i18n: Sync editor translations with Weblate
(cherry picked from commit 000499662bdb60e786ab6451c260e62a72ad595d)
2022-06-19 14:00:18 +02:00
Rémi Verschelde
d04e7a7506 i18n: Sync editor translations with Weblate
(cherry picked from commit 135c252a389c4cea2074536aeebef941038a1429)
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 f1eab40cdaefc899a120e674a752347cf9ffdced)
2022-06-08 13:18:34 +02:00
Rémi Verschelde
24e6602832 i18n: Sync editor translations with Weblate
(cherry picked from commit 5be04c9153d832449d2b6affd4155977393bf36e)
2022-06-01 00:42:08 +02:00
Rémi Verschelde
2f0adb1c16 i18n: Sync editor translations with Weblate
(cherry picked from commit bf2c722a25943a3cca5460334cbbddd59120fecd)
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 caeae1f94964587fde62e397e27d01af7fc0567b)
2022-05-17 23:45:31 +02:00
Rémi Verschelde
b2beab3a0a i18n: Sync editor translations with Weblate
(cherry picked from commit 0997c2de84764c4cfbdf582ab405ac73b1cfad30)
2022-05-05 15:55:44 +02:00
Rémi Verschelde
340ffabd20 i18n: Sync editor translations with Weblate
(cherry picked from commit 1e61fb1e37c537179e3d50ad21ff26776a3ebb7e)
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 15dc747de8e895c4ac3212cd564266fb31a5d613)
2022-03-29 01:23:03 +02:00
Rémi Verschelde
c5192d57c6 i18n: Sync editor translations with Weblate
(cherry picked from commit 0db753ef54a305c32bbf9511ec7de5f1ba1c4c3c)
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 0de7cfc60f9ad8c7e5717bbbe484b22344b4bb17)
2022-03-18 11:52:26 +01:00
Rémi Verschelde
38a77fd3ff i18n: Sync editor translations with Weblate
(cherry picked from commit 4228d320bd1410c9b668d9c3cf3bfa4d296a2d0b)
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 93a3d47edcc1b3dabb81df55a8faf6f1cc22d1b3)
2022-03-17 19:53:24 +01:00
Rémi Verschelde
a4fc940bfe i18n: Add property paths to editor translation template
(cherry picked from commit 972c6687ffc3626b76557fc8a40927565db8eb2e)
2022-03-17 19:53:18 +01:00
Rémi Verschelde
4245f996e5 i18n: Sync editor translations with Weblate
(cherry picked from commit 98b8f4043a3e4c0c6d9a1a94bd0de99fbe6ee0b1)
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 751769ed45f835e96eedb7cf1aa47733b342d969)
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 9f09251027a485f14740dce7b753e962d26bff78)
2022-02-16 10:08:40 +01:00
Rémi Verschelde
6167ec42f9 i18n: Sync editor translations with Weblate
(cherry picked from commit da5a11fe45d9e358773a8df2da8df2f87293b088)
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 02d9ac107158c8c5d95f1ecc48078d66e00c1a57)
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 dd002197db63d0c4fd24c4ca005c83c60b3de1e8)
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 0fe94ee6e55e1231df5e80c20e58e7f2d73adde8)
2021-12-21 12:50:05 +01:00
Rémi Verschelde
6214727c80 i18n: Sync editor translations with Weblate
(cherry picked from commit 8a30e04fd181725f46bf25a239dd4bd01c2f4a33)
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 6fb47a271fdb009c03fd328feaeccb22f612a90f)
2021-12-10 11:53:24 +01:00
Rémi Verschelde
e156c4809a i18n: Sync editor translations with Weblate
(cherry picked from commit fd86272ca055cdf01ba48e8e9f043843ef540578)
2021-12-10 11:53:14 +01:00
Rémi Verschelde
36150e432c i18n: Sync editor translations with Weblate
(cherry picked from commit 7ca1be5f379067c16ddf6b57f0974bd38180af0d)
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 74bcf37f90faa8b5ec2bfe2bf2b36934ac875f4b)
2021-11-03 15:06:02 +01:00
Rémi Verschelde
0aa6f27061 i18n: Sync editor translations with Weblate
(cherry picked from commit 4010bb9af051cfd2ad53f8e923c35d347d549319)
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 8425c589911f8ffc006990f4149859e175ae93a9)
2021-10-20 15:10:13 +02:00
Rémi Verschelde
64c9d44c06 i18n: Sync editor translations with Weblate
(cherry picked from commit 2a7e1d0aac1020f12228d62a4be76ec6bc4a919a)
2021-10-18 12:02:05 +02:00
Rémi Verschelde
b1853d8672 i18n: Sync translations with Weblate
(cherry picked from commit 323c3ee9db5414dbd79748a98e21446dddecb057)
2021-09-21 17:28:21 +02:00
Aaron Franke
3a902c66c4 Revert some URLs from the "Replace HTTP URLs with HTTPS" PR 2021-09-13 15:18:35 -05:00
Aaron Franke
ae1702bee5 Replace HTTP links with HTTPS for sites with HTTPS versions 2021-08-22 20:13:11 -05:00