1. Luke Plant
  2. semanticeditor


Luke Plant  committed 5c74d9f Merge

Merged in paparent/semanticeditor/fix-js-language (pull request #6)

Use only the first part of the language

  • Participants
  • Parent commits 050ceca, 9aa8b59
  • Branches default

Comments (0)

Files changed (1)

File semanticeditor/widgets.py

View file
  • Ignore whitespace
         super(SemanticEditor, self).__init__(attrs=attrs, installed_plugins=installed_plugins)
     def render_additions(self, name, value, attrs=None):
-        language = get_language()
+        language = get_language().split('-')[0]
         containers = getattr(settings, 'WYM_CONTAINERS', None)
         if containers is None:
             containers = text_settings.WYM_CONTAINERS