Module: check_mk
Branch: master
Commit: 373dd4b4c054fc940376715d0779e9b11ecc2d01
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=373dd4b4c054fc…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Oct 14 13:03:12 2011 +0200
Changed some more localisation strings
---
web/htdocs/wato.py | 2 +-
web/plugins/views/sorters.py | 22 +++++++++++-----------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 0133f5d..8221051 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1376,7 +1376,7 @@ def mode_bulk_inventory(phase):
# Start button
html.write('<tr><td colspan=2 class="buttons">')
- html.button("_start", _("Start!"))
+ html.button("_start", _("Start"))
html.write("</tr>")
html.write("</table>")
diff --git a/web/plugins/views/sorters.py b/web/plugins/views/sorters.py
index 0ad3848..75e1d56 100644
--- a/web/plugins/views/sorters.py
+++ b/web/plugins/views/sorters.py
@@ -166,52 +166,52 @@ def cmp_perfdata_nth_value(r1, r2, n):
return cmp(saveint(get_perfdata_nth_value(r1, n)), saveint(get_perfdata_nth_value(r2,
n)))
multisite_sorters['svc_perf_val01'] = {
- "title" : _("Service performance data - value number 01"),
+ "title" : _("Service performance data - value number %02d") %
1,
"columns" : [ 'service_perf_data' ],
"cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 0),
}
multisite_sorters['svc_perf_val02'] = {
- "title" : _("Service performance data - value number 02"),
+ "title" : _("Service performance data - value number %02d"),
"columns" : [ 'service_perf_data' ],
- "cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 1),
+ "cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 1 % 2),
}
multisite_sorters['svc_perf_val03'] = {
- "title" : _("Service performance data - value number 03"),
+ "title" : _("Service performance data - value number %02d" %
3),
"columns" : [ 'service_perf_data' ],
"cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 2),
}
multisite_sorters['svc_perf_val04'] = {
- "title" : _("Service performance data - value number 04"),
+ "title" : _("Service performance data - value number %02d" %
4),
"columns" : [ 'service_perf_data' ],
"cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 3),
}
multisite_sorters['svc_perf_val05'] = {
- "title" : _("Service performance data - value number 05"),
+ "title" : _("Service performance data - value number %02d" %
5),
"columns" : [ 'service_perf_data' ],
"cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 4),
}
multisite_sorters['svc_perf_val06'] = {
- "title" : _("Service performance data - value number 06"),
+ "title" : _("Service performance data - value number %02d" %
6),
"columns" : [ 'service_perf_data' ],
"cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 5),
}
multisite_sorters['svc_perf_val07'] = {
- "title" : _("Service performance data - value number 07"),
+ "title" : _("Service performance data - value number %02d" %
7),
"columns" : [ 'service_perf_data' ],
"cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 6),
}
multisite_sorters['svc_perf_val08'] = {
- "title" : _("Service performance data - value number 08"),
+ "title" : _("Service performance data - value number %02d" %
8),
"columns" : [ 'service_perf_data' ],
"cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 7),
}
multisite_sorters['svc_perf_val09'] = {
- "title" : _("Service performance data - value number 09"),
+ "title" : _("Service performance data - value number %02d" %
9),
"columns" : [ 'service_perf_data' ],
"cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 8),
}
multisite_sorters['svc_perf_val10'] = {
- "title" : _("Service performance data - value number 10"),
+ "title" : _("Service performance data - value number %02d" %
10),
"columns" : [ 'service_perf_data' ],
"cmp" : lambda r1, r2: cmp_perfdata_nth_value(r1, r2, 9),
}