当前位置: 首页>>代码示例>>Python>>正文


Python translation.ungettext_lazy方法代码示例

本文整理汇总了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
        ) 
开发者ID:openstack,项目名称:trove-dashboard,代码行数:8,代码来源:tables.py

示例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
        ) 
开发者ID:openstack,项目名称:trove-dashboard,代码行数:8,代码来源:tables.py

示例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
        ) 
开发者ID:openstack,项目名称:trove-dashboard,代码行数:8,代码来源:tables.py

示例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
        ) 
开发者ID:openstack,项目名称:trove-dashboard,代码行数:8,代码来源:tables.py

示例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
        ) 
开发者ID:openstack,项目名称:trove-dashboard,代码行数:8,代码来源:tables.py

示例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
        ) 
开发者ID:openstack,项目名称:trove-dashboard,代码行数:8,代码来源:tables.py

示例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
        ) 
开发者ID:openstack,项目名称:trove-dashboard,代码行数:8,代码来源:tables.py

示例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
        ) 
开发者ID:openstack,项目名称:trove-dashboard,代码行数:8,代码来源:tables.py

示例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
        ) 
开发者ID:openstack,项目名称:trove-dashboard,代码行数:8,代码来源:tables.py


注:本文中的django.utils.translation.ungettext_lazy方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。