[ZBX-3204] Translate 'popup_trexpr.php'. Patch. Created: 2010 Nov 09 Updated: 2017 May 30 Resolved: 2012 Dec 10 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Frontend (F) |
Affects Version/s: | None |
Fix Version/s: | 2.0.4rc1, 2.0.5rc1, 2.1.0 |
Type: | Incident report | Priority: | Minor |
Reporter: | Oleksii Zagorskyi | Assignee: | Oleg Egorov (Inactive) |
Resolution: | Fixed | Votes: | 0 |
Labels: | localization, trivial | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified |
Attachments: |
![]() ![]() |
Description |
I want to draw your attention. For example: might be simpler and more important - more readable like this: Why use such complex design of the word? |
Comments |
Comment by Alexander Vladishev [ 2012 Jun 19 ] |
Oleksiy, It still actual for latest 2.0 code? |
Comment by Oleksii Zagorskyi [ 2012 Jun 19 ] |
Yes, it's still actual for 2.0. But I suppose for translating those strings we should not use {OP}inside strings, but use PHP placeholders, so there code should be changed to be parsed correctly by gettext and to be clear for translators. |
Comment by Pavels Jelisejevs (Inactive) [ 2012 Sep 20 ] |
(1) The function descriptions should be translatable, and the {OP} placeholder should be replaced with %1$s. Vedmak CLOSED |
Comment by Oleg Egorov (Inactive) [ 2012 Sep 24 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-3204 |
Comment by Oleksii Zagorskyi [ 2012 Sep 25 ] |
(2) Some strings: These all strings (and their variations) should be transformed and should look similarly to other descriptions. I showed that on the screenshot (see such transformation in Ukrainian translation). For example, first string would be: richlv we should clean them up, but probably not spend too much time on it - that dialog should be completely redesigned anyway zalex_ua Timestamp does not differ from Zabbix server time for more than T seconds - then N = 1, 0 - otherwise' oleg.egorov RESOLVED martins-v I would suggest these strings: 'Different last and preceding values is N = 1, 0 - otherwise.' zalex_ua martins-v Well. it's the best I could do that is logically and grammatically correct (hopefully) and does not start with "If". Perhaps it is important to realize that this set of messages is a bit more complex than the other messages in the list. So, whichever way we go, someone will not like it. martins-v also, you can find "is" in the other messages too. zalex_ua but in other messages the "is" word located in another place (Something is > N) and has another meaning martins-v OK, I'll throw in another set of suggestions: 'Difference between last and preceding values, if N = 1, 0 - otherwise.' Perhaps these work better in that silly form. Basically the message should only explain the function (as the field says 'Function'), not the meanings of N. Values of N could be listed, with their meanings, against the N (in that case a dropdown or something), depending on the chosen function...that is, if the form was designed differently and actually made sense oleg.egorov RESOLVED zalex_ua sorry, I cannot agree. My renewed suggestions: martins-v If users would be better off this way, OK. oleg.egorov RESOLVED zalex_ua fuhhh, thanks ! CLOSED zalex_ua We forgot to return back "then" instead of "if" (used temporary in the middle of development) for "nodata" function. oleg.egorov RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-3204 r31172 zalex_ua checked, CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Sep 25 ] |
(3) 'Find if string T length < N' 'Last value < N' oleg.egorov RESOLVED zalex_ua Checked, CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Sep 25 ] |
(4) "is" used for functions: date, dayofweek, dayofmonth, logseverity, now I suggest to add it also to: abschange, avg, delta, change, count, last, max, min, prev, str, strlen, sum and other which I suggested to be transformed in (2) sub-issue <richlv> got confused. can you show with/without examples ? <zalex> in current trunk check the "is" word presence for "date" description and missing for "sum" description oleg.egorov RESOLVED zalex_ua not resolved actually. Martins, please consider all rest of strings to estimate this point and what do you think ? martins-v It is necessary to insert "is" in such sentences... since, for example, "<" in text means "less than", and not "is less than". So: 'Absolute difference between last and previous value is < N' oleg.egorov RESOLVED zalex_ua CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Sep 25 ] |
(5) There should be unification, I'd suggest to use another variant - "of a period T" oleg.egorov "for period of time T" - it's more literary style zalex_ua note please that most of functions allow to use seconds or #num as the parameter, but the phrase "for period of time T" conflicts with #num logic oleg.egorov RESOLVED zalex_ua Interesting, how it can be resolved as it is NOT resolved ? oleg.egorov Sorry, it is my mistake oleg.egorov RESOLVED in r30690 zalex_ua Do you like this ?: oleg.egorov RESOLVED in r30717 zalex_ua checked, CLOSED zalex_ua hey, you forgot to change description for "sum" function in "<" and "NOT" variants. REOPENED oleg.egorov RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-3204 r31172 zalex_ua checked, CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Sep 25 ] |
(6) oleg.egorovI think it's better, when can see parameters in description zalex_ua Current: Suggested: |
Comment by Oleksii Zagorskyi [ 2012 Sep 25 ] |
(7) I'd suggest to remove trailing dots. oleg.egorov I agree. zalex_ua Checked, CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Sep 25 ] |
REOPENED to fix 2-7 sub-issues all they resolved and CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Oct 04 ] |
(8) just now realized. the "nodata" function can return only 1 or 0. The strings should be removed. oleg.egorov RESOLVED zalex_ua CLOSED |
Comment by Oleg Egorov (Inactive) [ 2012 Oct 10 ] |
Fixed in pre-2.0.4 r30763 and pre-2.1.0 (trunk) r30764. |
Comment by Oleksii Zagorskyi [ 2012 Oct 30 ] |
for (4) for (5) Taking into account changes for (4) above, correct style is: REOPENED tomtom I believe "Maximum value for period T is N" is correct. zalex_ua Toms, no, it's not correct! correct: RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-3204 r31161 zalex_ua checked, CLOSED |
Comment by Oleksii Zagorskyi [ 2012 Oct 31 ] |
Ready to review by another dev. |
Comment by Kodai Terashima [ 2012 Oct 31 ] |
"Log source of the last log entry matching parameter T, then N < 1, 0 - otherwise" has 4 types (=, #, <, >). However, it seems that logsource() can return only 0 or 1.
Are these strings correct? oleg.egorov RESOLVED IN svn://svn.zabbix.com/branches/dev/ZBX-3204 r31178 zalex_ua tested, CLOSED |
Comment by Oleg Egorov (Inactive) [ 2012 Dec 10 ] |
FIXED IN 2.0.5rc1 r31998, 2.1.0 r31999 |
Comment by Oleksii Zagorskyi [ 2012 Dec 10 ] |
Fix Version/s: filled incorrectly, REOPENED The same for |
Comment by Oleksii Zagorskyi [ 2012 Dec 10 ] |
I see it closed correctly now, thanks. |