diff --git a/modeltranslation/static/modeltranslation/js/tabbed_translation_fields.js b/modeltranslation/static/modeltranslation/js/tabbed_translation_fields.js index 0fc06cd5..1c4b1cda 100644 --- a/modeltranslation/static/modeltranslation/js/tabbed_translation_fields.js +++ b/modeltranslation/static/modeltranslation/js/tabbed_translation_fields.js @@ -302,6 +302,8 @@ var google, django, gettext; var tabs = []; $.each(groupedTranslations, function (groupId, lang) { + if (groupId.includes("__prefix__")) + return; var tabsContainer = $(''), tabsList = $(''), insertionPoint; @@ -326,6 +328,7 @@ var google, django, gettext; $.each($container[0].attributes, function(idx, attr) { attrs[attr.nodeName] = attr.nodeValue; }); + $container.replaceWith(function () { return $('
', attrs).append($(this).contents()); });