mate-desktop / pluma

A powerful text editor for MATE
http://www.mate-desktop.org
GNU General Public License v2.0
157 stars 65 forks source link

Broken `he` language breaks building on master #561

Closed raveit65 closed 4 years ago

raveit65 commented 4 years ago

Pulling he translations breaks building

rm -f he.gmo && /usr/bin/msgmerge --for-msgfmt -o he.1po he.po pluma.pot && /usr/bin/msgfmt -c --statistics --verbose -o he.gmo he.1po && rm -f he.1po
he.1po:800: format specifications in 'msgid_plural' and 'msgstr[1]' for argument 1 are not the same
he.1po:810: format specifications in 'msgid_plural' and 'msgstr[2]' for argument 1 are not the same
/usr/bin/msgfmt: found 5 fatal errors
he.1po: 1229 translated messages.
make[3]: *** [Makefile:307: he.gmo] Error 1
make[3]: Leaving directory '/media/Data/Programme/Linux/Mate-Desktop/git-version/github-matedesktop/pluma-dist/po'
make[2]: *** [Makefile:348: stamp-po] Error 2
make[2]: Leaving directory '/media/Data/Programme/Linux/Mate-Desktop/git-version/github-matedesktop/pluma-dist/po'
make[1]: *** [Makefile:519: all-recursive] Error 1
make[1]: Leaving directory '/media/Data/Programme/Linux/Mate-Desktop/git-version/github-matedesktop/pluma-dist'
make: *** [Makefile:451: all] Error 2

From he.1po

#, c-format
msgid ""
"Changes made to the document in the last hour and %d minute will be "
"permanently lost."
msgid_plural ""
"Changes made to the document in the last hour and %d minutes will be "
"permanently lost."
msgstr[0] "שינויים שנערכו במסמך בשעה והדקה האחרונות יאבדו לחלוטין."
msgstr[1] "שינויים שנערכו במסמך בשעה ו־%ld הדקות האחרונות יאבדו לחלוטין."
msgstr[2] "שינויים שנערכו במסמך בשעה ו־%ld הדקות האחרונות יאבדו לחלוטין."
msgstr[3] "שינויים שנערכו במסמך בשעה ו־%ld הדקות האחרונות יאבדו לחלוטין."

#, c-format
msgid ""
"Changes made to the document in the last %d hour will be permanently lost."
msgid_plural ""
"Changes made to the document in the last %d hours will be permanently lost."
msgstr[0] "שינויים שנערכו במסמך בשעה האחרונה יאבדו לחלוטין."
msgstr[1] "שינויים שנערכו במסמך בשעתיים האחרונות יאבדו לחלוטין."
msgstr[2] "שינויים שנערכו במסמך ב־%ld השעות האחרונות יאבדו לחלוטין."
msgstr[3] "שינויים שנערכו במסמך ב־%ld השעות האחרונות יאבדו לחלוטין."
raveit65 commented 4 years ago

Ok, i disabled this language to fix releasing 1.25.0 https://github.com/mate-desktop/pluma/commit/e364cdb820c8d8d49184d6020a7df87a19520b09 @mate-desktop/core-team Any ideas?

sc0w commented 4 years ago

my suggestion and workflow to fix always this unrelated work for us, is just to remove all the wrong translated text, and it will be translated again in the future by someone which knows the language

I mean (at transifex, of course):


diff --git a/po/he.po b/po/he.po
index a68d394..651955d 100644
--- a/po/he.po
+++ b/po/he.po
@@ -1287,7 +1287,7 @@ msgid ""
 msgid_plural ""
 "Changes made to the document in the last hour and %d minutes will be "
 "permanently lost."
-msgstr[0] "שינויים שנערכו במסמך בשעה והדקה האחרונות יאבדו לחלוטין."
+msgstr[0] ""
 msgstr[1] "שינויים שנערכו במסמך בשעה ו־%ld הדקות האחרונות יאבדו לחלוטין."
 msgstr[2] "שינויים שנערכו במסמך בשעה ו־%ld הדקות האחרונות יאבדו לחלוטין."
 msgstr[3] "שינויים שנערכו במסמך בשעה ו־%ld הדקות האחרונות יאבדו לחלוטין."
@@ -1298,7 +1298,7 @@ msgid ""
 "Changes made to the document in the last %d hour will be permanently lost."
 msgid_plural ""
 "Changes made to the document in the last %d hours will be permanently lost."
-msgstr[0] "שינויים שנערכו במסמך בשעה האחרונה יאבדו לחלוטין."
+msgstr[0] ""
 msgstr[1] "שינויים שנערכו במסמך בשעתיים האחרונות יאבדו לחלוטין."
 msgstr[2] "שינויים שנערכו במסמך ב־%ld השעות האחרונות יאבדו לחלוטין."
 msgstr[3] "שינויים שנערכו במסמך ב־%ld השעות האחרונות יאבדו לחלוטין."