Ignore:
Timestamp:
2012/12/28 22:39:21 (11 years ago)
Author:
Seasoft
Message:

#1988 (国際化テンプレート:エスケープ処理) 現状コミット。

  • ja.po は、data/Smarty/templates/admin/ownersstore/plugin.tpl に対応する部分のみ、局所的に変更しています。
    • data/Smarty/templates/admin/ownersstore/plugin.tpl にコメントを記載している「案1」及び「案2」の方向性については協議中。
  • 上記以外では、po ファイルの改修が終わるまで、HTML エスケープが過剰に行なわれます。(主に、入力必須マークの出力が正しく行なわれないといった状況が生じます。)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-multilang/data/Smarty/templates/admin/ownersstore/plugin.tpl

    r22130 r22186  
    3434 
    3535            if(mode === 'disable') { 
    36                 result = window.confirm('<!--{t string="tpl_458"}-->'); 
     36                result = window.confirm('<!--{t string="tpl_458" escape="j"}-->'); 
    3737                if(result === false) { 
    3838                    $(event.target).attr("checked", "checked"); 
    3939                } 
    4040            } else if(mode === 'enable') { 
    41                 result = window.confirm('<!--{t string="tpl_459"}-->'); 
     41                result = window.confirm('<!--{t string="tpl_459" escape="j"}-->'); 
    4242                if(result === false) { 
    4343                    $(event.target).attr("checked", ""); 
     
    5555     */ 
    5656    function remoteException(XMLHttpRequest, textStatus, errorThrown) { 
    57         alert('<!--{t string="tpl_460"}-->'); 
     57        alert('<!--{t string="tpl_460" escape="j"}-->'); 
    5858    } 
    5959 
     
    8080     */ 
    8181    function install() { 
    82         if (window.confirm('<!--{t string="tpl_461" kaigyo_escape=true}-->')){ 
     82        if (window.confirm('<!--{t string="tpl_461" escape="j"}-->')){ 
    8383            fnModeSubmit('install','',''); 
    8484        } 
     
    8989     */ 
    9090    function uninstall(plugin_id, plugin_code) { 
    91         if (window.confirm('<!--{t string="tpl_462"}-->')){ 
     91        if (window.confirm('<!--{t string="tpl_462" escape="j"}-->')){ 
    9292            fnSetFormValue('plugin_id', plugin_id); 
    9393            fnModeSubmit('uninstall', 'plugin_code', plugin_code); 
     
    9999     */ 
    100100    function update(plugin_id, plugin_code) { 
    101         if (window.confirm('<!--{t string="tpl_463"}-->')){ 
     101        if (window.confirm('<!--{t string="tpl_463" escape="j"}-->')){ 
    102102            removeUpdateFile('update_file_' + plugin_id); 
    103103            fnSetFormValue('plugin_id', plugin_id); 
     
    128128    <h2><!--{t string="tpl_464"}--></h2> 
    129129    <table class="form"> 
     130        <!--{* 案1 *}--> 
    130131        <tr> 
    131             <th><!--{t string="tpl_465"}--></th> 
     132            <th><!--{t string="tpl_465"}--> <!--{t string="<require>"}--></th> 
     133            <td> 
     134                <!--{assign var=key value="plugin_file"}--> 
     135                <span class="attention"><!--{$arrErr[$key]}--></span> 
     136                <input type="file" name="<!--{ $key }-->" class="box45" size="43"  style="<!--{$arrErr[$key]|sfGetErrorColor}--> <!--{if $arrErr[$key]}--> background-color:<!--{$smarty.const.ERR_COLOR|h}--><!--{/if}-->"> 
     137                <a class="btn-action" href="javascript:;" onclick="install(); return false;"><span class="btn-next"><!--{t string="tpl_466"}--></span></a> 
     138            </td> 
     139        </tr> 
     140        <!--{* 案2 *}--> 
     141        <tr> 
     142            <th><!--{t string="tpl_465"}--> <span class='attention'><!--{t string="require_mark"}--></span></th> 
    132143            <td> 
    133144                <!--{assign var=key value="plugin_file"}--> 
Note: See TracChangeset for help on using the changeset viewer.