Ignore:
Timestamp:
04/05/05 13:22:31 (14 years ago)
Author:
niko
Message:

ticket #98: new i18n-system:

  • changed every use of HTMLArea.I18N to HTMLArea._lc-function
  • implemented HTMLArea._loadlang
  • converted all language-files into the new system
  • converted all language-files into utf-8
  • removed all jp-* language-files except jp-utf8.js (and renamed it into jp.js)
  • removed all en.js-files (not needed by the new system)
  • removed all empty i18n-files
Location:
trunk/plugins/InsertAnchor
Files:
1 deleted
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/InsertAnchor/insert-anchor.js

    r38 r60  
    22  this.editor = editor; 
    33  var cfg = editor.config; 
    4   var tt = InsertAnchor.I18N; 
    54  var bl = InsertAnchor.btnList; 
    65  var self = this; 
     
    1615    else { 
    1716      var id = "IA-" + btn[0]; 
    18       cfg.registerButton(id, tt[id], editor.imgURL(btn[0] + ".gif", "InsertAnchor"), false, 
     17      cfg.registerButton(id, this._lc("Insert Anchor"), editor.imgURL(btn[0] + ".gif", "InsertAnchor"), false, 
    1918             function(editor, id) { 
    2019               // dispatch button press event 
     
    4140}; 
    4241 
     42InsertAnchor.prototype._lc = function(string) { 
     43    return HTMLArea._lc(string, 'InsertAnchor'); 
     44} 
     45 
    4346InsertAnchor.btnList = [ 
    4447  null, // separator 
     
    6063InsertAnchor.prototype.buttonPress = function(editor, id) { 
    6164  var anchor; 
    62   anchor = prompt(InsertAnchor.I18N["IA-anchorname"], ""); 
     65  anchor = prompt(this._lc("Anchor name"), ""); 
    6366  if (anchor == "" || anchor == null) { 
    6467    return; 
  • trunk/plugins/InsertAnchor/lang/de.js

    r56 r60  
    11// I18N constants 
    22 
    3 // LANG: "de", ENCODING: ISO-8859-1 
     3// LANG: "de", ENCODING: UTF-8 
    44// translated: Raimund Meyer xinha@ray-of-light.org 
    55 
    6 InsertAnchor.I18N = { 
    7   "IA-insert-anchor" : "Anker einfügen", 
    8   "IA-anchorname" : "Name (ID)" 
    9 }; 
     6{ 
     7  "Insert Anchor": "Anker einfÃŒgen", 
     8  "Anchor name": "Name (ID)" 
     9} 
  • trunk/plugins/InsertAnchor/lang/fr.js

    r58 r60  
    1313//       that states what encoding is necessary.) 
    1414 
    15 InsertAnchor.I18N = { 
    16   "IA-insert-anchor" : "Insérer ancre", 
    17   "IA-anchorname" : "Nom de l'ancre" 
    18 }; 
     15{ 
     16  "Insert Anchor": "Insérer ancre", 
     17  "Anchor name": "Nom de l'ancre" 
     18} 
Note: See TracChangeset for help on using the changeset viewer.