Ignore:
Timestamp:
02/19/18 07:35:49 (2 years ago)
Author:
gogo
Message:

Rebuild the translation system and language files.

Includes a few kludges to help lc_parse_strings.php detect translation strings.

See README_TRANSLATORS.TXT for description of the translation system.

Location:
trunk/modules/InlineStyler
Files:
23 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/InlineStyler/InlineStyler.js

    r1391 r1402  
    149149  var legend = doc.createElement("legend"); 
    150150  fieldset.appendChild(legend); 
    151   legend.innerHTML = Xinha._lc("Layout", "TableOperations"); 
     151  legend.innerHTML = Xinha._lc("Layout", "InlineStyler"); 
    152152  var table = doc.createElement("table"); 
    153153  fieldset.appendChild(table); 
     
    166166    td.className = "label"; 
    167167    tr.appendChild(td); 
    168     td.innerHTML = Xinha._lc("Float", "TableOperations") + ":"; 
     168    td.innerHTML = Xinha._lc("Float", "InlineStyler") + ":"; 
    169169    td = doc.createElement("td"); 
    170170    tr.appendChild(td); 
     
    175175     
    176176    options = ["None", "Left", "Right"]; 
     177    /* For lc_parse_strings.php 
     178    
     179      Xinha._lc("None", "InlineStyler"); 
     180      Xinha._lc("Left", "InlineStyler"); 
     181      Xinha._lc("Right", "InlineStyler"); 
     182       
     183    */ 
    177184    for (var i = 0; i < options.length; ++i)  
    178185    { 
     
    180187      var val = options[i].toLowerCase(); 
    181188      option = doc.createElement("option"); 
    182       option.innerHTML = Xinha._lc(Val, "TableOperations"); 
     189      option.innerHTML = Xinha._lc(Val, "InlineStyler"); 
    183190      option.value = val; 
    184191      if (Xinha.is_ie) { 
     
    197204  td.className = "label"; 
    198205  tr.appendChild(td); 
    199   td.innerHTML = Xinha._lc("Width", "TableOperations") + ":"; 
     206  td.innerHTML = Xinha._lc("Width", "InlineStyler") + ":"; 
    200207  td = doc.createElement("td"); 
    201208  tr.appendChild(td); 
     
    212219  this.inputs.aux['widthUnit'] = select; 
    213220  option = doc.createElement("option"); 
    214   option.innerHTML = Xinha._lc("percent", "TableOperations"); 
     221  option.innerHTML = Xinha._lc("percent", "InlineStyler"); 
    215222  option.value = "%"; 
    216223  option.selected = /%/.test(el.style.width); 
    217224  select.appendChild(option); 
    218225  option = doc.createElement("option"); 
    219   option.innerHTML = Xinha._lc("pixels", "TableOperations"); 
     226  option.innerHTML = Xinha._lc("pixels", "InlineStyler"); 
    220227  option.value = "px"; 
    221228  option.selected = /px/.test(el.style.width); 
     
    224231   
    225232  select.style.marginRight = "0.5em"; 
    226   td.appendChild(doc.createTextNode(Xinha._lc("Text align", "TableOperations") + ":")); 
     233  td.appendChild(doc.createTextNode(Xinha._lc("Text align", "InlineStyler") + ":")); 
    227234  select = doc.createElement("select"); 
    228235  select.name = this.dialog.createId("textAlign"); 
     
    235242    options.push("Char"); 
    236243  } 
     244   
     245  /* For lc_parse_strings.php 
     246   
     247    Xinha._lc("Left", "InlineStyler"); 
     248    Xinha._lc("Center", "InlineStyler"); 
     249    Xinha._lc("Right", "InlineStyler"); 
     250    Xinha._lc("Justify", "InlineStyler"); 
     251    Xinha._lc("-", "InlineStyler"); 
     252    Xinha._lc("Char", "InlineStyler"); 
     253     
     254  */ 
     255   
    237256  input = doc.createElement("input"); 
    238257  this.inputs.aux['textAlignChar'] = input; 
     
    248267    option = doc.createElement("option"); 
    249268    option.value = val; 
    250     option.innerHTML = Xinha._lc(Val, "TableOperations"); 
     269    option.innerHTML = Xinha._lc(Val, "InlineStyler"); 
    251270    option.selected = ((el.style.textAlign.toLowerCase() == val) || (el.style.textAlign == "" && Val == "-")); 
    252271    select.appendChild(option); 
     
    273292  td.className = "label"; 
    274293  tr.appendChild(td); 
    275   td.innerHTML = Xinha._lc("Height", "TableOperations") + ":"; 
     294  td.innerHTML = Xinha._lc("Height", "InlineStyler") + ":"; 
    276295  td = doc.createElement("td"); 
    277296  tr.appendChild(td); 
     
    288307  this.inputs.aux['heightUnit'] = select; 
    289308  option = doc.createElement("option"); 
    290   option.innerHTML = Xinha._lc("percent", "TableOperations"); 
     309  option.innerHTML = Xinha._lc("percent", "InlineStyler"); 
    291310  option.value = "%"; 
    292311  option.selected = /%/.test(el.style.height); 
    293312  select.appendChild(option); 
    294313  option = doc.createElement("option"); 
    295   option.innerHTML = Xinha._lc("pixels", "TableOperations"); 
     314  option.innerHTML = Xinha._lc("pixels", "InlineStyler"); 
    296315  option.value = "px"; 
    297316  option.selected = /px/.test(el.style.height); 
     
    300319   
    301320  select.style.marginRight = "0.5em"; 
    302   td.appendChild(doc.createTextNode(Xinha._lc("Vertical align", "TableOperations") + ":")); 
     321  td.appendChild(doc.createTextNode(Xinha._lc("Vertical align", "InlineStyler") + ":")); 
    303322  select = doc.createElement("select"); 
    304323  select.name = this.dialog.createId("verticalAlign"); 
     
    307326  td.appendChild(select); 
    308327  options = ["Top", "Middle", "Bottom", "Baseline", "-"]; 
     328  /* For lc_parse_strings.php 
     329    
     330   Xinha._lc("Top", "InlineStyler"); 
     331   Xinha._lc("Middle", "InlineStyler"); 
     332   Xinha._lc("Bottom", "InlineStyler"); 
     333   Xinha._lc("Baseline", "InlineStyler"); 
     334   Xinha._lc("-", "InlineStyler"); 
     335    
     336   */ 
    309337  for (var i = 0; i < options.length; ++i)  
    310338  { 
     
    313341    option = doc.createElement("option"); 
    314342    option.value = val; 
    315     option.innerHTML = Xinha._lc(Val, "TableOperations"); 
     343    option.innerHTML = Xinha._lc(Val, "InlineStyler"); 
    316344    option.selected = ((el.style.verticalAlign.toLowerCase() == val) || (el.style.verticalAlign == "" && Val == "-")); 
    317345    select.appendChild(option); 
     
    333361  var legend = doc.createElement("legend"); 
    334362  fieldset.appendChild(legend); 
    335   legend.innerHTML = Xinha._lc("CSS Style", "TableOperations"); 
     363  legend.innerHTML = Xinha._lc("CSS Style", "InlineStyler"); 
    336364  var table = doc.createElement("table"); 
    337365  fieldset.appendChild(table); 
     
    347375  tr.appendChild(td); 
    348376  td.className = "label"; 
    349   td.innerHTML = Xinha._lc("Background", "TableOperations") + ":"; 
     377  td.innerHTML = Xinha._lc("Background", "InlineStyler") + ":"; 
    350378  td = doc.createElement("td"); 
    351379  tr.appendChild(td); 
     
    360388  new Xinha.colorPicker.InputBinding(input) 
    361389   
    362   td.appendChild(doc.createTextNode(" " + Xinha._lc("Image URL", "TableOperations") + ": ")); 
     390  td.appendChild(doc.createTextNode(" " + Xinha._lc("Image URL", "InlineStyler") + ": ")); 
    363391  input = doc.createElement("input"); 
    364392  input.name = this.dialog.createId("backgroundImage"); 
     
    375403  tr.appendChild(td); 
    376404  td.className = "label"; 
    377   td.innerHTML = Xinha._lc("FG Color", "TableOperations") + ":"; 
     405  td.innerHTML = Xinha._lc("FG Color", "InlineStyler") + ":"; 
    378406  td = doc.createElement("td"); 
    379407  tr.appendChild(td); 
     
    398426  tr.appendChild(td); 
    399427  td.className = "label"; 
    400   td.innerHTML = Xinha._lc("Border", "TableOperations") + ":"; 
     428  td.innerHTML = Xinha._lc("Border", "InlineStyler") + ":"; 
    401429  td = doc.createElement("td"); 
    402430  tr.appendChild(td); 
     
    463491  input.style.marginRight = "0.5em"; 
    464492  var span = doc.createElement("span"); 
    465   span.innerHTML = Xinha._lc("pixels", "TableOperations"); 
     493  span.innerHTML = Xinha._lc("pixels", "InlineStyler"); 
    466494  td.appendChild(span); 
    467495  borderFields.push(span); 
     
    506534    var label = doc.createElement("label"); 
    507535    label.htmlFor = "f_st_borderCollapse"; 
    508     label.innerHTML = Xinha._lc("Collapsed borders", "TableOperations"); 
     536    label.innerHTML = Xinha._lc("Collapsed borders", "InlineStyler"); 
    509537    td.appendChild(label); 
    510538  } 
     
    515543  //    td.className = "label"; 
    516544  //    tr.appendChild(td); 
    517   //    td.innerHTML = Xinha._lc("Margin", "TableOperations") + ":"; 
     545  //    td.innerHTML = Xinha._lc("Margin", "InlineStyler") + ":"; 
    518546  //    td = doc.createElement("td"); 
    519547  //    tr.appendChild(td); 
     
    524552  //    td.appendChild(input); 
    525553  //    input.style.marginRight = "0.5em"; 
    526   //    td.appendChild(doc.createTextNode(Xinha._lc("Padding", "TableOperations") + ":")); 
     554  //    td.appendChild(doc.createTextNode(Xinha._lc("Padding", "InlineStyler") + ":")); 
    527555   
    528556  //    input = doc.createElement("input"); 
     
    533561  //    input.style.marginLeft = "0.5em"; 
    534562  //    input.style.marginRight = "0.5em"; 
    535   //    td.appendChild(doc.createTextNode(Xinha._lc("pixels", "TableOperations"))); 
     563  //    td.appendChild(doc.createTextNode(Xinha._lc("pixels", "InlineStyler"))); 
    536564   
    537565  return fieldset; 
Note: See TracChangeset for help on using the changeset viewer.