Esempio n. 1
0
 def translate(self, msgid, mapping=None, context=None,
               target_language=None, default=None):
     if msgid == 'timefmt':
         return '%(minutes)s minutes after %(hours)s %(ampm)s' % mapping
     elif msgid == 'jobnum':
         return '%(jobnum)s is the JOB NUMBER' % mapping
     elif msgid == 'verify':
         s = 'Your contact email address is recorded as %(email)s'
         return s % mapping
     elif msgid == 'mailto:${request/submitter}':
         return 'mailto:[email protected]'
     elif msgid == 'origin':
         return '%(name)s was born in %(country)s' % mapping
     return DummyTranslationDomain.translate(
         self, msgid, mapping, context,
         target_language, default=default)
Esempio n. 2
0
 def translate(self,
               msgid,
               mapping=None,
               context=None,
               target_language=None,
               default=None):
     if msgid == 'timefmt':
         return '%(minutes)s minutes after %(hours)s %(ampm)s' % mapping
     elif msgid == 'jobnum':
         return '%(jobnum)s is the JOB NUMBER' % mapping
     elif msgid == 'verify':
         s = 'Your contact email address is recorded as %(email)s'
         return s % mapping
     elif msgid == 'mailto:${request/submitter}':
         return 'mailto:[email protected]'
     elif msgid == 'origin':
         return '%(name)s was born in %(country)s' % mapping
     return DummyTranslationDomain.translate(self,
                                             msgid,
                                             mapping,
                                             context,
                                             target_language,
                                             default=default)
Esempio n. 3
0
 def translate(self, msgid, mapping=None,
               context=None, target_language=None, default=None):
     self.data.append((msgid, mapping))
     return DummyTranslationDomain.translate(
         self,
         msgid, mapping, context, target_language, default)