[GRASS-git] [OSGeo/grass] 9c7baf: i18n: Improve some C source strings flagged on Web...
Edouard Choinière
noreply at github.com
Sat Oct 10 06:00:22 PDT 2026
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 9c7baf5c41a8f22e2856d8b7ec3f4e03abf50fe1
https://github.com/OSGeo/grass/commit/9c7baf5c41a8f22e2856d8b7ec3f4e03abf50fe1
Author: Edouard Choinière <27212526+echoix at users.noreply.github.com>
Date: 2026-10-10 (Sat, 10 Oct 2026)
Changed paths:
M db/drivers/dbf/dbfexe.c
M db/drivers/sqlite/db.c
M lib/gis/view.c
M raster/r.horizon/main.c
M raster/r.in.pdal/main.cpp
M raster/r.reclass/main.c
M vector/v.class/main.c
M vector/v.in.ogr/main.c
M vector/v.profile/main.c
M vector/v.rectify/main.c
Log Message:
-----------
i18n: Improve some C source strings flagged on Weblate (#8012)
* r.reclass: Translate complete messages instead of fragments
Join the 'Illegal reclass rule' and 'invalid reclass rule' messages instead of translating their pieces separately.
* r.in.pdal: Fix point count messages not being translated
The msgids were built with a preprocessor macro inside _(), so xgettext
extracted a fragment and the runtime msgid never matched a catalog entry.
Write the format with PRIu64, as done for other 64-bit values in translated
strings, so the msgid is the same whatever the type of the count.
Report the final counts in separate messages, each with a single
placeholder, instead of one message built with snprintf().
* r.horizon: Use complete messages for bufferzone errors
The direction was a separately translated word substituted into the sentence, which cannot agree in gender or case in all languages.
* v.rectify: Report existing output map in separate messages
The error was split over two warnings and a fatal error, so the sentence was
translated in pieces. Use complete sentences with a single placeholder each,
so that no positional placeholders are needed.
* db.dbf: Split SQL parser error into complete messages
The message was joined from separately translated fragments. Use two complete messages with one placeholder each.
* v.class: Translate column headers instead of the format string
The format string '%15s%15s%15s' was translated, which splits a table header over three untranslatable arguments. Translate each column header instead.
* lib/gis: Remove leading space from window overlap warnings
Leading whitespace in a msgid is easy to lose or misplace in translations.
* v.in.ogr, v.profile: Fix typos in messages
Fix 'where' for 'were' and the capitalized 'Your'.
* db.sqlite: Write SQLite consistently in messages
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list