                     separator: '---------------'
                 },
                 {
-                    name: $i18next.t('markdown-editor.bulleted-list')
-                    openWith: '- '
-                },
-                {
-                    name: $i18next.t('markdown-editor.numeric-list')
-                    openWith: (markItUp) -> markItUp.line+'. '
-                },
-                {
-                    separator: '---------------'
-                },
-                {
-                    name: $i18next.t('markdown-editor.picture')
+                    name: $tr.t("markdown-editor.bulleted-list")
+                    openWith: "- "
+                },
+                {
+                    name: $tr.t("markdown-editor.numeric-list")
+                    openWith: (markItUp) -> markItUp.line+". "
+                },
+                {
+                    separator: '---------------'
+                },
+                {
+                    name: $tr.t("markdown-editor.picture")
                     key: "P"
                     replaceWith: '![[![Alternative text]!]]([![Url:!:http://]!] "[![Title]!]")'
                 },
                 {
-                    name: $i18next.t('markdown-editor.link')
+                    name: $tr.t("markdown-editor.link")
                     key: "L"
                     openWith: '['
                     closeWith: ']([![Url:!:http://]!] "[![Title]!]")'
-                    placeHolder: $i18next.t('markdown-editor.link-placeholder')
-                },
-                {
-                    separator: '---------------'
-                },
-                {
-                    name: $i18next.t('markdown-editor.quotes')
-                    openWith: '> '
-                },
-                {
-                    name: $i18next.t('markdown-editor.code-block')
-                    openWith: '```\n'
-                    closeWith: '\n```'
-                },
-                {
-                    separator: '---------------'
-                },
-                {
-                    name: $i18next.t('markdown-editor.preview')
+                    placeHolder: $tr.t("markdown-editor.link-placeholder")
+                },
+                {
+                    separator: '---------------'
+                },
+                {
+                    name: $tr.t("markdown-editor.quotes")
+                    openWith: "> "
+                },
+                {
+                    name: $tr.t("markdown-editor.code-block")
+                    openWith: "```\n"
+                    closeWith: "\n```"
+                },
+                {
+                    separator: '---------------'
+                },
+                {
+                    name: $tr.t("markdown-editor.preview")
                     call: preview
                     className: "preview-icon"
                 },


    return {link:link, require:"ngModel"}

module.directive("tgMarkitup", ["$rootScope", "$tgResources", tgMarkitupDirective])


            markupSet: [
                {
                    name: $tr.t("markdown-editor.heading-1")
                    key: "1"
                    placeHolder: $tr.t("markdown-editor.placeholder")
                    closeWith: (markItUp) -> markdownTitle(markItUp, "=")
                },
                {
                    name: $tr.t("markdown-editor.heading-2")
                    key: "2"
                    placeHolder: $tr.t("markdown-editor.placeholder")
                    closeWith: (markItUp) -> markdownTitle(markItUp, "-")
                },
                {
                    name: $tr.t("markdown-editor.heading-3")
                    key: "3"
                    openWith: "### "
                    placeHolder: $tr.t("markdown-editor.placeholder")
                },
                {
                    separator: '---------------'
                },
                {
                    name: $tr.t("markdown-editor.bold")
                    key: "B"
                    openWith: '**'
                    closeWith: '**'
                },
                {
                    name: $tr.t("markdown-editor.italic")
                    key: "I"
                    openWith: '_'
                    closeWith: '_'
                },
                {
                    name: $tr.t("markdown-editor.strike")
                    key: "S"
                    openWith: '~~'
                    closeWith: '~~'
