本文整理匯總了Python中django.utils.translation.ungettext_lazy方法的典型用法代碼示例。如果您正苦於以下問題:Python translation.ungettext_lazy方法的具體用法?Python translation.ungettext_lazy怎麽用?Python translation.ungettext_lazy使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類django.utils.translation
的用法示例。
在下文中一共展示了translation.ungettext_lazy方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: action_present
# 需要導入模塊: from django.utils import translation [as 別名]
# 或者: from django.utils.translation import ungettext_lazy [as 別名]
def action_present(count):
return ungettext_lazy(
u"Publish Log",
u"Publish Logs",
count
)
示例2: action_past
# 需要導入模塊: from django.utils import translation [as 別名]
# 或者: from django.utils.translation import ungettext_lazy [as 別名]
def action_past(count):
return ungettext_lazy(
u"Published Log",
u"Published Logs",
count
)
示例3: action_present
# 需要導入模塊: from django.utils import translation [as 別名]
# 或者: from django.utils.translation import ungettext_lazy [as 別名]
def action_present(count):
return ungettext_lazy(
u"Delete Instance",
u"Delete Instances",
count
)
示例4: action_past
# 需要導入模塊: from django.utils import translation [as 別名]
# 或者: from django.utils.translation import ungettext_lazy [as 別名]
def action_past(count):
return ungettext_lazy(
u"Scheduled deletion of Instance",
u"Scheduled deletion of Instances",
count
)
示例5: action_present
# 需要導入模塊: from django.utils import translation [as 別名]
# 或者: from django.utils.translation import ungettext_lazy [as 別名]
def action_present(count):
return ungettext_lazy(
u"Delete Backup",
u"Delete Backups",
count
)
示例6: action_past
# 需要導入模塊: from django.utils import translation [as 別名]
# 或者: from django.utils.translation import ungettext_lazy [as 別名]
def action_past(count):
return ungettext_lazy(
u"Deleted Backup",
u"Deleted Backups",
count
)
示例7: action_present
# 需要導入模塊: from django.utils import translation [as 別名]
# 或者: from django.utils.translation import ungettext_lazy [as 別名]
def action_present(count):
return ungettext_lazy(
u"Delete Cluster",
u"Delete Clusters",
count
)
示例8: action_past
# 需要導入模塊: from django.utils import translation [as 別名]
# 或者: from django.utils.translation import ungettext_lazy [as 別名]
def action_past(count):
return ungettext_lazy(
u"Scheduled Shrinking of Cluster",
u"Scheduled Shrinking of Cluster",
count
)
示例9: action_present
# 需要導入模塊: from django.utils import translation [as 別名]
# 或者: from django.utils.translation import ungettext_lazy [as 別名]
def action_present(count):
return ungettext_lazy(
u"Delete Configuration Group",
u"Delete Configuration Groups",
count
)