コード例 #1
0
 def get_realm_label(self, realm, n_plural=1, astitle=False):
     if astitle:
         # TRANSLATOR: 'wiki page(s)' as title
         return ngettext("Wiki Page", "Wiki Pages", n_plural)
     else:
         # TRANSLATOR: 'wiki page(s)' inside a sentence
         return ngettext("wiki page", "wiki pages", n_plural)
コード例 #2
0
 def get_realm_label(self, realm, n_plural=1, astitle=False):
     if astitle:
         # TRANSLATOR: 'ticket(s)' as title
         return ngettext("Ticket", "Tickets", n_plural)
     else:
         # TRANSLATOR: 'ticket(s)' inside a sentence
         return ngettext("ticket", "tickets", n_plural)
コード例 #3
0
ファイル: ticket.py プロジェクト: gaod/trac-watchlistplugin
 def get_realm_label(self, realm, n_plural=1, astitle=False):
     if astitle:
         # TRANSLATOR: 'ticket(s)' as title
         return ngettext("Ticket", "Tickets", n_plural)
     else:
         # TRANSLATOR: 'ticket(s)' inside a sentence
         return ngettext("ticket", "tickets", n_plural)