Ignore:
Timestamp:
04/05/05 13:22:31 (15 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/CharacterMap
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/plugins/CharacterMap/character-map.js

    r20 r60  
    1414        var toolbar = cfg.toolbar; 
    1515        var self = this; 
    16         var i18n = CharacterMap.I18N; 
    1716         
    1817        cfg.registerButton({ 
    1918                id       : "insertcharacter", 
    20                 tooltip  : i18n["CharacterMapTooltip"], 
     19                tooltip  : this._lc("Insert special character"), 
    2120                image    : editor.imgURL("ed_charmap.gif", "CharacterMap"), 
    2221                textMode : false, 
     
    3837        if (found) 
    3938            a.splice(j, 0, "insertcharacter"); 
    40         else{                 
    41             toolbar[1].splice(0, 0, "separator"); 
    42             toolbar[1].splice(0, 0, "insertcharacter"); 
     39        else { 
     40            if(toolbar[1]) i = 1; else i = 0; 
     41            toolbar[i].splice(0, 0, "separator"); 
     42                toolbar[i].splice(0, 0, "insertcharacter"); 
    4343        } 
    4444}; 
     
    5454        license       : "htmlArea" 
    5555}; 
     56 
     57CharacterMap.prototype._lc = function(string) { 
     58    return HTMLArea._lc(string, 'CharacterMap'); 
     59} 
    5660 
    5761CharacterMap.prototype.buttonPress = function(editor) { 
  • trunk/plugins/CharacterMap/lang/de.js

    r20 r60  
    11// I18N constants 
    22 
    3 // LANG: "de", ENCODING: UTF-8 | ISO-8859-1 
     3// LANG: "de", ENCODING: UTF-8 
    44// Sponsored by http://www.systemconcept.de 
    55// Author: Holger Hees, <hhees@systemconcept.de> 
     
    99// This notice MUST stay intact for use (see license.txt). 
    1010 
    11 CharacterMap.I18N = { 
    12         "CharacterMapTooltip"       : "Sonderzeichen einfügen", 
    13         "Insert special character"  : "Sonderzeichen einfügen", 
    14         "HTML value:"               : "HTML Wert:", 
    15         "Cancel"                    : "Abbrechen" 
    16 }; 
     11{ 
     12  "Insert special character": "Sonderzeichen einfÃŒgen", 
     13  "Insert special character": "Sonderzeichen einfÃŒgen", 
     14  "HTML value:": "HTML Wert:", 
     15  "Cancel": "Abbrechen" 
     16} 
  • trunk/plugins/CharacterMap/lang/fr.js

    r58 r60  
    1313//       that states what encoding is necessary.) 
    1414 
    15 CharacterMap.I18N = { 
    16   "CharacterMapTooltip"       : "Insérer caractÚre spécial", 
    17   "Insert special character"  : "Insérer caractÚre spécial", 
    18   "HTML value:"               : "entité HTML:", 
    19   "Cancel"                    : "Annuler" 
    20 }; 
     15{ 
     16  "Insert special character": "Insérer caractÚre spécial", 
     17  "Insert special character": "Insérer caractÚre spécial", 
     18  "HTML value:": "entité HTML:", 
     19  "Cancel": "Annuler" 
     20} 
  • trunk/plugins/CharacterMap/lang/nl.js

    r56 r60  
    11// I18N constants 
    22 
    3 // LANG: "nl", ENCODING: UTF-8 | ISO-8859-1 
     3// LANG: "nl", ENCODING: UTF-8 
    44// Sponsored by http://www.systemconcept.de 
    55// Author: Holger Hees, <hhees@systemconcept.de> 
     
    99// This notice MUST stay intact for use (see license.txt). 
    1010 
    11 CharacterMap.I18N = { 
    12         "CharacterMapTooltip"       : "Speciaal character invoegen", 
    13         "Insert special character"  : "Speciaal character invoegen", 
    14         "HTML value:"               : "HTML waarde:", 
    15         "Cancel"                    : "Annuleer" 
    16 }; 
     11{ 
     12  "Insert special character": "Speciaal character invoegen", 
     13  "Insert special character": "Speciaal character invoegen", 
     14  "HTML value:": "HTML waarde:", 
     15  "Cancel": "Annuleer" 
     16} 
  • trunk/plugins/CharacterMap/popups/select_character.html

    r20 r60  
    4646// Original Author - Bernhard Pfeifer novocaine@gmx.net 
    4747 
    48 CharacterMap = window.opener.CharacterMap; // load the CharacterMap plugin and lang file ;-) 
     48HTMLArea = window.opener.HTMLArea; 
    4949window.resizeTo(480, 300); 
    5050// center on parent 
     
    6464function Init()                                                         // run on page load 
    6565{ 
    66    __dlg_translate(CharacterMap.I18N); 
     66   __dlg_translate('CharacterMap'); 
    6767   __dlg_init(); 
    6868    document.body.onkeypress = _CloseOnEsc; 
Note: See TracChangeset for help on using the changeset viewer.