Re: i18n po files : Hooks for number of arguments on SVN
- Date: Mon, 24 Dec 2018 00:33:10 +0100
- From: Albert Astals Cid <aacid@xxxxxxx>
- Subject: Re: i18n po files : Hooks for number of arguments on SVN
El dimecres, 19 de desembre de 2018, a les 10:11:10 CET, Simon Depiets va escriure:
> I'm facing an issue with translation of kdeconnect_android, their
> res/values/strings.xml ressources file contains :
> <plurals name="incoming_files_text">
> <item quantity="one">File: %1s</item>
> <item quantity="other">(File %2$d of %3$d) : %1$s</item>
> Understandably (in KDE/QT context), the SVN commit pre-hook rejects this
> plural form message because the singular contains 1 argument and the plural
> form 3 arguments. However for an Android app this seems like a valid
> How does the SVN pre-commit hook work and how customizable is it ?
It's not customizable because the .po[t] file is wrong, it's marked as c-format and it's not.
> Is there a way to add/detect a tag in the context which would then disable
> this specific check ?
> Else I guess the kdeconnect team has to find a way to add %2 and %3 as
> dummy argument in the singular string or the translation teams cannot
> commit singular forms.