X-Git-Url: https://git.mdrn.pl/fnpeditor.git/blobdiff_plain/8c838a1e2df218ea7da65a8a449da1188e091f51..5145fc38a6bf044367f4d96197dd3d47e05b6266:/src/editor/utils/wlxml.js diff --git a/src/editor/utils/wlxml.js b/src/editor/utils/wlxml.js deleted file mode 100644 index 9935655..0000000 --- a/src/editor/utils/wlxml.js +++ /dev/null @@ -1,48 +0,0 @@ -define([ - -], function() { - -'use strict'; - - - -var names = { - tag: { - '': '-', - section: 'sekcja', - header: 'nagłówek', - div: 'blok', - span: 'tekst', - aside: 'poboczny' - }, - 'class': { - '': '-', - author: 'autor', - title: 'tytuł', - cite: 'cytat', - 'cite.code': 'cytat.kod', - 'cite.code.xml': 'cytat.kod.xml', - 'list.items': 'lista', - 'list.items.enum': 'lista.numerowana', - item: 'element', - uri: 'uri', - p: 'paragraf', - footnote: 'przypis', - todo: 'todo', - emp: 'wyróżnienie' - } -}; - -return { - getLabel: function(of, name) { - return (names[of] && (names[of][name] || name)) || '?'; - }, - getTagLabel: function(tagName) { - return this.getLabel('tag', tagName); - }, - getClassLabel: function(className) { - return this.getLabel('class', className); - } -}; - -}); \ No newline at end of file