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
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
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
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
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ón del modelo exitosa!';
$BL['be_admin_tmpl_em_otherversion'] = '
<p>Este modelo fue exportado con una versión distinta de phpwcms !</p>
<br />
Pueden existir problemas de compatibilidad!<br>
<br />
<p>Su versión de phpwcms:<b>%s</b><br>
<br />
Versión importadad:<b>%s</b></p>
';
$BL['be_admin_tmpl_em_backlinktext'] = 'volver à la secció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án reemplazados por la version por defecto en su estructure de articulos!';
$BL['be_admin_tmpl_em_tmplinfo'] = 'informació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éame';
$BL['be_admin_tmpl_em_password'] = 'Contraseña del modelo';
$BL['be_admin_tmpl_em_applytmplafter'] = 'Aplicar el modelo después de la instalació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ón de importación';
$BL['be_admin_tmpl_em_availabletmpls'] = 'modelos existentes';
$BL['be_admin_tmpl_em_singletmplimport'] = 'importación del fichero de modelo';
$BL['be_admin_tmpl_em_installtmpl'] = 'Instalación del modelo';
$BL['be_admin_tmpl_em_tmplunistalled'] = 'modelo <b>%s</b> y composición de página desinstaladas con é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ón deseada:';
$BL['be_admin_tmpl_em_exporttmplonly'] = 'solo el modelo';
$BL['be_admin_tmpl_em_exporttmplset'] = 'modelo, composición de página y fichero css';
$BL['be_admin_tmpl_em_exporttmplheader'] = 'exportación del modelo';
$BL['be_admin_tmpl_em_tmpltoexpot'] = 'modelo para exportar:';
$BL['be_admin_tmpl_em_tmplpassword'] = '<b>contraseña del modelo</b>
<p>Nota:<br>
deje este campo vací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ón del modelo exitosa!';
$BL['be_admin_tmpl_em_exportfilesize'] = 'Tamaño del fichero:';
$BL['be_admin_tmpl_em_exportdownloadlnk'] = 'Descargue aqui';
$BL['be_admin_tmpl_em_wrongpassword'] = 'contraseña no vá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ón de página';
$BL['be_admin_page_em_layoutnameinuse'] = 'nombre de la composición de página ya usado, por favor escoja otro nombre!';
$BL['be_admin_page_em_install'] = 'importación de la composición de página';
$BL['be_admin_page_em_importcpt'] = 'frontend: importar la composición de página';
$BL['be_admin_page_em_layouttoimport'] = 'fichero de la composición de página para importar ';
$BL['be_admin_page_em_exportsuccess'] = 'exportación de la composición de página exitosa !';
$BL['be_admin_page_em_backlinktext'] = 'volver a la composición de página';
French:
Code: Select all
//---------------------------------------------
//
// TEMPLATESETS IM / EXPORT
//
//---------------------------------------------
$BL['be_admin_tmpl_em_templateinstalled'] = 'importation du modèle réussie!';
$BL['be_admin_tmpl_em_otherversion'] = '<p>Ce modèle été exporté avec une version différente de phpwcms!</p><br />
Ils peut exister des problèmes de compatibilité!<br><br />
<p>Votre version de phpwcms:<b>%s</b><br><br />
Version importée:<b>%s</b></p>';
$BL['be_admin_tmpl_em_backlinktext'] = 'revenir à la section des modèles';
$BL['be_admin_tmpl_em_applyconfirm'] = 'Voulez-vous appliquer le modèle [ +%s+ ] pour tout le site?\n\nSi vous utilisez des versions de modèles différentes celles-ci seront remplacées par la version par défaut dans votre structure d\'articles!';
$BL['be_admin_tmpl_em_tmplinfo'] = 'information du modèle';
$BL['be_admin_tmpl_em_applytmpl'] = 'appliquer le modèle';
$BL['be_admin_tmpl_em_install'] = 'installer / désintaller les modèles';
$BL['be_admin_tmpl_em_readme'] = 'Lisez-moi';
$BL['be_admin_tmpl_em_password'] = 'Mot de passe du modèle';
$BL['be_admin_tmpl_em_applytmplafter'] = 'Appliquer le modèle après installation';
$BL['be_admin_tmpl_em_tmplerror'] = 'Erreur de modèle';
$BL['be_admin_tmpl_em_tmplerrortxt'] = 'Fichier de modèle manquant!';
$BL['be_admin_tmpl_em_uninstallcpt'] = 'Désintaller le modèle';
$BL['be_admin_tmpl_em_impoptions'] = 'option d\'importation';
$BL['be_admin_tmpl_em_availabletmpls'] = 'modèles existants';
$BL['be_admin_tmpl_em_singletmplimport'] = 'importation du fichier de modèle';
$BL['be_admin_tmpl_em_installtmpl'] = 'Installer le modèle';
$BL['be_admin_tmpl_em_tmplunistalled'] = 'modèle <b>%s</b> et mise en page associées désinstallées avec succès!';
$BL['be_admin_tmpl_em_tmplnameinuse'] = 'nom de modèle déja utilisé, veuillez en choisir un autre svp!';
$BL['be_admin_tmpl_em_singletmplfile'] = 'fichier modèle à importer';
$BL['be_admin_tmpl_em_exportcpt'] = 'Veuillez sélectionner le type d\'exportation ci-dessous:';
$BL['be_admin_tmpl_em_exporttmplonly'] = 'seulement modèle';
$BL['be_admin_tmpl_em_exporttmplset'] = 'modèle, mise en page et fichier css';
$BL['be_admin_tmpl_em_exporttmplheader'] = 'exportation du modèle';
$BL['be_admin_tmpl_em_tmpltoexpot'] = 'modèle à exporter:';
$BL['be_admin_tmpl_em_tmplpassword'] = '<b>mot de passe du modèle</b>
<p>Note:<br>laissez ce champ vide si vous souhaitez un modèle non sécurisé, sinon remplissez les champs correspondants!';
$BL['be_admin_tmpl_em_exportbtncpt'] = 'exporter le modèle';
$BL['be_admin_tmpl_em_exportsucces'] = 'exportation du modèle réussie!';
$BL['be_admin_tmpl_em_exportfilesize'] = 'Taille du fichier:';
$BL['be_admin_tmpl_em_exportdownloadlnk'] = 'Téléchargez ici';
$BL['be_admin_tmpl_em_wrongpassword'] = 'mot de passe érroné pour le modèle <b>%s</b> ou données du modè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éjà utilisé, 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 à importer';
$BL['be_admin_page_em_exportsuccess'] = 'exportation de la mise en page réussie!';
$BL['be_admin_page_em_backlinktext'] = 'revenir à 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ë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
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.
Posted: Tue 28. Mar 2006, 12:20
by erich_k4
@ KOSSE -> Thank you!!
----------------------------------------------------------------------
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.
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!!
----------------------------------------------------------------------
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.
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