Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n: Only include editor translations above a threshold #54024

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

akien-mga
Copy link
Member

Forward-port of #54020, see that PR for details and discussion.

(cherry picked from commit 8425c58)

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. godotengine/godot-proposals#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 8425c58)
@akien-mga akien-mga added this to the 4.0 milestone Oct 20, 2021
@akien-mga akien-mga requested review from a team as code owners October 20, 2021 13:12
@akien-mga akien-mga merged commit efa3ff6 into godotengine:master Oct 20, 2021
@akien-mga akien-mga deleted the editor-i18n-thresholds branch October 20, 2021 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant