Repository navigation
Conversation
echoix
force-pushed
the
i18n-fold-similar-strings
branch
from
October 12, 2026 13:22
5418e1c to
757e459
Compare
Many messages were translated separately only because they differed in the quoting of the placeholder, in capitalization, in a trailing period, in the spacing of an ellipsis or in the wording, for example "Unable to open file '%s' for writing." and "Unable to open file <%s> for writing", or "Out of memory!" and "Out of memory". Use one variant for each across the libraries, tools and the GUI, following the formatting rules of the style guide: names of maps, groups, tables and the like in <>, file paths and SQL in single quotes, a capital first letter, no contractions, a period on errors and on messages with complete sentences, none on short phrases and labels, and an ellipsis for ongoing actions. The runtime warnings about deprecated flags are now one string with the flag and the output format passed as arguments, using "Use" instead of "Please use" as in the flag descriptions. The candidate strings were found with a script comparing the message catalogs and rewritten semi-automatically; Claude was used for this.
echoix
force-pushed
the
i18n-fold-similar-strings
branch
from
October 12, 2026 14:10
757e459 to
b9aa579
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Many messages were translated separately only because they differ in the quoting of the placeholder, capitalization, trailing period, ellipsis spacing, or wording. This PR uses one variant for each across libraries, tools and the GUI, following the "Formatting messages" rules of
doc/development/style_guide.md(the guide itself is unchanged):<%s>; file paths and SQL in'%s'Reading <%s>...)The runtime deprecated-flag warnings are now one string (
Flag '%c' is deprecated and will be removed in a future release. Use format=%s instead.) with the flag and format passed as arguments.Result: unique source strings go from 14498 to 14339 (about 160 fewer). Because the guide asks for a period on errors, the kept variant is often not the most used one, so 70 strings in the result are not in the current catalogs (69 have no translation in any language).
Only strings that had near-duplicate variants were changed. Other messages still differing from the guide (for example file names in
<%s>, or errors without a period) are not touched. Also not included:%lu/%lluvariants in the lidar/PDAL tools (duplicatedHAVE_LONG_LONG_INTfallback blocks), strings differing in placeholder type, and plural (n_()) strings.Candidates were found by comparing the message catalogs with a script and rewritten semi-automatically with Claude.
Motivation and context
Reduce the number of strings to translate and keep wording consistent between domains.
How has this been tested?
Regenerated the catalogs with
xgettextbefore and after and compared them. Ranruffandclang-formaton the changed files.Types of changes
functionality to not work as before)
Checklist
pre-defined prefixes
of this project.