Changeset 290
- Timestamp:
- 08/05/05 10:04:54 (8 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 3 modified
-
htmlarea.js (modified) (3 diffs)
-
images/de (added)
-
images/de/bold.gif (added)
-
images/de/italic.gif (added)
-
images/de/underline.gif (added)
-
lang/de.js (modified) (1 diff)
-
plugins/ContextMenu/context-menu.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htmlarea.js
r278 r290 395 395 // - Enabled in text mode: if false the button gets disabled for text-only mode; otherwise enabled all the time. 396 396 this.btnList = { 397 bold: [ "Bold", ["ed_buttons_main.gif",3,2], false, function(e) {e.execCommand("bold");} ],398 italic: [ "Italic", ["ed_buttons_main.gif",2,2], false, function(e) {e.execCommand("italic");} ],399 underline: [ "Underline", ["ed_buttons_main.gif",2,0], false, function(e) {e.execCommand("underline");} ],400 strikethrough: [ "Strikethrough", ["ed_buttons_main.gif",3,0], false, function(e) {e.execCommand("strikethrough");} ],401 subscript: [ "Subscript", ["ed_buttons_main.gif",3,1], false, function(e) {e.execCommand("subscript");} ],402 superscript: [ "Superscript", ["ed_buttons_main.gif",2,1], false, function(e) {e.execCommand("superscript");} ],397 bold: [ "Bold", HTMLArea._lc({key: 'button_bold', string: ["ed_buttons_main.gif",3,2]}, 'HTMLArea'), false, function(e) {e.execCommand("bold");} ], 398 italic: [ "Italic", HTMLArea._lc({key: 'button_italic', string: ["ed_buttons_main.gif",2,2]}, 'HTMLArea'), false, function(e) {e.execCommand("italic");} ], 399 underline: [ "Underline", HTMLArea._lc({key: 'button_underline', string: ["ed_buttons_main.gif",2,0]}, 'HTMLArea'), false, function(e) {e.execCommand("underline");} ], 400 strikethrough: [ "Strikethrough", HTMLArea._lc({key: 'button_strikethrough', string: ["ed_buttons_main.gif",3,0]}, 'HTMLArea'), false, function(e) {e.execCommand("strikethrough");} ], 401 subscript: [ "Subscript", HTMLArea._lc({key: 'button_subscript', string: ["ed_buttons_main.gif",3,1]}, 'HTMLArea'), false, function(e) {e.execCommand("subscript");} ], 402 superscript: [ "Superscript", HTMLArea._lc({key: 'button_superscript', string: ["ed_buttons_main.gif",2,1]}, 'HTMLArea'), false, function(e) {e.execCommand("superscript");} ], 403 403 404 404 justifyleft: [ "Justify Left", ["ed_buttons_main.gif",0,0], false, function(e) {e.execCommand("justifyleft");} ], … … 5213 5213 if(_editor_lang == "en") 5214 5214 { 5215 ret = string; 5215 if(typeof string == 'object' && string.string) { 5216 ret = string.string; 5217 } else { 5218 ret = string; 5219 } 5216 5220 } 5217 5221 else … … 5232 5236 } 5233 5237 5234 if(typeof HTMLArea._lc_catalog[context][string] == 'undefined') 5238 var key; 5239 if(typeof string == 'object' && string.key) 5240 { 5241 key = string.key; 5242 } 5243 else 5244 { 5245 key = string; 5246 } 5247 5248 if(typeof HTMLArea._lc_catalog[context][key] == 'undefined') 5235 5249 { 5236 5250 if(context=='HTMLArea') 5237 5251 { 5238 ret = string; // Indicate it's untranslated 5252 // Indicate it's untranslated 5253 if(typeof string == 'object' && string.string) { 5254 ret = string.string; 5255 } else { 5256 ret = string; 5257 } 5239 5258 } 5240 5259 else 5241 5260 { 5242 5261 //if string is not found and context is not HTMLArea try if it is in HTMLArea 5243 ret = HTMLArea._lc(string, 'HTMLArea');5262 return HTMLArea._lc(string, 'HTMLArea', replace); 5244 5263 } 5245 5264 } 5246 5265 else 5247 5266 { 5248 ret = HTMLArea._lc_catalog[context][string]; 5249 } 5250 } 5251 5267 ret = HTMLArea._lc_catalog[context][key]; 5268 } 5269 } 5270 5271 if(typeof string == 'object' && string.replace) 5272 { 5273 replace = string.replace; 5274 } 5252 5275 if(typeof replace != "undefined") 5253 5276 { -
trunk/lang/de.js
r259 r290 130 130 "Positioning of this image": "Positionierung dieses Bildes", 131 131 "Image Preview:": "Bild Voransicht:", 132 "You must enter the URL": "Bitte geben Sie die URL ein" 132 "You must enter the URL": "Bitte geben Sie die URL ein", 133 134 "button_bold": "de/bold.gif", 135 "button_italic": "de/italic.gif", 136 "button_underline": "de/underline.gif" 137 133 138 } -
trunk/plugins/ContextMenu/context-menu.js
r262 r290 214 214 if (!/html|body/i.test(currentTarget.tagName)) 215 215 menu.push(null, 216 [ HTMLArea._lc( "Remove the $elem Element...", "ContextMenu", {elem: "<" + currentTarget.tagName + ">"}),216 [ HTMLArea._lc({string: "Remove the $elem Element...", replace: {elem: "<" + currentTarget.tagName + ">"}}, "ContextMenu"), 217 217 function() { 218 218 if (confirm(HTMLArea._lc("Please confirm that you want to remove this element:", "ContextMenu") + " " +
