Commit Graph

262 Commits

Author SHA1 Message Date
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
Rémi Verschelde 64c9d44c06
i18n: Sync editor translations with Weblate
(cherry picked from commit 2a7e1d0aac)
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
Rémi Verschelde d10bfe8e24
i18n: Sync translations with Weblate
And sync template with current 3.x codebase.

(cherry picked from commit f3441fcff0)
2021-08-12 17:10:01 +02:00
Rémi Verschelde 74f5513d21
i18n: Sync template with current 3.x codebase
Weblate will now track the state of `3.x` to prepare for the 3.4 release.

(cherry picked from commit 92bafdcafb)
2021-08-03 11:07:47 +02:00
Rémi Verschelde f618e7cf06
i18n: Sync translations with Weblate
Last POT sync with the `3.3` branch, we'll now switch Weblate to track
`3.x` to prepare for the 3.4 release.

(cherry picked from commit dec840452d)
2021-08-03 11:07:40 +02:00
Rémi Verschelde bf4dba5ff4
i18n: Sync translations with Weblate
(cherry picked from commit c406c8512f)
2021-07-26 16:23:31 +02:00
luz paz 3564c16cb8
Fix various typos with codespell
Found via `codespell -q 3 -S ./thirdparty,*.po,./DONORS.md -L ackward,ang,ans,ba,beng,cas,childs,childrens,dof,doubleclick,fave,findn,hist,inout,leapyear,lod,nd,numer,ois,ony,paket,seeked,sinc,switchs,te,uint`
2021-07-25 11:21:51 +02:00
Rémi Verschelde f17341d61b
i18n: Sync translations with Weblate
(cherry picked from commit 1c840a31a5)
2021-07-13 13:15:34 +02:00
Rémi Verschelde c3f0b9f972
i18n: Sync translations with Weblate
(cherry picked from commit 30bb133e01)
2021-06-29 14:57:47 +02:00
Rémi Verschelde 37a0f4cefb
i18n: Sync translations with Weblate
(cherry picked from commit a812779cc5)
2021-06-16 13:48:32 +02:00
Rémi Verschelde ac47e1d3e5
i18n: Sync translations with Weblate
(cherry picked from commit 0446cf487f)
2021-06-02 11:10:28 +02:00
Rémi Verschelde 2076580080
i18n: Sync translations with Weblate
(cherry picked from commit bcedd09742)
2021-05-18 12:09:50 +02:00
Rémi Verschelde 82c4d43726
i18n: Sync translations with Weblate
(cherry picked from commit f6c29d1cf5)
2021-05-14 13:24:16 +02:00
Rémi Verschelde e271dba9cb
i18n: Sync translations with Weblate
(cherry picked from commit 305c364c13)
2021-04-21 09:52:26 +02:00
Rémi Verschelde 4296b135b7
i18n: Sync translations with Weblate
(cherry picked from commit 5cfdb86660)
2021-04-05 16:30:22 +02:00
Rémi Verschelde db31445b90
i18n: Sync translations with Weblate
(cherry picked from commit cca2637b9b)
2021-03-30 00:04:54 +02:00
Rémi Verschelde d1d09bf8bc
i18n: Sync translations with Weblate
(cherry picked from commit 94a0fc47f7)
2021-03-16 11:42:02 +01:00
Rémi Verschelde b6e97c10ad i18n: Sync translations with Weblate
(cherry picked from commit f1f472439e)
2021-03-08 17:51:58 +01:00
Rémi Verschelde 29f0ab0303 i18n: Sync translations with Weblate
(cherry picked from commit d0bc914491)
2021-02-22 11:06:33 +01:00
Rémi Verschelde cb64f2d96b
i18n: Sync translations with Weblate
(cherry picked from commit 7d921c1d53)
2021-02-16 14:54:45 +01:00
Rémi Verschelde 3de411cb83 i18n: Sync translations with Weblate
(cherry picked from commit 84e356d720)
2021-02-05 10:45:34 +01:00
Rémi Verschelde 1f5d6eb13a
i18n: Sync translations with Weblate
(cherry picked from commit 3f3130648a)
2021-01-26 22:12:27 +01:00
Rémi Verschelde e8aab62d40
i18n: Sync translations with Weblate
(cherry picked from commit 7e207cfd48)
2021-01-15 16:56:47 +01:00
Rémi Verschelde b5334d14f7
Update copyright statements to 2021
Happy new year to the wonderful Godot community!

2020 has been a tough year for most of us personally, but a good year for
Godot development nonetheless with a huge amount of work done towards Godot
4.0 and great improvements backported to the long-lived 3.2 branch.

We've had close to 400 contributors to engine code this year, authoring near
7,000 commit! (And that's only for the `master` branch and for the engine code,
there's a lot more when counting docs, demos and other first-party repos.)

Here's to a great year 2021 for all Godot users 🎆
2021-01-01 20:19:21 +01:00
Rémi Verschelde f62f64193a
i18n: Sync translations with Weblate
(cherry picked from commit caa7c6a930)
2020-12-29 17:16:46 +01:00
Rémi Verschelde d26cbc41a6
i18n: Sync translations with Weblate
(cherry picked from commit 3e20a98503)
2020-12-10 14:50:29 +01:00
Rémi Verschelde 841fbafc78
i18n: Sync translations with Weblate
(cherry picked from commit 97e7d637e0)
2020-11-26 10:40:55 +01:00
Rémi Verschelde 31865fcf3f
i18n: Sync translations with Weblate
(cherry picked from commit e95af7ae9b)
2020-11-17 13:21:03 +01:00
Rémi Verschelde 1ee507d62c
i18n: Sync translations with Weblate
(cherry picked from commit 284dae021a)
2020-10-28 15:55:15 +01:00
Rémi Verschelde 1e2f55e273
i18n: Rename pt_PT to pt
We originally used `pt_PT` (i.e. Portuguese (Portugal)) to distinguish with
the Brazilian Portuguese variant `pt_BR`, as both are significantly different
and need separate translation files.

But Portugal's Portuguese (or "European Portuguese") is close to the variant
spoken and written in other Portuguese-speaking countries such as Angola and
Mozambique, so it makes sense for users of these countries to also have access
to the European Portuguese translation (at least until translators decide that
adding e.g. `pt_AO` and `pt_MZ` variants would make sense, taking into account
the translation effort that this duplication implies).

Godot's locale matching checks first for the full locale (e.g. `pt_AO`), and
if no translation is found, it checks for the non-regional language code
(`pt`), so this change enables translations for Portuguese speakers outside
Portugal and Brazil.
2020-09-24 16:50:44 +02:00
Rémi Verschelde 93303737ac
i18n: Sync translations with Weblate
(cherry picked from commit 510d87e468)
2020-09-24 15:35:55 +02:00
Marcel Admiraal a1a2531459 Remove duplicate or unnecessary Python definitions. 2020-09-10 08:38:07 +01:00
Rémi Verschelde 9568bcf166
i18n: Sync translations with Weblate
Add translators comment for the two 'Project Manager' strings,
and fix some of the translations.

(cherry picked from commit c5f6d2097b)
2020-09-08 15:18:17 +02:00
Rémi Verschelde 5bf28c735d
Merge pull request #41510 from SkyLucilfer/TranslatorComment
Add translators comments extraction for Editor
2020-09-07 14:41:49 +02:00
Rémi Verschelde 5c0fabd314 i18n: Sync translations with Weblate
(cherry picked from commit 41b9e1d7ea)
2020-09-04 08:56:38 +02:00
SkyJJ c1016dc3bf Add translators comments extraction for Editor 2020-08-25 20:59:29 +02:00
SkyJJ ce3461dc88 Update GDScriptTranslationParserPlugin to use GDSriptParser instead of RegEx. 2020-08-19 03:10:51 +02:00
SkyJJ 0ef758eaee Updated Translation architecture to have TranslationPO, did some commit fixes and updated class Reference. 2020-08-19 03:01:53 +02:00
SkyJJ 396f2eee82 Update POT generation to handle context and plurals 2020-08-19 03:01:52 +02:00
Rémi Verschelde 17dd5e29d0 i18n: Sync translations with Weblate
(cherry picked from commit 900949b316)
2020-08-11 16:07:42 +02:00
Rémi Verschelde 12feb9d633 i18n: Sync translations with Weblate
(cherry picked from commit ed20772c09)
2020-07-28 13:08:52 +02:00
Rémi Verschelde e8706848e6 i18n: Sync translations with Weblate
(cherry picked from commit a84f081160)
2020-06-25 11:00:38 +02:00
Rémi Verschelde 492625db28 i18n: Sync translations with Weblate
(cherry picked from commit 000db65d40)
2020-06-22 08:44:07 +02:00
Rémi Verschelde 77990b87c2 i18n: Sync translations with Weblate
Remove 'de_CH' translation (4% complete) to default to the 100%
complete 'de' one.

Fixes #32625.

(cherry picked from commit 35a5ebb44d)
2020-06-15 14:35:07 +02:00
Rémi Verschelde bcac39551d i18n: Sync translations with Weblate
(cherry picked from commit d68e631566)
2020-06-11 10:01:23 +02:00
Rémi Verschelde 0caf55a481 i18n: Sync translations with Weblate
(cherry picked from commit 00b5663782)
2020-05-05 16:05:56 +02:00
Rémi Verschelde 3fff0dda39 i18n: Sync translations with Weblate
(cherry picked from commit ae958b89ab)
2020-04-27 10:38:22 +02:00
Rémi Verschelde 3c3795279f i18n: Sync translations with Weblate
(cherry picked from commit 471a5abbf3)
2020-04-17 13:41:23 +02:00
Rémi Verschelde cd4e46ee65 SCons: Format buildsystem files with psf/black
Configured for a max line length of 120 characters.

psf/black is very opinionated and purposely doesn't leave much room for
configuration. The output is mostly OK so that should be fine for us,
but some things worth noting:

- Manually wrapped strings will be reflowed, so by using a line length
  of 120 for the sake of preserving readability for our long command
  calls, it also means that some manually wrapped strings are back on
  the same line and should be manually merged again.

- Code generators using string concatenation extensively look awful,
  since black puts each operand on a single line. We need to refactor
  these generators to use more pythonic string formatting, for which
  many options are available (`%`, `format` or f-strings).

- CI checks and a pre-commit hook will be added to ensure that future
  buildsystem changes are well-formatted.
2020-03-30 09:05:53 +02:00
Rémi Verschelde aca1971a12 i18n: Add header strings to translation catalog 2020-03-20 12:35:22 +01:00
Rémi Verschelde 2aa832f415 i18n: Sync translations with Weblate
(cherry picked from commit 0e36b11f9d)
2020-03-16 10:49:03 +01:00
Rémi Verschelde e629b4bc8a i18n: Sync translations with Weblate
(cherry picked from commit 18e021b7cd)
2020-03-09 10:13:45 +01:00
Rémi Verschelde c40bd6b775 i18n: Sync translations with Weblate
(cherry picked from commit 1c9132540f)
2020-02-19 10:16:45 +01:00
Rémi Verschelde ca87791688 i18n: Sync translation template with current source
(cherry picked from commit 3dfedc0b4c)
2020-02-14 20:20:50 +01:00
Rémi Verschelde 991ad66d28 i18n: Sync translations with Weblate
(cherry picked from commit 74738806f3)
2020-02-14 20:20:43 +01:00
Rémi Verschelde f76009bbcf i18n: Sync translations with Weblate 2020-01-27 08:11:37 +01:00
Rémi Verschelde 8a7a216be5 i18n: Sync translations with Weblate 2020-01-23 23:19:54 +01:00
Rémi Verschelde 7f7ae0712f i18n: Sync translations with Weblate 2020-01-19 23:19:29 +01:00
Rémi Verschelde 045a5ce14a i18n: Sync translation template with current source 2020-01-16 23:47:18 +01:00
Rémi Verschelde a0f716763b i18n: Sync translations with Weblate 2020-01-16 23:37:56 +01:00
Rémi Verschelde 269eb5f06c i18n: Sync translation template with current source
Prevent parsing 'thirdparty' sources, there are invalid UTF-8 files
among Bullet sources.
2020-01-12 14:42:34 +01:00
Rémi Verschelde 48d7f7a70f i18n: Sync translations with Weblate 2020-01-12 14:36:21 +01:00
Rémi Verschelde a7f49ac9a1 Update copyright statements to 2020
Happy new year to the wonderful Godot community!

We're starting a new decade with a well-established, non-profit, free
and open source game engine, and tons of further improvements in the
pipeline from hundreds of contributors.

Godot will keep getting better, and we're looking forward to all the
games that the community will keep developing and releasing with it.
2020-01-01 11:16:22 +01:00
Rémi Verschelde d53a297a6d i18n: Sync translation template with current source 2019-12-30 18:28:57 +01:00
Rémi Verschelde c2a28aa28d i18n: Sync translations with Weblate 2019-12-30 18:27:52 +01:00
Rémi Verschelde 8938577459 i18n: Sync translations with Weblate + update template
Also fix a few stray clang-format formatting errors that passed
through CI unnoticed.
2019-12-22 13:27:02 +01:00
Rémi Verschelde 2019d8001d i18n: Sync translations with Weblate 2019-12-21 12:28:47 +01:00
Rémi Verschelde 45908eebf3 i18n: Sync translation template with current source 2019-12-17 11:47:29 +01:00
Rémi Verschelde 5a74cc12d0 i18n: Sync translations with Weblate 2019-12-17 11:44:35 +01:00
Rémi Verschelde 787113d96e i18n: Sync translation template with current source 2019-12-13 10:41:06 +01:00
Rémi Verschelde 115a45c2c5 i18n: Sync translations with Weblate 2019-12-13 10:41:06 +01:00
Rémi Verschelde 10481046e5 i18n: Sync translations with Weblate 2019-12-04 09:08:11 +01:00