From faafe4167acb6d86ed5b5b79e5a1763e5b1b9e37 Mon Sep 17 00:00:00 2001 From: Sarah Lorenzini Date: Tue, 30 Jul 2013 14:56:39 +0200 Subject: [PATCH] // update localization tab --- .../translations/helpers/view/main.tpl | 255 +++++++++++------- .../helpers/view/translation_form.tpl | 6 +- 2 files changed, 156 insertions(+), 105 deletions(-) diff --git a/admin-dev/themes/default/template/controllers/translations/helpers/view/main.tpl b/admin-dev/themes/default/template/controllers/translations/helpers/view/main.tpl index 97bc4921b..549df1f24 100644 --- a/admin-dev/themes/default/template/controllers/translations/helpers/view/main.tpl +++ b/admin-dev/themes/default/template/controllers/translations/helpers/view/main.tpl @@ -93,8 +93,7 @@ - {* TO DO - ajouter la langue*} - {*
+
{foreach from=$languages item=language}
@@ -116,135 +115,187 @@
{/foreach} -
*} - {foreach $languages as $language} +
+ {*{foreach $languages as $language} {$language['iso_code']} - {/foreach} + {/foreach}*} -
+

{l s='Add / Update a language'}

-
-

{l s='You can add or update a language directly from the PrestaShop website here:'}

-
- {l s='If you choose to update an existing language pack, all of your previous customization\'s in the theme named "Default" will be lost. This includes Front Office expressions and default email templates.'} +
+
+

+ {l s='You can add or update a language directly from the PrestaShop website here:'}
+ {l s='If you choose to update an existing language pack, all of your previous customization\'s in the theme named "Default" will be lost. This includes Front Office expressions and default email templates.'} +

+ {if $packs_to_update || $packs_to_install} + +
+ +
+ + {else} +

{l s='Cannot connect to the PrestaShop website to get the language list.'}

+ {/if}
- {if $packs_to_update || $packs_to_install} -
{l s='Please select the language you want to add or update:'} -   - +
+
+
+ +
+
+

+ + {l s='Import a language pack manually'} +

+
+
+

+ {l s='If the language file format is: isocode.gzip (e.g. us.gzip), and the language corresponding to this package does not exist, it will automatically be created.'} + {l s='Warning: This will replace all of the existing data inside the destination language.'} +

+
+ +
+ +
- {else} -

{l s='Cannot connect to the PrestaShop website to get the language list.'}

- {/if} -
-
-


- -
-
- - {l s='Import a language pack manually'} - -
-

- {l s='If the language file format is: isocode.gzip (e.g. us.gzip), and the language corresponding to this package does not exist, it will automatically be created.'} - {l s='Warning: This will replace all of the existing data inside the destination language.'} -

-

 

-

- - -

-

+
+ +
+ +
+
+
+
+ +
+
+
-

-
+
- {l s='Export a language'} -

{l s='Export data from one language to a file (language pack).'}
- {l s='Choose which theme you\'d like to export your translations to. '}
- -     -    - -

-
-

-
-
- {l s='Copy'} -

{l s='Copies data from one language to another.'}
- {l s='Warning: This will replace all of the existing data inside the destination language.'}
- {l s='If necessary'}, {l s='you must first create a new language.'}.

-
-

-

{l s='From:'}
- {foreach $languages as $language} {/foreach} -     - * -

-

-

{l s='To:'}
- -     - {foreach $themes as $theme} {/foreach} +
+ +
+
+ +
+
+
+
+ +
+
+

+ + {l s='Copy'} +

+

+ {l s='Copies data from one language to another.'}
+ {l s='Warning: This will replace all of the existing data inside the destination language.'}
+ {l s='If necessary'}, {l s='you must first create a new language.'}. +

+
+
+ +
+ +
+
+ +
+
+
+ +
+ +
+
+ +
+
+
+
+
+ +
+
+
+

+ * + {l s='Language files must be complete to allow copying of translations.'}

-
- -
-

* {l s='Language files must be complete to allow copying of translations.'}

{/block} \ No newline at end of file diff --git a/admin-dev/themes/default/template/controllers/translations/helpers/view/translation_form.tpl b/admin-dev/themes/default/template/controllers/translations/helpers/view/translation_form.tpl index 08d4c5f19..9f799a6a1 100644 --- a/admin-dev/themes/default/template/controllers/translations/helpers/view/translation_form.tpl +++ b/admin-dev/themes/default/template/controllers/translations/helpers/view/translation_form.tpl @@ -49,7 +49,7 @@
  • {l s='Click on titles to open fieldsets'}.
  • {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'}
  • -

    +

    {l s='Expressions to translate: %d.' sprintf=$count}
    @@ -108,7 +108,7 @@ {if $key|strlen < $textarea_sized} + value="{$value.trad|regex_replace:'/"/':'"'|stripslashes}"' /> {else}