summaryrefslogtreecommitdiffstats
path: root/template/admin
diff options
context:
space:
mode:
Diffstat (limited to 'template/admin')
-rw-r--r--template/admin/html/page/form.php18
-rw-r--r--template/admin/html/post/form.php18
-rw-r--r--template/admin/html/user/form.php18
-rw-r--r--template/admin/lang/de.php13
-rw-r--r--template/admin/lang/en.php13
-rw-r--r--template/admin/rsrc/main.js2
6 files changed, 54 insertions, 28 deletions
diff --git a/template/admin/html/page/form.php b/template/admin/html/page/form.php
index 665ed74..00a9c11 100644
--- a/template/admin/html/page/form.php
+++ b/template/admin/html/page/form.php
@@ -62,15 +62,15 @@
</section>
<section class="flex flex-padding background">
<ul class="button-list markdown">
- <li onmousedown="markdownReplace('bold');" class="fa fa-bold" title="Bold"></li>
- <li onmousedown="markdownReplace('italic');" class="fa fa-italic" title="Italic"></li>
- <li onmousedown="markdownReplace('header');" class="fa fa-header" title="Heading"></li>
- <li onmousedown="markdownReplace('link');" class="fa fa-link" title="Link"></li>
- <li onmousedown="markdownReplace('image');" class="fa fa-picture-o" title="Image"></li>
- <li onmousedown="markdownReplace('code');" class="fa fa-code" title="Code"></li>
- <li onmousedown="markdownReplace('quote');" class="fa fa-quote-right" title="Quote"></li>
- <li onmousedown="markdownReplace('list_ul');" class="fa fa-list-ul" title="List [unordered]"></li>
- <li onmousedown="markdownReplace('list_ol');" class="fa fa-list-ol" title="List [ordered]"></li>
+ <li onmousedown="markdownReplace('bold');" class="fa fa-bold" title="<?=$Language->template('markdown_bold')?>"></li>
+ <li onmousedown="markdownReplace('italic');" class="fa fa-italic" title="<?=$Language->template('markdown_italic')?>"></li>
+ <li onmousedown="markdownReplace('heading');" class="fa fa-header" title="<?=$Language->template('markdown_heading')?>"></li>
+ <li onmousedown="markdownReplace('link');" class="fa fa-link" title="<?=$Language->template('markdown_link')?>"></li>
+ <li onmousedown="markdownReplace('image');" class="fa fa-picture-o" title="<?=$Language->template('markdown_image')?>"></li>
+ <li onmousedown="markdownReplace('code');" class="fa fa-code" title="<?=$Language->template('markdown_code')?>"></li>
+ <li onmousedown="markdownReplace('quote');" class="fa fa-quote-right" title="<?=$Language->template('markdown_quote')?>"></li>
+ <li onmousedown="markdownReplace('list_ul');" class="fa fa-list-ul" title="<?=$Language->template('markdown_list_ul')?>"></li>
+ <li onmousedown="markdownReplace('list_ol');" class="fa fa-list-ol" title="<?=$Language->template('markdown_list_ol')?>"></li>
</ul>
</section>
<?php else: ?>
diff --git a/template/admin/html/post/form.php b/template/admin/html/post/form.php
index aaae67d..1156c6c 100644
--- a/template/admin/html/post/form.php
+++ b/template/admin/html/post/form.php
@@ -62,15 +62,15 @@
</section>
<section class="flex flex-padding background">
<ul class="button-list markdown">
- <li onmousedown="markdownReplace('bold');" class="fa fa-bold" title="Bold"></li>
- <li onmousedown="markdownReplace('italic');" class="fa fa-italic" title="Italic"></li>
- <li onmousedown="markdownReplace('header');" class="fa fa-header" title="Heading"></li>
- <li onmousedown="markdownReplace('link');" class="fa fa-link" title="Link"></li>
- <li onmousedown="markdownReplace('image');" class="fa fa-picture-o" title="Image"></li>
- <li onmousedown="markdownReplace('code');" class="fa fa-code" title="Code"></li>
- <li onmousedown="markdownReplace('quote');" class="fa fa-quote-right" title="Quote"></li>
- <li onmousedown="markdownReplace('list_ul');" class="fa fa-list-ul" title="List [unordered]"></li>
- <li onmousedown="markdownReplace('list_ol');" class="fa fa-list-ol" title="List [ordered]"></li>
+ <li onmousedown="markdownReplace('bold');" class="fa fa-bold" title="<?=$Language->template('markdown_bold')?>"></li>
+ <li onmousedown="markdownReplace('italic');" class="fa fa-italic" title="<?=$Language->template('markdown_italic')?>"></li>
+ <li onmousedown="markdownReplace('heading');" class="fa fa-header" title="<?=$Language->template('markdown_heading')?>"></li>
+ <li onmousedown="markdownReplace('link');" class="fa fa-link" title="<?=$Language->template('markdown_link')?>"></li>
+ <li onmousedown="markdownReplace('image');" class="fa fa-picture-o" title="<?=$Language->template('markdown_image')?>"></li>
+ <li onmousedown="markdownReplace('code');" class="fa fa-code" title="<?=$Language->template('markdown_code')?>"></li>
+ <li onmousedown="markdownReplace('quote');" class="fa fa-quote-right" title="<?=$Language->template('markdown_quote')?>"></li>
+ <li onmousedown="markdownReplace('list_ul');" class="fa fa-list-ul" title="<?=$Language->template('markdown_list_ul')?>"></li>
+ <li onmousedown="markdownReplace('list_ol');" class="fa fa-list-ol" title="<?=$Language->template('markdown_list_ol')?>"></li>
</ul>
</section>
<?php else: ?>
diff --git a/template/admin/html/user/form.php b/template/admin/html/user/form.php
index 57f4d50..4822dd5 100644
--- a/template/admin/html/user/form.php
+++ b/template/admin/html/user/form.php
@@ -68,15 +68,15 @@
</section>
<section class="flex flex-padding background">
<ul class="button-list markdown">
- <li onmousedown="markdownReplace('bold');" class="fa fa-bold" title="Bold"></li>
- <li onmousedown="markdownReplace('italic');" class="fa fa-italic" title="Italic"></li>
- <li onmousedown="markdownReplace('header');" class="fa fa-header" title="Heading"></li>
- <li onmousedown="markdownReplace('link');" class="fa fa-link" title="Link"></li>
- <li onmousedown="markdownReplace('image');" class="fa fa-picture-o" title="Image"></li>
- <li onmousedown="markdownReplace('code');" class="fa fa-code" title="Code"></li>
- <li onmousedown="markdownReplace('quote');" class="fa fa-quote-right" title="Quote"></li>
- <li onmousedown="markdownReplace('list_ul');" class="fa fa-list-ul" title="List [unordered]"></li>
- <li onmousedown="markdownReplace('list_ol');" class="fa fa-list-ol" title="List [ordered]"></li>
+ <li onmousedown="markdownReplace('bold');" class="fa fa-bold" title="<?=$Language->template('markdown_bold')?>"></li>
+ <li onmousedown="markdownReplace('italic');" class="fa fa-italic" title="<?=$Language->template('markdown_italic')?>"></li>
+ <li onmousedown="markdownReplace('heading');" class="fa fa-header" title="<?=$Language->template('markdown_heading')?>"></li>
+ <li onmousedown="markdownReplace('link');" class="fa fa-link" title="<?=$Language->template('markdown_link')?>"></li>
+ <li onmousedown="markdownReplace('image');" class="fa fa-picture-o" title="<?=$Language->template('markdown_image')?>"></li>
+ <li onmousedown="markdownReplace('code');" class="fa fa-code" title="<?=$Language->template('markdown_code')?>"></li>
+ <li onmousedown="markdownReplace('quote');" class="fa fa-quote-right" title="<?=$Language->template('markdown_quote')?>"></li>
+ <li onmousedown="markdownReplace('list_ul');" class="fa fa-list-ul" title="<?=$Language->template('markdown_list_ul')?>"></li>
+ <li onmousedown="markdownReplace('list_ol');" class="fa fa-list-ol" title="<?=$Language->template('markdown_list_ol')?>"></li>
</ul>
</section>
<?php else: ?>
diff --git a/template/admin/lang/de.php b/template/admin/lang/de.php
index 6abee8c..1c5233c 100644
--- a/template/admin/lang/de.php
+++ b/template/admin/lang/de.php
@@ -115,4 +115,17 @@ $LANGUAGE['label_fullname'] = 'Name';
$LANGUAGE['label_mailaddr'] = 'E-Mail';
$LANGUAGE['label_username'] = 'Username';
$LANGUAGE['label_password'] = 'Passwort';
+
+#===============================================================================
+# Markdown
+#===============================================================================
+$LANGUAGE['markdown_bold'] = 'Fett';
+$LANGUAGE['markdown_italic'] = 'Kursiv';
+$LANGUAGE['markdown_heading'] = 'Überschrift';
+$LANGUAGE['markdown_link'] = 'Link';
+$LANGUAGE['markdown_image'] = 'Bild';
+$LANGUAGE['markdown_code'] = 'Codeblock';
+$LANGUAGE['markdown_quote'] = 'Zitat';
+$LANGUAGE['markdown_list_ul'] = 'Liste [ungeordnet]';
+$LANGUAGE['markdown_list_ol'] = 'Liste [geordnet]';
?> \ No newline at end of file
diff --git a/template/admin/lang/en.php b/template/admin/lang/en.php
index fe96cc9..5ac8066 100644
--- a/template/admin/lang/en.php
+++ b/template/admin/lang/en.php
@@ -115,4 +115,17 @@ $LANGUAGE['label_fullname'] = 'Name';
$LANGUAGE['label_mailaddr'] = 'Email';
$LANGUAGE['label_username'] = 'Username';
$LANGUAGE['label_password'] = 'Password';
+
+#===============================================================================
+# Markdown
+#===============================================================================
+$LANGUAGE['markdown_bold'] = 'Bold';
+$LANGUAGE['markdown_italic'] = 'Italic';
+$LANGUAGE['markdown_heading'] = 'Heading';
+$LANGUAGE['markdown_link'] = 'Link';
+$LANGUAGE['markdown_image'] = 'Image';
+$LANGUAGE['markdown_code'] = 'Code block';
+$LANGUAGE['markdown_quote'] = 'Quote';
+$LANGUAGE['markdown_list_ul'] = 'List [unordered]';
+$LANGUAGE['markdown_list_ol'] = 'List [ordered]';
?> \ No newline at end of file
diff --git a/template/admin/rsrc/main.js b/template/admin/rsrc/main.js
index 679a3fc..c874918 100644
--- a/template/admin/rsrc/main.js
+++ b/template/admin/rsrc/main.js
@@ -4,7 +4,7 @@
var markdownTags = {
"bold": ["**", "**"],
"italic": ["*", "*"],
- "header": ["## ", "\n"],
+ "heading": ["## ", "\n"],
"link": ["[", "](href)"],
"image": ["![", "](href)"],
"code": ["\n~~~\n", "\n~~~\n"],