From 59cc7aad4a5e4b45e56c399bdc10c728fdea34bd Mon Sep 17 00:00:00 2001 From: Max Kremmel Date: Sat, 17 Mar 2007 11:45:36 +0000 Subject: some work on content translations - basics are working now. need to clean up included translation template in edit page. --- templates/i18n_service_icons.tpl | 5 +++++ templates/select_translations.tpl | 34 ++++++++++++++++++---------------- 2 files changed, 23 insertions(+), 16 deletions(-) create mode 100644 templates/i18n_service_icons.tpl (limited to 'templates') diff --git a/templates/i18n_service_icons.tpl b/templates/i18n_service_icons.tpl new file mode 100644 index 0000000..c3b241a --- /dev/null +++ b/templates/i18n_service_icons.tpl @@ -0,0 +1,5 @@ +{strip} + {foreach from=$i18nTranslations item=trans} + {biticon ipackage=languages iname="languages/`$trans.lang_code`" iexplain=$trans.full_name} + {/foreach} +{/strip} diff --git a/templates/select_translations.tpl b/templates/select_translations.tpl index 6c83006..869929d 100644 --- a/templates/select_translations.tpl +++ b/templates/select_translations.tpl @@ -1,17 +1,19 @@ {* don't show if this is the page creation *} -
- {formlabel label="Translations" for="to_id"} - {forminput} - - - -   -
- - {formhelp note="If you feel like translating this page into a different language, please select the correct language above and hit Translate."} - {/forminput} -
+{if $gContent->mContentId} +
+ {formlabel label="Translations" for="to_id"} + {forminput} + + + +   +
+ + {formhelp note="If you feel like translating this page into a different language, please select the correct language above and hit Translate."} + {/forminput} +
+{/if} -- cgit v1.3