d/patches: Fix plurals patch breaking non-English locales
Closes: #976135.
Tests:
-
Install tt-rss with latest php-gettext. Set UI locale to anything other than English. Visit the index page and observe that loading fails. Apache error log shows stack trace described in the bug.
-
Apply the patch and notice that the issue is fixed. Page source of the index page shows locale messages loaded properly as part of JavaScript snippet into variable T_messages. In Spanish locale, the UI is properly translated.
Signed-off-by: Sunil Mohan Adapa sunil@medhas.org
Additional tests:
-
Package builds with the patch. Introduces not new lint messages.
-
Installing the package fixes the problem.