Jump to content

Nome del corriere traducibile


jager

Recommended Posts

Ciao a tutti,

 

è possibile fare una modifica in modo che in Back Office il nome del corriere sia traducibile?

 

Ora così com'è è traducibile solamente il "tempo di consegna"

 

io ho provato a fare una modifica che ovviamente non funziona... sarebbe stato troppo bello.

 

In pratica ho fatto come segue:

 

nella porzione di codice:

 

<label>'.$this->l('Company:').' </label>
<div class="margin-form">
<input type="text" size="25" name="name" value="'.htmlentities($this->getFieldValue($obj, 'name'), ENT_COMPAT, 'UTF-8').'" /> <sup>*</sup>
<span class="hint" name="help_box">'.$this->l('Allowed characters: letters, spaces and').' ().-<span class="hint-pointer"> </span></span>
<p class="clear">'.$this->l('Carrier name displayed during checkout').'<br />'.$this->l('With a value of 0, the carrier name will be replaced by the shop name').'</p>
</div>
<label>'.$this->l('Logo:').' </label>
<div class="margin-form">
<input type="file" name="logo" />
<p>'.$this->l('Upload logo from your computer').' (.gif, .jpg, .jpeg '.$this->l('or').' .png)</p>
</div>
<label>'.$this->l('Transit time:').' </label>
<div class="margin-form">';
foreach ($this->_languages as $language)
echo '
<div id="delay_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').'; float: left;">
<input type="text" size="41" maxlength="128" name="delay_'.$language['id_lang'].'" value="'.htmlentities($this->getFieldValue($obj, 'delay', (int)($language['id_lang'])), ENT_COMPAT, 'UTF-8').'" /> <sup>*</sup>
</div>';
$this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'delay', 'delay');
echo '
<p style="clear: both">'.$this->l('Time taken for product delivery; displayed during checkout').'</p>
</div>

 

 

 

Sotto a:

<label>'.$this->l('Company:').' </label>
<div class="margin-form">;

 

 

ho aggiunto:

 

<label>'.$this->l('Company:').' </label>
<div class="margin-form">;

foreach ($this->_languages as $language)
echo '
<div id="delay_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').'; float: left;">
<input type="text" size="41" maxlength="128" name="delay_'.$language['id_lang'].'" value="'.htmlentities($this->getFieldValue($obj, 'delay', (int)($language['id_lang'])), ENT_COMPAT, 'UTF-8').'" /> <sup>*</sup>
</div>';
$this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'delay', 'delay');
echo '

<input type="text" size="25" name="name" value="'.htmlentities($this->getFieldValue($obj, 'name'), ENT_COMPAT, 'UTF-8').'" /> <sup>*</sup>
<span class="hint" name="help_box">'.$this->l('Allowed characters: letters, spaces and').' ().-<span class="hint-pointer"> </span></span>
<p class="clear">'.$this->l('Carrier name displayed during checkout').'<br />'.$this->l('With a value of 0, the carrier name will be replaced by the shop name').'</p>
</div>
<label>'.$this->l('Logo:').' </label>
<div class="margin-form">
<input type="file" name="logo" />
<p>'.$this->l('Upload logo from your computer').' (.gif, .jpg, .jpeg '.$this->l('or').' .png)</p>
</div>
<label>'.$this->l('Transit time:').' </label>
<div class="margin-form">';
foreach ($this->_languages as $language)
echo '
<div id="delay_'.$language['id_lang'].'" style="display: '.($language['id_lang'] == $this->_defaultFormLanguage ? 'block' : 'none').'; float: left;">
<input type="text" size="41" maxlength="128" name="delay_'.$language['id_lang'].'" value="'.htmlentities($this->getFieldValue($obj, 'delay', (int)($language['id_lang'])), ENT_COMPAT, 'UTF-8').'" /> <sup>*</sup>
</div>';
$this->displayFlags($this->_languages, $this->_defaultFormLanguage, 'delay', 'delay');
echo '
<p style="clear: both">'.$this->l('Time taken for product delivery; displayed during checkout').'</p>
</div>

 

 

Sembrerebbe ovvio che anche quel campo debba essere traducibile invece non lo è purtroppo.... Qualcuno sa aiutarmi?

 

grazie in anticipo

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...