Internationalized two messages

This commit is contained in:
Vincent Fretin 2013-03-08 15:19:27 +01:00
parent 1f04cef0b8
commit 8d12949be1
4 changed files with 58 additions and 2 deletions

View File

@ -5,7 +5,11 @@ Changelog
1.0 (unreleased)
----------------
- Internationalized two messages.
[vincentfretin]
- Don't show tooltip if the mouse left the link.
[vincentfretin]
- Don't call tokenToUrl if value is --NOVALUE--.
[vincentfretin]

View File

@ -0,0 +1,27 @@
# --- PLEASE EDIT THE LINES BELOW CORRECTLY ---
# SOME DESCRIPTIVE TITLE.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"POT-Creation-Date: 2013-03-08 14:07+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI +ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0\n"
"Language-Code: en\n"
"Language-Name: English\n"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: collective.contact.widget\n"
#: ../widgets.py:163
msgid "(nothing)"
msgstr ""
#: ../widgets.py:113
msgid "please wait"
msgstr ""

View File

@ -0,0 +1,24 @@
msgid ""
msgstr ""
"Project-Id-Version: collective.contact.widget\n"
"POT-Creation-Date: 2013-03-08 14:07+0000\n"
"PO-Revision-Date: 2013-03-08 15:10+0100\n"
"Last-Translator: Vincent Fretin <vincent.fretin@gmail.com>\n"
"Language-Team: French\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0\n"
"Language-Code: en\n"
"Language-Name: English\n"
"Preferred-Encodings: utf-8 latin1\n"
"Domain: collective.contact.widget\n"
#: ../widgets.py:163
msgid "(nothing)"
msgstr "(aucune)"
#: ../widgets.py:113
msgid "please wait"
msgstr "veuillez patienter"

View File

@ -1,6 +1,7 @@
from z3c.form.interfaces import IFieldWidget
from z3c.form.widget import FieldWidget
from zope.component import getUtility
from zope.i18n import translate
from zope.interface import implementer, implements, Interface
from zope.browserpage.viewpagetemplatefile import ViewPageTemplateFile
from five import grok
@ -78,7 +79,7 @@ $(document).ready(function() {
}
var timeStamp = new Date();
var tooltipCall = function() {
var tip = $('<div class="tooltip pb-ajax" style="display:none">please wait</div>')
var tip = $('<div class="tooltip pb-ajax" style="display:none">%s</div>')
.insertAfter(trigger);
trigger.tooltip({relative: true, position: "center right"});
var tooltip = trigger.tooltip();
@ -109,7 +110,7 @@ $(document).ready(function() {
z-index: 99999;
}
</style>
"""
""" % translate(_(u"please wait"), context=self.request)
class TermViewlet(grok.Viewlet):