Page 3 of 7

Posted: Mon 27. Mar 2006, 14:39
by erich_k4
update 27.3.2006

+ added localization
help on translation would be appreciated , see below
german: ready,
english: ready (if you find some mistakes please tell me)


+ added uninstall option for templatesets

Image


Language constants:

Code: Select all

//---------------------------------------------
//
// TEMPLATESETS IM / EXPORT
//
//---------------------------------------------
$BL['be_admin_tmpl_em_templateinstalled']            = 'template import successful!';
$BL['be_admin_tmpl_em_otherversion']                 = '<p>This template file was exported with a different version of phpwcms!</p>
                                                        There might be some incompatible issues!<br>
                                                        <p>Your phpwcms version:<b>%s</b><br>
                                                        Imported file version:<b>%s</b></p>';
$BL['be_admin_tmpl_em_backlinktext']                 = 'back to template section';
$BL['be_admin_tmpl_em_applyconfirm']                 = 'Do you want to apply Template [ "+%s+" ] for the whole site?\n\nBe aware if you use different templates in your site, applying this template\nwill override all templatesettings in your article structure!';
$BL['be_admin_tmpl_em_tmplinfo']                     = 'template information';
$BL['be_admin_tmpl_em_applytmpl']                    = 'apply template';
$BL['be_admin_tmpl_em_install']                      = 'install / uninstall template sets';
$BL['be_admin_tmpl_em_readme']                       = 'Readme';
$BL['be_admin_tmpl_em_password']                     = 'template password';
$BL['be_admin_tmpl_em_applytmplafter']               = 'apply template after install';
$BL['be_admin_tmpl_em_tmplerror']                    = 'Template error';
$BL['be_admin_tmpl_em_tmplerrortxt']                 = 'Templatefile is missing!';
$BL['be_admin_tmpl_em_uninstallcpt']                 = 'Uninstall template';
$BL['be_admin_tmpl_em_impoptions']                   = 'import options';
$BL['be_admin_tmpl_em_availabletmpls']               = 'available templatesets';
$BL['be_admin_tmpl_em_singletmplimport']             = 'single template file import';
$BL['be_admin_tmpl_em_installtmpl']                  = 'Install template';
$BL['be_admin_tmpl_em_tmplunistalled']               = 'template <b>%s</b> and associated pagelayout successfully uninstalled!';
$BL['be_admin_tmpl_em_tmplnameinuse']                = 'template name allready used, please select another template name!';
$BL['be_admin_tmpl_em_singletmplfile']               = 'template file to import';
$BL['be_admin_tmpl_em_exportcpt']                    = 'Please select the exporttype below:';
$BL['be_admin_tmpl_em_exporttmplonly']               = 'template only';
$BL['be_admin_tmpl_em_exporttmplset']                = 'template, assigned page layout and assigned css file';
$BL['be_admin_tmpl_em_exporttmplheader']             = 'template export';
$BL['be_admin_tmpl_em_tmpltoexpot']                  = 'template to export:';
$BL['be_admin_tmpl_em_tmplpassword']                 = '<b>template password</b><p>Note:<br>leave this field empty if you want to create an unsecured template, otherwise fill out the field to create an secured template!';
$BL['be_admin_tmpl_em_exportbtncpt']                 = 'export template';
$BL['be_admin_tmpl_em_exportsucces']                 = 'template export successful!';
$BL['be_admin_tmpl_em_exportfilesize']               = 'Filesize:';
$BL['be_admin_tmpl_em_exportdownloadlnk']            = 'Download here';
$BL['be_admin_tmpl_em_wrongpassword']                = 'wrong password for template <b>%s</b> or invalid template data!';
//---------------------------------------------
//
// PAGELAYOUTS COPY / IM / EXPORT
//
//---------------------------------------------
$BL['be_admin_page_title_copy']                      = 'frontend setup: copy page layout';
$BL['be_admin_page_em_layoutnameinuse']              = 'pagelayout name allready in use, please select a different name!';
$BL['be_admin_page_em_install']                      = 'import page layout';
$BL['be_admin_page_em_importcpt']                    = 'frontend setup: page layout import';
$BL['be_admin_page_em_layouttoimport']               = 'page layout file to import';
$BL['be_admin_page_em_exportsuccess']                = 'page layout export successful!';
$BL['be_admin_page_em_backlinktext']                 = 'back to page layout section';

Posted: Mon 27. Mar 2006, 20:27
by sustia
Really really great Erich :D
This new release is disposable for download?

Posted: Mon 27. Mar 2006, 21:26
by culda_a
That's great..... I have install it and export a template but when I try to import it I get this message:

Upload failed:
Array ( [filename] => Array ( [name] => Olivers template-EN.tmpldat [type] => application/octet-stream [tmp_name] => /tmp/phpWJrJEn [error] => 0 [size] => 6395 ) )


:?: :!: - did I do something wrong when I add this MOD???

Posted: Mon 27. Mar 2006, 22:13
by erich_k4
culda_a wrote:That's great..... I have install it and export a template but when I try to import it I get this message:

Upload failed:
Array ( [filename] => Array ( [name] => Olivers template-EN.tmpldat [type] => application/octet-stream [tmp_name] => /tmp/phpWJrJEn [error] => 0 [size] => 6395 ) )


:?: :!: - did I do something wrong when I add this MOD???

change line 127 in admin.templates.tmpl.php to

Code: Select all

$uploaddir = $phpwcms["DOC_ROOT"].$phpwcms["file_path"];
this bug exists in admin.pagelayout.tmpl.php also:

so please change line 127 in admin.pagelayout.tmpl.php to

Code: Select all

$uploaddir = $phpwcms["DOC_ROOT"].$phpwcms["file_path"];

Posted: Tue 28. Mar 2006, 00:50
by culda_a
When I try to export the Page layout I get this message:

Can't create the output file.

Posted: Tue 28. Mar 2006, 00:51
by culda_a
culda_a wrote:When I try to export the Page layout I get this message:

Can't create the output file.
I see that the export from template make this also :roll:

Posted: Tue 28. Mar 2006, 09:19
by erich_k4
culda_a wrote:
culda_a wrote:When I try to export the Page layout I get this message:

Can't create the output file.
I see that the export from template make this also :roll:
Check the folder permission for /phpwcms_filestorage/
you will need write access here

French and Spanish

Posted: Tue 28. Mar 2006, 10:25
by Kosse
Hi Erich, for languages:

Spanish:

Code: Select all

//---------------------------------------------
//
// TEMPLATESETS IM / EXPORT
//
//---------------------------------------------
$BL['be_admin_tmpl_em_templateinstalled']            = 'importaci&oacute;n del modelo exitosa!';
$BL['be_admin_tmpl_em_otherversion']                 = '
<p>Este modelo fue exportado con una versi&oacute;n distinta de phpwcms !</p>
<br />
Pueden existir problemas de compatibilidad!<br>
<br />
<p>Su versi&oacute;n de phpwcms:<b>%s</b><br>
  <br />
Versi&oacute;n importadad:<b>%s</b></p>
';
$BL['be_admin_tmpl_em_backlinktext']                 = 'volver &agrave; la secci&oacute;n de modelos';
$BL['be_admin_tmpl_em_applyconfirm']                 = 'Quiere aplicar el modelo  [ +%s+ ] para todo su sitio?\n\nSi desea usar modelos distintos, estos ser&aacute;n reemplazados por la version por defecto en su estructure de articulos!';
$BL['be_admin_tmpl_em_tmplinfo']                     = 'informaci&oacute;n del modelo';
$BL['be_admin_tmpl_em_applytmpl']                    = 'aplicar el modelo';
$BL['be_admin_tmpl_em_install']                      = 'instalar / desintalar los modelos';
$BL['be_admin_tmpl_em_readme']                       = 'L&eacute;ame';
$BL['be_admin_tmpl_em_password']                     = 'Contrase&ntilde;a del modelo';
$BL['be_admin_tmpl_em_applytmplafter']               = 'Aplicar el modelo despu&eacute;s de la instalaci&oacute;n';
$BL['be_admin_tmpl_em_tmplerror']                    = 'Error de modelo';
$BL['be_admin_tmpl_em_tmplerrortxt']                 = 'Falta el fichero del modelo!';
$BL['be_admin_tmpl_em_uninstallcpt']                 = 'Desinstalar el modelo';
$BL['be_admin_tmpl_em_impoptions']                   = 'opci&oacute;n de importaci&oacute;n';
$BL['be_admin_tmpl_em_availabletmpls']               = 'modelos existentes';
$BL['be_admin_tmpl_em_singletmplimport']             = 'importaci&oacute;n del fichero de modelo';
$BL['be_admin_tmpl_em_installtmpl']                  = 'Instalaci&oacute;n del modelo';
$BL['be_admin_tmpl_em_tmplunistalled']               = 'modelo <b>%s</b> y composici&oacute;n de p&aacute;gina desinstaladas con &eacute;xito!';
$BL['be_admin_tmpl_em_tmplnameinuse']                = 'nombre del modelo ya utilizado, por favor escoja otro!';
$BL['be_admin_tmpl_em_singletmplfile']               = 'fichero del modelo para importar';
$BL['be_admin_tmpl_em_exportcpt']                    = 'Por favor seleccione la exportaci&oacute;n deseada:';
$BL['be_admin_tmpl_em_exporttmplonly']               = 'solo el modelo';
$BL['be_admin_tmpl_em_exporttmplset']                = 'modelo, composici&oacute;n de p&aacute;gina y fichero css';
$BL['be_admin_tmpl_em_exporttmplheader']             = 'exportaci&oacute;n del modelo';
$BL['be_admin_tmpl_em_tmpltoexpot']                  = 'modelo para exportar:';
$BL['be_admin_tmpl_em_tmplpassword']                 = '<b>contrase&ntilde;a del modelo</b>
<p>Nota:<br>
  deje este campo vac&iacute;o si no desea un modelo con clave, sino llene los campos correspondientes!';
$BL['be_admin_tmpl_em_exportbtncpt']                 = 'exportar el modelo';
$BL['be_admin_tmpl_em_exportsucces']                 = 'exportaci&oacute;n del modelo exitosa!';
$BL['be_admin_tmpl_em_exportfilesize']               = 'Tama&ntilde;o del fichero:';
$BL['be_admin_tmpl_em_exportdownloadlnk']            = 'Descargue aqui';
$BL['be_admin_tmpl_em_wrongpassword']                = 'contrase&ntilde;a no v&aacute;lida par el modelo <b>%s</b> o datos del modelo incorrectos!';
//---------------------------------------------
//
// PAGELAYOUTS COPY / IM / EXPORT
//
//---------------------------------------------
$BL['be_admin_page_title_copy']                      = 'frontend: copiar la composici&oacute;n de p&aacute;gina';
$BL['be_admin_page_em_layoutnameinuse']              = 'nombre de la composici&oacute;n de p&aacute;gina ya usado, por favor escoja otro nombre!';
$BL['be_admin_page_em_install']                      = 'importaci&oacute;n de la composici&oacute;n de p&aacute;gina';
$BL['be_admin_page_em_importcpt']                    = 'frontend: importar la composici&oacute;n de p&aacute;gina';
$BL['be_admin_page_em_layouttoimport']               = 'fichero de la composici&oacute;n de p&aacute;gina para importar ';
$BL['be_admin_page_em_exportsuccess']                = 'exportaci&oacute;n de la composici&oacute;n de p&aacute;gina exitosa !';
$BL['be_admin_page_em_backlinktext']                 = 'volver a la composici&oacute;n de p&aacute;gina';
French:

Code: Select all

//---------------------------------------------
//
// TEMPLATESETS IM / EXPORT
//
//---------------------------------------------
$BL['be_admin_tmpl_em_templateinstalled']            = 'importation du mod&egrave;le r&eacute;ussie!';
  $BL['be_admin_tmpl_em_otherversion']                 = '<p>Ce mod&egrave;le &eacute;t&eacute; export&eacute; avec une version diff&eacute;rente de phpwcms!</p><br />
Ils peut exister des probl&egrave;mes de compatibilit&eacute;!<br><br />
<p>Votre version de phpwcms:<b>%s</b><br><br />
Version import&eacute;e:<b>%s</b></p>';
$BL['be_admin_tmpl_em_backlinktext']                 = 'revenir &agrave; la section des mod&egrave;les';
$BL['be_admin_tmpl_em_applyconfirm']                 = 'Voulez-vous appliquer le mod&egrave;le [ +%s+ ] pour tout le site?\n\nSi vous utilisez des versions de mod&egrave;les diff&eacute;rentes celles-ci seront remplac&eacute;es par la version par d&eacute;faut dans votre structure d\'articles!';
$BL['be_admin_tmpl_em_tmplinfo']                     = 'information du mod&egrave;le';
$BL['be_admin_tmpl_em_applytmpl']                    = 'appliquer le mod&egrave;le';
$BL['be_admin_tmpl_em_install']                      = 'installer / d&eacute;sintaller les mod&egrave;les';
$BL['be_admin_tmpl_em_readme']                       = 'Lisez-moi';
$BL['be_admin_tmpl_em_password']                     = 'Mot de passe du mod&egrave;le';
$BL['be_admin_tmpl_em_applytmplafter']               = 'Appliquer le mod&egrave;le apr&egrave;s installation';
$BL['be_admin_tmpl_em_tmplerror']                    = 'Erreur de mod&egrave;le';
$BL['be_admin_tmpl_em_tmplerrortxt']                 = 'Fichier de mod&egrave;le manquant!';
$BL['be_admin_tmpl_em_uninstallcpt']                 = 'D&eacute;sintaller le mod&egrave;le';
$BL['be_admin_tmpl_em_impoptions']                   = 'option d\'importation';
$BL['be_admin_tmpl_em_availabletmpls']               = 'mod&egrave;les existants';
$BL['be_admin_tmpl_em_singletmplimport']             = 'importation du fichier de mod&egrave;le';
$BL['be_admin_tmpl_em_installtmpl']                  = 'Installer le mod&egrave;le';
$BL['be_admin_tmpl_em_tmplunistalled']               = 'mod&egrave;le <b>%s</b> et mise en page associ&eacute;es d&eacute;sinstall&eacute;es avec succ&egrave;s!';
$BL['be_admin_tmpl_em_tmplnameinuse']                = 'nom de mod&egrave;le d&eacute;ja utilis&eacute;, veuillez en choisir un autre svp!';
$BL['be_admin_tmpl_em_singletmplfile']               = 'fichier mod&egrave;le &agrave; importer';
$BL['be_admin_tmpl_em_exportcpt']                    = 'Veuillez s&eacute;lectionner le type d\'exportation ci-dessous:';
$BL['be_admin_tmpl_em_exporttmplonly']               = 'seulement mod&egrave;le';
$BL['be_admin_tmpl_em_exporttmplset']                = 'mod&egrave;le, mise en page et fichier css';
$BL['be_admin_tmpl_em_exporttmplheader']             = 'exportation du mod&egrave;le';
$BL['be_admin_tmpl_em_tmpltoexpot']                  = 'mod&egrave;le &agrave; exporter:';
$BL['be_admin_tmpl_em_tmplpassword']                 = '<b>mot de passe du mod&egrave;le</b>
<p>Note:<br>laissez ce champ vide si vous souhaitez un mod&egrave;le non s&eacute;curis&eacute;, sinon remplissez les champs correspondants!';
$BL['be_admin_tmpl_em_exportbtncpt']                 = 'exporter le mod&egrave;le';
$BL['be_admin_tmpl_em_exportsucces']                 = 'exportation du mod&egrave;le r&eacute;ussie!';
$BL['be_admin_tmpl_em_exportfilesize']               = 'Taille du fichier:';
$BL['be_admin_tmpl_em_exportdownloadlnk']            = 'T&eacute;l&eacute;chargez ici';
$BL['be_admin_tmpl_em_wrongpassword']                = 'mot de passe &eacute;rron&eacute; pour le mod&egrave;le <b>%s</b> ou donn&eacute;es du mod&egrave;le incorrectes!';
//---------------------------------------------
//
// PAGELAYOUTS COPY / IM / EXPORT
//
//---------------------------------------------
$BL['be_admin_page_title_copy']                      = 'mise en place du frontend: copier la mise en page';
$BL['be_admin_page_em_layoutnameinuse']              = 'nom de mise en page d&eacute;j&agrave; utilis&eacute;, veuillez choisir un autre nom svp!';
$BL['be_admin_page_em_install']                      = 'importer la mise en page';
$BL['be_admin_page_em_importcpt']                    = 'mise en place du frontend: importation de la mise en page';
$BL['be_admin_page_em_layouttoimport']               = 'fichier de la mise en page &agrave; importer';
$BL['be_admin_page_em_exportsuccess']                = 'exportation de la mise en page r&eacute;ussie!';
$BL['be_admin_page_em_backlinktext']                 = 'revenir &agrave; la mise en page';
Dutch:

Code: Select all

$BL['be_admin_tmpl_em_templateinstalled']            = 'importeren van de template geslaagd';
$BL['be_admin_tmpl_em_otherversion']                 = '<p>Deze template werd geƫxporteerd met een veschillende versie van phpwcms!</p><br />Er kunnen problemen van compatibiliteit bestaan!<br>
<br />
<p>Uw versie:<b>%s</b><br>
  <br />
Versie van importatie:<b>%s</b></p>
';
$BL['be_admin_tmpl_em_backlinktext']                 = 'terug naar templates';
$BL['be_admin_tmpl_em_applyconfirm']                 = 'Wil je de template [ "+%s+" ] invoegen voor gans uw website?\n\nAls je andere templates wil gebruiken zullen deze vervangd worden door de default template in uw artikelen structuur!';
$BL['be_admin_tmpl_em_tmplinfo']                     = 'informatie over de template';
$BL['be_admin_tmpl_em_applytmpl']                    = 'template toevoegen';
$BL['be_admin_tmpl_em_install']                      = 'templates installeren / verwijderen ';
$BL['be_admin_tmpl_em_readme']                       = 'Leesmij';
$BL['be_admin_tmpl_em_password']                     = 'Wachtwoord voor template';
$BL['be_admin_tmpl_em_applytmplafter']               = 'Na installatie template toevoegen';
$BL['be_admin_tmpl_em_tmplerror']                    = 'Er is iets fout met de template';
$BL['be_admin_tmpl_em_tmplerrortxt']                 = 'Bestand van template niet beschikbaar!';
$BL['be_admin_tmpl_em_uninstallcpt']                 = 'Template verwijderen';
$BL['be_admin_tmpl_em_impoptions']                   = 'optie voor importatie';
$BL['be_admin_tmpl_em_availabletmpls']               = 'bestaande templates';
$BL['be_admin_tmpl_em_singletmplimport']             = 'importatie van template bestand';
$BL['be_admin_tmpl_em_installtmpl']                  = 'Installatie van template';
$BL['be_admin_tmpl_em_tmplunistalled']               = 'template <b>%s</b> en pagina layout correct verwijdert!';
$BL['be_admin_tmpl_em_tmplnameinuse']                = 'naam van de template bestaat al, zoek een andere naam aub!';
$BL['be_admin_tmpl_em_singletmplfile']               = 'templatebestand om te importeren';
$BL['be_admin_tmpl_em_exportcpt']                    = 'Aub kies instllatieoptie:';
$BL['be_admin_tmpl_em_exporttmplonly']               = 'alleen template';
$BL['be_admin_tmpl_em_exporttmplset']                = 'template, pagina layout en css bestand';
$BL['be_admin_tmpl_em_exporttmplheader']             = 'exportatie van template';
$BL['be_admin_tmpl_em_tmpltoexpot']                  = 'template om te exporteren:';
$BL['be_admin_tmpl_em_tmplpassword']                 = '<b>template wachtwoord</b>
<p>Nota:<br>
  laat dit leeg als je geen veilige template wil, anders voeg de gewenste informatie in!';
$BL['be_admin_tmpl_em_exportbtncpt']                 = 'template exporteren';
$BL['be_admin_tmpl_em_exportsucces']                 = 'exporteren van template ok!';
$BL['be_admin_tmpl_em_exportfilesize']               = 'Bestandmaat:';
$BL['be_admin_tmpl_em_exportdownloadlnk']            = 'Download hier';
$BL['be_admin_tmpl_em_wrongpassword']                = 'wachtwoord niet correct voor template <b>%s</b> of data van template niet juist!';
//---------------------------------------------
//
// PAGELAYOUTS COPY / IM / EXPORT
//
//---------------------------------------------
$BL['be_admin_page_title_copy']                      = 'frontend: copie&euml;r layout';
$BL['be_admin_page_em_layoutnameinuse']              = 'naam van pagina layout al bestaand, kies een andere naam aub!';
$BL['be_admin_page_em_install']                      = 'importeren van pagina layout';
$BL['be_admin_page_em_importcpt']                    = 'frontend: importeren van pagina layout';
$BL['be_admin_page_em_layouttoimport']               = 'bestand van pagina layout om te importeren';
$BL['be_admin_page_em_exportsuccess']                = 'exportatie van pagina layout ok !';
$BL['be_admin_page_em_backlinktext']                 = 'terug naar pagina layout';
If somebody can re-read would be perfect, haven't checked it thoroughly

Cheers

Posted: Tue 28. Mar 2006, 10:47
by culda_a
erich_k4 wrote:
culda_a wrote:
culda_a wrote:When I try to export the Page layout I get this message:

Can't create the output file.
I see that the export from template make this also :roll:
Check the folder permission for /phpwcms_filestorage/
you will need write access here
I have permision 777 on phpwcms_filestorage

but the same problem

another thing I see that you have posted the code for some languages, where do I have to put this code can somebody tell me. :roll:

Posted: Tue 28. Mar 2006, 12:20
by erich_k4
@ KOSSE -> Thank you!! :D

----------------------------------------------------------------------
culda_a wrote: I have permision 777 on phpwcms_filestorage

but the same problem

another thing I see that you have posted the code for some languages, where do I have to put this code can somebody tell me. :roll:
Maybe save mode ON for your php installation?
Are there some php warnings or other notices?

The language file is for the upcoming version, you don't need them now...

Posted: Tue 28. Mar 2006, 12:23
by culda_a
erich_k4 wrote:@ KOSSE -> Thank you!! :D

----------------------------------------------------------------------
culda_a wrote: I have permision 777 on phpwcms_filestorage

but the same problem

another thing I see that you have posted the code for some languages, where do I have to put this code can somebody tell me. :roll:
Maybe save mode ON for your php installation?
Are there some php warnings or other notices?

The language file is for the upcoming version, you don't need them now...
they are no other php warnings or other notices just
Can't create the output file.

Posted: Tue 28. Mar 2006, 12:34
by erich_k4
culda_a wrote: they are no other php warnings or other notices just
Can't create the output file.
in admin.templates.tmpl.php change line 601 to

Code: Select all

 echo 'Can\'t create the output file.<br>'.$exportdir.$fname;
may there is a path or filename problem...

Posted: Tue 28. Mar 2006, 16:19
by culda_a
erich_k4 wrote:
culda_a wrote: they are no other php warnings or other notices just
Can't create the output file.
in admin.templates.tmpl.php change line 601 to

Code: Select all

 echo 'Can\'t create the output file.<br>'.$exportdir.$fname;
may there is a path or filename problem...
I have change the code line with what you provide.... no change the same problem and I have set all the permision

Posted: Tue 28. Mar 2006, 16:58
by erich_k4
culda_a wrote: I have change the code line with what you provide.... no change the same problem and I have set all the permision
whats displayed now?

Can't create the output file .....????

btw what phpwcms version do you use?

Posted: Tue 28. Mar 2006, 17:32
by culda_a
I use phpwcms 1.2.5