[ZBX-5005] The percent symbol must be escaped Created: 2012 May 15  Updated: 2017 May 30  Resolved: 2012 May 17

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 2.0.0rc5
Fix Version/s: 2.0.0rc5

Type: Incident report Priority: Blocker
Reporter: Alexey Pustovalov Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: translation
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File zbx_5005.png    

 Description   

It must be escaped in "Only the last 20% of the indicator is displayed." because making mo files become impossible.

Index: locale/ru/LC_MESSAGES/frontend.po
===================================================================
— locale/ru/LC_MESSAGES/frontend.po (revision 27542)
+++ locale/ru/LC_MESSAGES/frontend.po (working copy)
@@ -8596,7 +8596,7 @@
#: include/services.inc.php:287
#, php-format
msgid "Only the last 20% of the indicator is displayed."
-msgstr ""
+msgstr "????????? ?????????? ?????? ????????? 20%."

#: include/blocks.inc.php:695
msgid "Only triggers assigned to enabled hosts and depending on enabled items are counted"

and if i trying to make mo files:
./locale/make_mo.sh
./locale/ru/LC_MESSAGES/frontend.po:8599: 'msgstr' is not a valid PHP format string, unlike 'msgid'. Reason: In the directive number 1, the character '.' is not a valid conversion specifier.
msgfmt: found 1 fatal error



 Comments   
Comment by Alexey Fukalov [ 2012 May 17 ]

dev branch: svn://svn.zabbix.com/branches/dev/ZBX-5005

Comment by Alexey Pustovalov [ 2012 May 17 ]

The problem is still there:
./ru/LC_MESSAGES/frontend.po:8599: 'msgstr' is not a valid PHP format string, unlike 'msgid'. Reason: In the directive number 1, the character '.' is not a valid conversion specifier.
msgfmt: found 1 fatal error

and percent symbols displayed now twice)

<Vedmak> fixed double percents in english. I don't have error if translation string also has two % characters.

Comment by Pavels Jelisejevs (Inactive) [ 2012 May 17 ]

TESTED.

Comment by Alexey Fukalov [ 2012 May 17 ]

svn://svn.zabbix.com/trunk 27610

Generated at Sat Apr 27 07:03:31 EEST 2024 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.