From 3586b1dc0fe755b0fc1a3b27151ab1445bd67d55 Mon Sep 17 00:00:00 2001 From: tonio Date: Thu, 10 Jun 2010 18:00:38 +0200 Subject: [PATCH] Javascript bugfix + translations. --- extensions/amavis_quarantine/main.py | 10 ++++++---- locale/fr/LC_MESSAGES/django.po | 2 +- static/js/common.js | 6 +++--- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/extensions/amavis_quarantine/main.py b/extensions/amavis_quarantine/main.py index a9190ec4a..6d772a677 100644 --- a/extensions/amavis_quarantine/main.py +++ b/extensions/amavis_quarantine/main.py @@ -22,14 +22,16 @@ def init(): parameters.register_admin("amavis_quarantine", "AM_PDP_MODE", type="list", deflt="unix", values=[("inet", "inet"), ("unix", "unix")], - help="") + help=_("Mode used to access the PDP server")) parameters.register_admin("amavis_quarantine", "AM_PDP_HOST", type="string", - deflt="localhost", help="") + deflt="localhost", + help=-("PDP server address (if inet mode)")) parameters.register_admin("amavis_quarantine", "AM_PDP_PORT", type="int", - deflt=9998, help="") + deflt=9998, + help=_("PDP server port (if inet mode)")) parameters.register_admin("amavis_quarantine", "AM_PDP_SOCKET", type="string", deflt="/var/amavis/amavisd.sock", - help="") + help=_("Path to the PDP server socket (if unix mode)")) def destroy(): events.unregister("UserMenuDisplay", menu) diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po index 4091b4f9e..61d8ba4ed 100644 --- a/locale/fr/LC_MESSAGES/django.po +++ b/locale/fr/LC_MESSAGES/django.po @@ -716,7 +716,7 @@ msgstr "Compresser ce dossier" #: extensions/webmail/templatetags/webextras.py:86 msgid "Empty folder" -msgstr "Dossier vide" +msgstr "Vider ce dossier" #: lib/__init__.py:63 #, python-format diff --git a/static/js/common.js b/static/js/common.js index f5b45a858..5ce5a3dfa 100644 --- a/static/js/common.js +++ b/static/js/common.js @@ -32,7 +32,7 @@ check_anchor = function() { } else { query = current_anchor.serialized.substring(1); } - infobox.show("Loading...", "gray"); + infobox.show(gettext("Loading..."), "gray"); new Request.JSON({url: query, onSuccess: function(resp) { callback = ($defined(resp.callback)) ? resp.callback : "default"; callbacks[callback](resp); @@ -195,7 +195,7 @@ parse_menubar = function(id) { } }); }); - SqueezeBox.assign($$('a.boxed'), { + SqueezeBox.assign($(id).getElements('a[class=boxed]'), { parse: 'rel', }); } @@ -310,7 +310,7 @@ searchbox_init = function() { $("searchfield").addEvent("blur", function(event) { if ($("searchfield").value == "") { - $("searchfield").set("value", "Search..."); + $("searchfield").set("value", gettext("Search...")); } }); $("searchbox").setStyle("float", "left");