// Fix Message in AdminTranslationsController when use sprintf()
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@15663 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
+4
-4
@@ -46,7 +46,7 @@
|
||||
{else}
|
||||
|
||||
<div class="hint" style="display:block;">
|
||||
{l s='Some sentences to translate uses this syntax: %s...: You must let it in your translations.' sprintf='%d, %s, %1$s, %2$d'}
|
||||
{l s='Some sentences to translate use this syntax: %s... These are variables, and PrestaShop take care of replacing them before displaying your translation. You must leave these in your translations, and place them appropriately in your sentence.' sprintf='%d, %s, %1$s, %2$d'}
|
||||
</div><br /><br />
|
||||
|
||||
<p>
|
||||
@@ -58,7 +58,7 @@
|
||||
$(document).ready(function(){
|
||||
$('a.useSpecialSyntax').click(function(){
|
||||
var syntax = $(this).find('img').attr('alt');
|
||||
$('#BoxUseSpecialSyntax .syntax span').html(syntax);
|
||||
$('#BoxUseSpecialSyntax .syntax span').html(syntax+".");
|
||||
$('#BoxUseSpecialSyntax').toggle(1000);
|
||||
});
|
||||
$('#BoxUseSpecialSyntax').click(function(){
|
||||
@@ -70,8 +70,8 @@
|
||||
<div id="BoxUseSpecialSyntax">
|
||||
<div class="warn">
|
||||
<p class="syntax">
|
||||
{l s='This expression uses this special syntax:'} <span>%d</span><br />
|
||||
{l s='You must use this syntax in your tanslations. Here are several examples of use:'}
|
||||
{l s='This expression uses this special syntax:'} <span>%d.</span><br />
|
||||
{l s='You must use this syntax in your translations. Here are several examples:'}
|
||||
</p>
|
||||
<ul>
|
||||
<li><em>There are <strong>%d</strong> products</em> ("<strong>%d</strong>" {l s='will be replaced by a number'}).</li>
|
||||
|
||||
+4
-4
@@ -48,7 +48,7 @@
|
||||
<div class="hint" style="display:block;">
|
||||
<ul style="margin-left:30px;list-style-type:disc;">
|
||||
<li>{l s='Click on the titles to open fieldsets'}.</li>
|
||||
<li>{l s='Some sentences to translate uses this syntax: %s...: You must let it in your translations.' sprintf='%d, %s, %1$s, %2$d'}</li>
|
||||
<li>{l s='Some sentences to translate use this syntax: %s... These are variables, and PrestaShop take care of replacing them before displaying your translation. You must leave these in your translations, and place them appropriately in your sentence.' sprintf='%d, %s, %1$s, %2$d'}</li>
|
||||
</ul>
|
||||
</div><br /><br />
|
||||
|
||||
@@ -68,7 +68,7 @@
|
||||
$(document).ready(function(){
|
||||
$('a.useSpecialSyntax').click(function(){
|
||||
var syntax = $(this).find('img').attr('alt');
|
||||
$('#BoxUseSpecialSyntax .syntax span').html(syntax);
|
||||
$('#BoxUseSpecialSyntax .syntax span').html(syntax+".");
|
||||
$('#BoxUseSpecialSyntax').toggle(1000);
|
||||
});
|
||||
$('#BoxUseSpecialSyntax').click(function(){
|
||||
@@ -80,8 +80,8 @@
|
||||
<div id="BoxUseSpecialSyntax">
|
||||
<div class="warn">
|
||||
<p class="syntax">
|
||||
{l s='This expression uses this special syntax:'} <span>%d</span><br />
|
||||
{l s='You must use this syntax in your tanslations. Here are several examples of use:'}
|
||||
{l s='This expression uses this special syntax:'} <span>%d.</span><br />
|
||||
{l s='You must use this syntax in your translations. Here are several examples:'}
|
||||
</p>
|
||||
<ul>
|
||||
<li><em>There are <strong>%d</strong> products</em> ("<strong>%d</strong>" {l s='will be replaced by a number'}).</li>
|
||||
|
||||
+28
@@ -50,6 +50,7 @@
|
||||
<div class="hint" style="display:block;">
|
||||
<ul style="margin-left:30px;list-style-type:disc;">
|
||||
<li>{l s='Click on the titles to open fieldsets'}.</li>
|
||||
<li>{l s='Some sentences to translate use this syntax: %s... These are variables, and PrestaShop take care of replacing them before displaying your translation. You must leave these in your translations, and place them appropriately in your sentence.' sprintf='%d, %s, %1$s, %2$d'}</li>
|
||||
</ul>
|
||||
</div><br /><br />
|
||||
|
||||
@@ -60,6 +61,33 @@
|
||||
<input type="hidden" name="theme" value="{$theme}" />
|
||||
<input type="submit" id="{$table}_form_submit_btn" name="submitTranslations{$type|ucfirst}" value="{l s='Update translations'}" class="button" />
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
$('a.useSpecialSyntax').click(function(){
|
||||
var syntax = $(this).find('img').attr('alt');
|
||||
$('#BoxUseSpecialSyntax .syntax span').html(syntax+".");
|
||||
$('#BoxUseSpecialSyntax').toggle(1000);
|
||||
});
|
||||
$('#BoxUseSpecialSyntax').click(function(){
|
||||
$('#BoxUseSpecialSyntax').toggle(1000);
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
<div id="BoxUseSpecialSyntax">
|
||||
<div class="warn">
|
||||
<p class="syntax">
|
||||
{l s='This expression uses this special syntax:'} <span>%d.</span><br />
|
||||
{l s='You must use this syntax in your translations. Here are several examples:'}
|
||||
</p>
|
||||
<ul>
|
||||
<li><em>There are <strong>%d</strong> products</em> ("<strong>%d</strong>" {l s='will be replaced by a number'}).</li>
|
||||
<li><em>List of pages in <strong>%s</strong>:</em> ("<strong>%s</strong>" {l s='will be replaced by a string'}).</li>
|
||||
<li><em>Feature: <strong>%1$s</strong> (<strong>%2$d</strong> values)</em> ("<strong>n$</strong>" {l s='is used for the order of the arguments'}).</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<h2>{l s='Core e-mails:'}</h2>
|
||||
<p class="preference_description">{l s='List of emails which are in the folder'} <strong>"mails/{$lang|strtolower}/"</strong></p>
|
||||
{$mail_content}
|
||||
|
||||
+4
-4
@@ -48,7 +48,7 @@
|
||||
<div class="hint" style="display:block;">
|
||||
<ul style="margin-left:30px;list-style-type:disc;">
|
||||
<li>{l s='Click on the titles to open fieldsets'}.</li>
|
||||
<li>{l s='Some sentences to translate uses this syntax: %s...: You must let it in your translations.' sprintf='%d, %s, %1$s, %2$d'}</li>
|
||||
<li>{l s='Some sentences to translate use this syntax: %s... These are variables, and PrestaShop take care of replacing them before displaying your translation. You must leave these in your translations, and place them appropriately in your sentence.' sprintf='%d, %s, %1$s, %2$d'}</li>
|
||||
</ul>
|
||||
</div><br /><br />
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
$(document).ready(function(){
|
||||
$('a.useSpecialSyntax').click(function(){
|
||||
var syntax = $(this).find('img').attr('alt');
|
||||
$('#BoxUseSpecialSyntax .syntax span').html(syntax);
|
||||
$('#BoxUseSpecialSyntax .syntax span').html(syntax+".");
|
||||
$('#BoxUseSpecialSyntax').toggle(1000);
|
||||
});
|
||||
$('#BoxUseSpecialSyntax').click(function(){
|
||||
@@ -73,8 +73,8 @@
|
||||
<div id="BoxUseSpecialSyntax">
|
||||
<div class="warn">
|
||||
<p class="syntax">
|
||||
{l s='This expression uses this special syntax:'} <span>%d</span><br />
|
||||
{l s='You must use this syntax in your tanslations. Here are several examples of use:'}
|
||||
{l s='This expression uses this special syntax:'} <span>%d.</span><br />
|
||||
{l s='You must use this syntax in your translations. Here are several examples:'}
|
||||
</p>
|
||||
<ul>
|
||||
<li><em>There are <strong>%d</strong> products</em> ("<strong>%d</strong>" {l s='will be replaced by a number'}).</li>
|
||||
|
||||
Reference in New Issue
Block a user