當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。