本文整理汇总了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
)