better source combo

This commit is contained in:
Jean-Christian Denis 2022-12-10 01:08:47 +01:00
parent 0bbdbf7748
commit dafb8d65d2
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
2 changed files with 7 additions and 4 deletions

View file

@ -60,8 +60,8 @@ if (in_array($part, ['new', 'copycat'])) {
} }
$combo_source = [ $combo_source = [
' — ' => 'empty', __('Empty template') => 'empty',
'post.html' => 'post', 'post.html' => 'post',
]; ];
if (dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([dcPages::PERMISSION_PAGES]), dcCore::app()->blog->id) && dcCore::app()->plugins->moduleExists('pages')) { if (dcCore::app()->auth->check(dcCore::app()->auth->makePermissions([dcPages::PERMISSION_PAGES]), dcCore::app()->blog->id) && dcCore::app()->plugins->moduleExists('pages')) {

View file

@ -1,9 +1,9 @@
msgid "" msgid ""
msgstr "" msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Project-Id-Version: templator 1.4-dev\n" "Project-Id-Version: templator 1.4\n"
"POT-Creation-Date: \n" "POT-Creation-Date: \n"
"PO-Revision-Date: 2022-12-07T20:57:29+00:00\n" "PO-Revision-Date: 2022-12-10T00:07:54+00:00\n"
"Last-Translator: Jean-Christian Denis\n" "Last-Translator: Jean-Christian Denis\n"
"Language-Team: \n" "Language-Team: \n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
@ -64,6 +64,9 @@ msgstr "supprimer le template"
msgid "File already exists." msgid "File already exists."
msgstr "Le fichier existe déjà" msgstr "Le fichier existe déjà"
msgid "Empty template"
msgstr "Template vide"
msgid "Filename is empty." msgid "Filename is empty."
msgstr "Le nom de fichier est vide." msgstr "Le nom de fichier est vide."