浏览代码

Added the editor language file

Signed-off-by: emanuele <[email protected]>
emanuele 12 年之前
父节点
当前提交
d26f88f72e
共有 3 个文件被更改,包括 58 次插入4 次删除
  1. 2 2
      Sources/ManageLanguages.php
  2. 2 2
      Sources/Subs-Editor.php
  3. 54 0
      Themes/default/languages/Editor.english.php

+ 2 - 2
Sources/ManageLanguages.php

@@ -1050,7 +1050,7 @@ function ModifyLanguage()
 			// Got a new entry?
 			if ($line[0] == '$' && !empty($multiline_cache))
 			{
-				preg_match('~\$(helptxt|txt)\[\'(.+)\'\]\s?=\s?(.+);~', strtr($multiline_cache, array("\n" => '', "\t" => '')), $matches);
+				preg_match('~\$(helptxt|txt|editortxt)\[\'(.+)\'\]\s?=\s?(.+);~', strtr($multiline_cache, array("\n" => '', "\t" => '')), $matches);
 				if (!empty($matches[3]))
 				{
 					$entries[$matches[2]] = array(
@@ -1066,7 +1066,7 @@ function ModifyLanguage()
 		// Last entry to add?
 		if ($multiline_cache)
 		{
-			preg_match('~\$(helptxt|txt)\[\'(.+)\'\]\s?=\s?(.+);~', strtr($multiline_cache, array("\n" => '', "\t" => '')), $matches);
+			preg_match('~\$(helptxt|txt|editortxt)\[\'(.+)\'\]\s?=\s?(.+);~', strtr($multiline_cache, array("\n" => '', "\t" => '')), $matches);
 			if (!empty($matches[3]))
 				$entries[$matches[2]] = array(
 					'type' => $matches[1],

+ 2 - 2
Sources/Subs-Editor.php

@@ -21,7 +21,7 @@ if (!defined('SMF'))
  */
 function loadLocale()
 {
-	global $context, $txt, $txteditor, $modSettings;
+	global $context, $txt, $editortxt, $modSettings;
 
 	loadLanguage('Editor');
 
@@ -41,7 +41,7 @@ function loadLocale()
 	\'use strict\';
 
 	$.sceditor.locale[' . javaScriptEscape($txt['lang_locale']) . '] = {';
-	foreach ($txteditor as $key => $val)
+	foreach ($editortxt as $key => $val)
 		$file_data .= '
 		' . javaScriptEscape($key) . ': ' . javaScriptEscape($val) . ',';
 

+ 54 - 0
Themes/default/languages/Editor.english.php

@@ -0,0 +1,54 @@
+<?php
+// Version: 2.1; Editor
+global $editortxt;
+
+$editortxt['Bold'] = 'Bold';
+$editortxt['Italic'] = 'Italic';
+$editortxt['Underline'] = 'Underline';
+$editortxt['Strikethrough'] = 'Strikethrough';
+$editortxt['Subscript'] = 'Subscript';
+$editortxt['Superscript'] = 'Superscript';
+$editortxt['Align left'] = 'Align left';
+$editortxt['Center'] = 'Center';
+$editortxt['Align right'] = 'Align right';
+$editortxt['Justify'] = 'Justify';
+$editortxt['Font Name'] = 'Font Name';
+$editortxt['Font Size'] = 'Font Size';
+$editortxt['Font Color'] = 'Font Color';
+$editortxt['Remove Formatting'] = 'Remove Formatting';
+$editortxt['Cut'] = 'Cut';
+$editortxt['Your browser does not allow the cut command. Please use the keyboard shortcut Ctrl/Cmd-X'] = 'Your browser does not allow the cut command. Please use the keyboard shortcut Ctrl/Cmd-X';
+$editortxt['Copy'] = 'Copy';
+$editortxt['Your browser does not allow the copy command. Please use the keyboard shortcut Ctrl/Cmd-C'] = 'Your browser does not allow the copy command. Please use the keyboard shortcut Ctrl/Cmd-C';
+$editortxt['Paste'] = 'Paste';
+$editortxt['Your browser does not allow the paste command. Please use the keyboard shortcut Ctrl/Cmd-V'] = 'Your browser does not allow the paste command. Please use the keyboard shortcut Ctrl/Cmd-V';
+$editortxt['Paste your text inside the following box:'] = 'Paste your text inside the following box:';
+$editortxt['Paste Text'] = 'Paste Text';
+$editortxt['Bullet list'] = 'Bullet list';
+$editortxt['Numbered list'] = 'Numbered list';
+$editortxt['Undo'] = 'Undo';
+$editortxt['Redo'] = 'Redo';
+$editortxt['Rows:'] = 'Rows:';
+$editortxt['Cols:'] = 'Cols:';
+$editortxt['Insert a table'] = 'Insert a table';
+$editortxt['Insert a horizontal rule'] = 'Insert a horizontal rule';
+$editortxt['Code'] = 'Code';
+$editortxt['Insert a Quote'] = 'Insert a Quote';
+$editortxt['Width (optional):'] = 'Width (optional):';
+$editortxt['Height (optional):'] = 'Height (optional):';
+$editortxt['Insert an image'] = 'Insert an image';
+$editortxt['E-mail:'] = 'E-mail:';
+$editortxt['Insert an email'] = 'Insert an email';
+$editortxt['URL:'] = 'URL:';
+$editortxt['Insert a link'] = 'Insert a link';
+$editortxt['Unlink'] = 'Unlink';
+$editortxt['More'] = 'More';
+$editortxt['Insert an emoticon'] = 'Insert an emoticon';
+$editortxt['Video URL:'] = 'Video URL:';
+$editortxt['Insert'] = 'Insert';
+$editortxt['Insert a YouTube video'] = 'Insert a YouTube video';
+$editortxt['Insert current date'] = 'Insert current date';
+$editortxt['Insert current time'] = 'Insert current time';
+$editortxt['Print'] = 'Print';
+$editortxt['Preformatted Text'] = 'Preformatted Text';
+$editortxt['View source'] = 'View source';