[gimp] Coding Style: add necessity to keep POTFILES.in updated.



commit 8e5edac3901a34e14b73c8b3403daff1841ecb12
Author: Jehan <jehan girinstud io>
Date:   Tue Nov 30 17:42:17 2021 +0100

    Coding Style: add necessity to keep POTFILES.in updated.

 CODING_STYLE.md | 10 ++++++++++
 1 file changed, 10 insertions(+)
---
diff --git a/CODING_STYLE.md b/CODING_STYLE.md
index f67de23f1e..ec265be00f 100644
--- a/CODING_STYLE.md
+++ b/CODING_STYLE.md
@@ -851,6 +851,16 @@ to list all these cases (therefore GIMP would have a crappy Polish
 localization), so we have to use `ngettext()` even if it feels useless
 in English.
 
+Finally when you add translated strings in a file which had none until
+now, for it to be processed by `gettext`, you need to add its path in
+alphabetical order in `po/POTFILES.in` for core files (or other
+`POTFILES.in`, for instance `po-plug-ins/POTFILES.in` for plug-ins). We
+have a test checking this, so the `make distcheck` step will fail anyway
+when you forgot to add a new file with translation. Yet as developers
+don't always run this step locally, the bug may be discovered during CI
+builds. It is obviously prefered to not forget it hence not push code
+which breaks the CI (and localization).
+
 ## Helping tools
 ### Git
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]