Permalink
Browse files

locales

  • Loading branch information...
1 parent 0f5a2e3 commit c9d89971aeab3fd272f1701d5765b5ac211987f8 @digi604 committed Apr 6, 2013
Showing with 8,261 additions and 8,914 deletions.
  1. +181 −188 cms/locale/ar/LC_MESSAGES/django.po
  2. +181 −188 cms/locale/bg/LC_MESSAGES/django.po
  3. +147 −185 cms/locale/bn/LC_MESSAGES/django.po
  4. +181 −188 cms/locale/ca/LC_MESSAGES/django.po
  5. +175 −188 cms/locale/cs/LC_MESSAGES/django.po
  6. +147 −185 cms/locale/cy/LC_MESSAGES/django.po
  7. +181 −188 cms/locale/da/LC_MESSAGES/django.po
  8. +295 −233 cms/locale/de/LC_MESSAGES/django.po
  9. +158 −187 cms/locale/el/LC_MESSAGES/django.po
  10. +155 −189 cms/locale/en/LC_MESSAGES/django.po
  11. +181 −188 cms/locale/es/LC_MESSAGES/django.po
  12. +157 −187 cms/locale/es_AR/LC_MESSAGES/django.po
  13. +181 −188 cms/locale/es_BO/LC_MESSAGES/django.po
  14. +160 −202 cms/locale/es_DO/LC_MESSAGES/django.po
  15. +164 −187 cms/locale/et/LC_MESSAGES/django.po
  16. +172 −188 cms/locale/eu/LC_MESSAGES/django.po
  17. +181 −188 cms/locale/fa/LC_MESSAGES/django.po
  18. +181 −188 cms/locale/fi/LC_MESSAGES/django.po
  19. +181 −188 cms/locale/fr/LC_MESSAGES/django.po
  20. +147 −185 cms/locale/gu/LC_MESSAGES/django.po
  21. +149 −186 cms/locale/he/LC_MESSAGES/django.po
  22. +181 −188 cms/locale/hi/LC_MESSAGES/django.po
  23. +181 −188 cms/locale/hr/LC_MESSAGES/django.po
  24. +168 −188 cms/locale/hu/LC_MESSAGES/django.po
  25. +167 −187 cms/locale/is/LC_MESSAGES/django.po
  26. +181 −188 cms/locale/it/LC_MESSAGES/django.po
  27. +158 −190 cms/locale/ja/LC_MESSAGES/django.po
  28. +149 −186 cms/locale/ka/LC_MESSAGES/django.po
  29. +175 −188 cms/locale/km/LC_MESSAGES/django.po
  30. +181 −188 cms/locale/ku_IQ/LC_MESSAGES/django.po
  31. +181 −188 cms/locale/nb/LC_MESSAGES/django.po
  32. +181 −188 cms/locale/nl/LC_MESSAGES/django.po
  33. +167 −187 cms/locale/no/LC_MESSAGES/django.po
  34. +181 −188 cms/locale/pl/LC_MESSAGES/django.po
  35. +181 −188 cms/locale/pt/LC_MESSAGES/django.po
  36. +181 −188 cms/locale/pt_BR/LC_MESSAGES/django.po
  37. +169 −191 cms/locale/ro/LC_MESSAGES/django.po
  38. +181 −188 cms/locale/ru/LC_MESSAGES/django.po
  39. +181 −188 cms/locale/sk/LC_MESSAGES/django.po
  40. +181 −188 cms/locale/sl_SI/LC_MESSAGES/django.po
  41. +181 −188 cms/locale/sr@latin/LC_MESSAGES/django.po
  42. +249 −219 cms/locale/sv/LC_MESSAGES/django.po
  43. +147 −185 cms/locale/th_TH/LC_MESSAGES/django.po
  44. +178 −188 cms/locale/tr/LC_MESSAGES/django.po
  45. +152 −186 cms/locale/uk/LC_MESSAGES/django.po
  46. +181 −188 cms/locale/zh_CN/LC_MESSAGES/django.po
  47. +181 −188 cms/locale/zh_TW/LC_MESSAGES/django.po
  48. +12 −5 cms/plugins/utils.py

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -20,6 +20,7 @@ def get_plugins(request, placeholder, lang=None):
assign_plugins(request, [placeholder], lang)
return getattr(placeholder, '_%s_plugins_cache' % lang)
+
def assign_plugins(request, placeholders, lang=None):
"""
Fetch all plugins for the given ``placeholders`` and
@@ -39,8 +40,9 @@ def assign_plugins(request, placeholders, lang=None):
if fallback in languages:
request_lang = fallback
break
- # get all plugins for the given placeholders
- qs = get_cmsplugin_queryset(request).filter(placeholder__in=placeholders, language=request_lang).order_by('placeholder', 'tree_id', 'lft')
+ # get all plugins for the given placeholders
+ qs = get_cmsplugin_queryset(request).filter(placeholder__in=placeholders, language=request_lang).order_by(
+ 'placeholder', 'tree_id', 'lft')
plugin_list = downcast_plugins(qs)
# split the plugins up by placeholder
@@ -51,6 +53,7 @@ def assign_plugins(request, placeholders, lang=None):
for placeholder in placeholders:
setattr(placeholder, '_%s_plugins_cache' % lang, list(groups.get(placeholder.pk, [])))
+
def build_plugin_tree(plugin_list):
root = []
cache = {}
@@ -68,6 +71,7 @@ def build_plugin_tree(plugin_list):
plugin.child_plugin_instances.sort(key=lambda x: x.position)
return root
+
def downcast_plugins(queryset, select_placeholder=False):
plugin_types_map = defaultdict(list)
plugin_lookup = {}
@@ -86,19 +90,20 @@ def downcast_plugins(queryset, select_placeholder=False):
# downcasted versions
for instance in plugin_qs:
plugin_lookup[instance.pk] = instance
- # make the equivalent list of qs, but with downcasted instances
+ # make the equivalent list of qs, but with downcasted instances
plugin_list = [plugin_lookup[p.pk] for p in queryset if p.pk in plugin_lookup]
return plugin_list
def get_plugins_for_page(request, page, lang=None):
from cms.utils.plugins import get_placeholders
+
if not page:
return []
lang = lang or get_language_from_request(request)
if not hasattr(page, '_%s_plugins_cache' % lang):
slots = get_placeholders(page.template)
- setattr(page, '_%s_plugins_cache' % lang, get_cmsplugin_queryset(request).filter(
+ setattr(page, '_%s_plugins_cache' % lang, get_cmsplugin_queryset(request).filter(
placeholder__page=page, placeholder__slot__in=slots, language=lang, parent__isnull=True
).order_by('placeholder', 'position').select_related())
return getattr(page, '_%s_plugins_cache' % lang)
@@ -125,5 +130,7 @@ def has_reached_plugin_limit(placeholder, plugin_type, language, template=None):
).count()
if type_count >= type_limit:
plugin_name = unicode(plugin_pool.get_plugin(plugin_type).name)
- raise PluginLimitReached(_("This placeholder already has the maximum number (%s) of allowed %s plugins.") % (type_limit, plugin_name))
+ raise PluginLimitReached(_(
+ "This placeholder already has the maximum number (%(limit)s) of allowed %(plugin_name)s plugins.") \
+ % {'limit': type_limit, 'plugin_name': plugin_name})
return False

0 comments on commit c9d8997

Please sign in to comment.