Fixed Heredoc strings. Turns out, Heredoc syntax - https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc - only works with closing tags being the first characters of a line. Eclipse's reformatting and indention of the code does not seem to know that^^

Fix: Changed Heredoc strings to "normal" strings.
This commit is contained in:
azett 2021-02-13 13:47:18 +01:00
parent 7e8ddb88b8
commit 27c3e825b3
22 changed files with 526 additions and 610 deletions

View File

@ -14,48 +14,47 @@
*/ */
/* /*
function admin_plugin_adminheader() { * function admin_plugin_adminheader() {
$f = ADMIN_DIR . '/panels/plugin/admin.plugin.js'; * $f = ADMIN_DIR . '/panels/plugin/admin.plugin.js';
echo <<<SCP * echo '<script src="$f" type="text/javascript"></script>
<script src="$f" type="text/javascript"></script> * ';
SCP; *
* }
} * add_action('wp_head', 'admin_plugin_adminheader');
add_action('wp_head', 'admin_plugin_adminheader');
*/ */
class admin_plugin extends AdminPanel { class admin_plugin extends AdminPanel {
var $panelname = 'plugin';
var $actions = array('default'=>true);
}
var $panelname = 'plugin';
var $actions = array(
'default' => true
);
}
class admin_plugin_default extends AdminPanelAction { class admin_plugin_default extends AdminPanelAction {
var $commands = array(
'enable',
'disable'
);
var $commands = array('enable', 'disable');
var $errors = array(); var $errors = array();
function setup() { function setup() {
$this->pluginid = isset($_GET ['plugin']) ? $_GET ['plugin'] : null; $this->pluginid = isset($_GET ['plugin']) ? $_GET ['plugin'] : null;
$pi = new plugin_indexer; $pi = new plugin_indexer();
$plist = $pi->getList(); $plist = $pi->getList();
sort($plist); sort($plist);
$this->smarty->assign('pluginlist', $plist); $this->smarty->assign('pluginlist', $plist);
$this->errors = @$pi->getEnableds(true); $this->errors = @$pi->getEnableds(true);
$this->fp_plugins = $pi->enabledlist; $this->fp_plugins = $pi->enabledlist;
} }
function dodisable($id) { function dodisable($id) {
$fp_plugins = $this->fp_plugins; $fp_plugins = $this->fp_plugins;
$success = -1; $success = -1;
if (plugin_exists($id)) { if (plugin_exists($id)) {
@ -70,21 +69,18 @@ SCP;
} else { } else {
$success = -1; $success = -1;
} }
} }
if ($success) if ($success)
$this->smarty->assign('success', $success); $this->smarty->assign('success', $success);
return PANEL_REDIRECT_CURRENT; return PANEL_REDIRECT_CURRENT;
} }
function doenable($id) { function doenable($id) {
$success = -1; $success = -1;
$fp_plugins = $this->fp_plugins; $fp_plugins = $this->fp_plugins;
if (plugin_exists($id)) { if (plugin_exists($id)) {
$success = 1; $success = 1;
@ -104,32 +100,20 @@ SCP;
$this->smarty->assign('success', $success); $this->smarty->assign('success', $success);
return PANEL_REDIRECT_CURRENT; return PANEL_REDIRECT_CURRENT;
} }
function main() { function main() {
// $conf = io_load_file(CONFIG_DIR . 'plugins.conf.php'); // $conf = io_load_file(CONFIG_DIR . 'plugins.conf.php');
$this->smarty->assign('warnings', $this->errors); $this->smarty->assign('warnings', $this->errors);
$this->smarty->assign('enabledlist', $this->fp_plugins); $this->smarty->assign('enabledlist', $this->fp_plugins);
lang_load('admin.plugin'); lang_load('admin.plugin');
return 0; return 0;
} }
function onsave() { function onsave() {
$fp_plugins = array_keys($_POST ['plugin_enabled']); $fp_plugins = array_keys($_POST ['plugin_enabled']);
$success = system_save(CONFIG_DIR . 'plugins.conf.php', compact('fp_plugins')); $success = system_save(CONFIG_DIR . 'plugins.conf.php', compact('fp_plugins'));
@ -139,7 +123,6 @@ SCP;
// $this->smarty->assign('pluginconf', $str); // $this->smarty->assign('pluginconf', $str);
return $retval; return $retval;
} }
} }

View File

@ -409,10 +409,7 @@ function utils_geturl($url) {
function utils_checksmarty() { function utils_checksmarty() {
if (!file_exists(SMARTY_DIR . 'Smarty.class.php')) { if (!file_exists(SMARTY_DIR . 'Smarty.class.php')) {
$err = <<<ERR $err = 'Fatal error: Smarty is not installed; please download it from <a href="http://smarty.php.net">http://smarty.php.net</a>; you will probably need <a href="http://www.phpinsider.com/php/code/SmartyValidate/">SmartyValidate</a> as well; unpack them to <b>fp-includes/core/smarty</b>: please do not overwrite files in fp-includes/core/smarty/plugins/';
Fatal error: Smarty is not installed; please download it from <a href="http://smarty.php.net">http://smarty.php.net</a>; you will
probably need <a href="http://www.phpinsider.com/php/code/SmartyValidate/">SmartyValidate</a> as well; unpack them to <b>fp-includes/core/smarty</b>: please do not overwrite files in fp-includes/core/smarty/plugins/
ERR;
trigger_error($err, E_USER_ERROR); trigger_error($err, E_USER_ERROR);
} }
} }

View File

@ -1,7 +1,5 @@
<?php <?php
$lang ['comments'] ['mail'] = '"%fromname%" %frommail% přidal komentář k příspěvku "%entrytitle%".
$lang['comments']['mail'] = <<<MAIL
"%fromname%" %frommail% přidal komentář k příspěvku "%entrytitle%".
Zde je odkaz na Váš příspěvek: Zde je odkaz na Váš příspěvek:
%commentlink% %commentlink%
@ -11,6 +9,6 @@ Zde je komentář, který byl vložen:
S pozdravem %blogtitle% S pozdravem %blogtitle%
MAIL; ';
?> ?>

View File

@ -1,7 +1,5 @@
<?php <?php
$lang ['comments'] ['mail'] = 'Hallo %toname%,
$lang['comments']['mail'] = <<<MAIL
Hallo %toname%,
"%fromname%" %frommail% hat einen Kommentar zu dem Thema "%entrytitle%" geschrieben. "%fromname%" %frommail% hat einen Kommentar zu dem Thema "%entrytitle%" geschrieben.
@ -16,6 +14,6 @@ Folgendes wurde als Kommentar geschrieben:
Automatisch generiert von, Automatisch generiert von,
%blogtitle% %blogtitle%
MAIL; ';
?> ?>

View File

@ -1,7 +1,5 @@
<?php <?php
$lang ['comments'] ['mail'] = 'Αγαπητέ/η %toname%,
$lang['comments']['mail'] = <<<MAIL
Αγαπητέ/η %toname%,
Ο/Η "%fromname%" %frommail% μόλις πρόσθεσε ένα σχόλιο στην καταχώρηση με τίτλο "%entrytitle%". Ο/Η "%fromname%" %frommail% μόλις πρόσθεσε ένα σχόλιο στην καταχώρηση με τίτλο "%entrytitle%".
@ -16,6 +14,6 @@
Ευχές για τα καλύτερα, Ευχές για τα καλύτερα,
%blogtitle% %blogtitle%
MAIL; ';
?> ?>

View File

@ -1,7 +1,5 @@
<?php <?php
$lang ['comments'] ['mail'] = 'Dear %toname%,
$lang['comments']['mail'] = <<<MAIL
Dear %toname%,
"%fromname%" %frommail% has just posted a comment to the entry entitled "%entrytitle%". "%fromname%" %frommail% has just posted a comment to the entry entitled "%entrytitle%".
@ -16,6 +14,6 @@ Here is the comment that has just been posted:
All the best, All the best,
%blogtitle% %blogtitle%
MAIL; ';
?> ?>

View File

@ -1,7 +1,5 @@
<?php <?php
$lang ['comments'] ['mail'] = 'Estimado %toname%,
$lang['comments']['mail'] = <<<MAIL
Estimado %toname%,
"%fromname%" %frommail% acaba de publicar un comentario en la entrada titulada "%entrytitle%". "%fromname%" %frommail% acaba de publicar un comentario en la entrada titulada "%entrytitle%".
@ -16,6 +14,6 @@ Aquí está el comentario que se acaba de publicar:
Todo lo mejor, Todo lo mejor,
%blogtitle% %blogtitle%
MAIL; ';
?> ?>

View File

@ -1,7 +1,5 @@
<?php <?php
$lang ['comments'] ['mail'] = 'Bonjour %toname%,
$lang['comments']['mail'] = <<<MAIL
Bonjour %toname%,
"%fromname%" %frommail% a post&eacute; un commentaire sur un billet dont le titre est "%entrytitle%". "%fromname%" %frommail% a post&eacute; un commentaire sur un billet dont le titre est "%entrytitle%".
@ -16,6 +14,6 @@ Voici le commentaire post&eacute;:
Cordialement, Cordialement,
%blogtitle% %blogtitle%
MAIL; ';
?> ?>

View File

@ -1,7 +1,5 @@
<?php <?php
$lang ['comments'] ['mail'] = 'Ciao %toname%,
$lang['comments']['mail'] = <<<MAIL
Ciao %toname%,
"%fromname%" %frommail% ha inserito un commento all\'articolo intitolato "%entrytitle%". "%fromname%" %frommail% ha inserito un commento all\'articolo intitolato "%entrytitle%".
@ -16,6 +14,6 @@ Questo è il commento che è stato appena postato:
Saluti, Saluti,
%blogtitle% %blogtitle%
MAIL; ';
?> ?>

View File

@ -1,7 +1,5 @@
<?php <?php
$lang ['comments'] ['mail'] = '%toname% さま,
$lang['comments']['mail'] = <<<MAIL
%toname% さま,
"%fromname%" %frommail% さんが、次の記事にコメントを書きました。 "%fromname%" %frommail% さんが、次の記事にコメントを書きました。
@ -19,6 +17,6 @@
以上, 以上,
%blogtitle% %blogtitle%
MAIL; ';
?> ?>

View File

@ -1,8 +1,6 @@
<?php <?php
// Terminado 15 de fevereiro de 2020. // Terminado 15 de fevereiro de 2020.
$lang ['comments'] ['mail'] = 'Querido(a) %toname%,
$lang['comments']['mail'] = <<<MAIL
Querido(a) %toname%,
"%fromname%" %frommail% acabou de publicar um comentário na entrada intitulada "%entrytitle%". "%fromname%" %frommail% acabou de publicar um comentário na entrada intitulada "%entrytitle%".
@ -17,6 +15,6 @@ Aqui está o comentário que acabou de ser postado:
Um abraço, Um abraço,
%blogtitle% %blogtitle%
MAIL; ';
?> ?>

View File

@ -129,10 +129,8 @@ function plugin_aaspam_comment_form() {
} }
// echoes the question and the form part // echoes the question and the form part
echo <<<STR echo '<p><label class="textlabel" for="aaspam">{$lang[\'plugin\'][\'accessibleantispam\'][\'prefix\']} <strong>$question (*)</strong></label><br />
<p><label class="textlabel" for="aaspam">{$lang['plugin']['accessibleantispam']['prefix']} <strong>$question (*)</strong></label><br /> <input type="text" name="aaspam" id="aaspam" /></p>';
<input type="text" name="aaspam" id="aaspam" /></p>
STR;
} }
?> ?>

View File

@ -17,14 +17,12 @@ function plugin_adminarea_widget() {
if ($user = user_loggedin()) { if ($user = user_loggedin()) {
$userid = $user ['userid']; $userid = $user ['userid'];
$string = <<<END $string = '<p>{$lang[\'plugin\'][\'adminarea\'][\'welcome\']} <strong>{$userid}</strong>!</p>
<p>{$lang['plugin']['adminarea']['welcome']} <strong>{$userid}</strong>!</p>
<ul> <ul>
<li><a href="{$baseurl}admin.php">{$lang['plugin']['adminarea']['admin_panel']}</a></li> <li><a href="{$baseurl}admin.php">{$lang[\'plugin\'][\'adminarea\'][\'admin_panel\']}</a></li>
<li><a href="{$baseurl}admin.php?p=entry&amp;action=write">{$lang['plugin']['adminarea']['add_entry']}</a></li> <li><a href="{$baseurl}admin.php?p=entry&amp;action=write">{$lang[\'plugin\'][\'adminarea\'][\'add_entry\']}</a></li>
<li><a href="{$baseurl}login.php?do=logout">{$lang['plugin']['adminarea']['logout']}</a></li> <li><a href="{$baseurl}login.php?do=logout">{$lang[\'plugin\'][\'adminarea\'][\'logout\']}</a></li>
</ul> </ul>';
END;
} else } else
$string = '<ul><li><a href="' . $baseurl . 'login.php">Login</a></li></ul>'; $string = '<ul><li><a href="' . $baseurl . 'login.php">Login</a></li></ul>';

View File

@ -1,19 +1,18 @@
<?php <?php
$lang ['admin'] ['entry'] ['submenu'] ['commentcenter'] = 'Comment Center'; $lang ['admin'] ['entry'] ['submenu'] ['commentcenter'] = 'Comment Center';
$lang ['admin'] ['entry'] ['commentcenter'] = array( $lang ['admin'] ['entry'] ['commentcenter'] = array(
# Header of the panel // Header of the panel
'title' => 'Comment Center', 'title' => 'Comment Center',
'desc1' => 'This panel allows you to manage the comments on your blog.', 'desc1' => 'This panel allows you to manage the comments on your blog.',
'desc2' => 'Here you can do several things:', 'desc2' => 'Here you can do several things:',
# Links // Links
'lpolicies' => 'Manage the policies', 'lpolicies' => 'Manage the policies',
'lapprove' => 'Show blocked comments', 'lapprove' => 'Show blocked comments',
'lmanage' => 'Manage comments', 'lmanage' => 'Manage comments',
'lconfig' => 'Configure the plugin', 'lconfig' => 'Configure the plugin',
# Policies // Policies
'policies' => 'Policies', 'policies' => 'Policies',
'desc_pol' => 'Here you can edit the policies of comments.', 'desc_pol' => 'Here you can edit the policies of comments.',
'select' => 'Select', 'select' => 'Select',
@ -40,24 +39,22 @@ $lang['admin']['entry']['commentcenter']=array(
'select_all' => 'Select All', 'select_all' => 'Select All',
'deselect_all' => 'Deselect All', 'deselect_all' => 'Deselect All',
# Configuration page // Configuration page
'configure' => 'Configure the plugin', 'configure' => 'Configure the plugin',
'desc_conf' => 'Here you can modify the options of the plugin.', 'desc_conf' => 'Here you can modify the options of the plugin.',
'log_all' => 'Log blocked comments', 'log_all' => 'Log blocked comments',
'log_all_long' => 'Check it if you want to log also comments that are blocked.', 'log_all_long' => 'Check it if you want to log also comments that are blocked.',
'email_alert' => 'Notify comments via email', 'email_alert' => 'Notify comments via email',
'email_alert_long'=>'Check it if you want that when there is a comment to approve you want to be '. 'email_alert_long' => 'Check it if you want that when there is a comment to approve you want to be ' . 'informed via email.',
'informed via email.',
'akismet' => 'Akismet', 'akismet' => 'Akismet',
'akismet_use' => 'Enable Akismet check', 'akismet_use' => 'Enable Akismet check',
'akismet_key' => 'Akismet Key', 'akismet_key' => 'Akismet Key',
'akismet_key_long' => 'The Akismet service provide you a key to use it. Insert here.', 'akismet_key_long' => 'The Akismet service provide you a key to use it. Insert here.',
'akismet_url' => 'Blog base URL for Akismet', 'akismet_url' => 'Blog base URL for Akismet',
'akismet_url_long'=>'I think for Akismet free service you should use just a domain. '. 'akismet_url_long' => 'I think for Akismet free service you should use just a domain. ' . 'You can leave blank this field, <code>%s</code> will be used.',
'You can leave blank this field, <code>%s</code> will be used.',
'save_conf' => 'Save Configuration', 'save_conf' => 'Save Configuration',
# Edit policy page // Edit policy page
'apply_to' => 'Apply to', 'apply_to' => 'Apply to',
'editpol' => 'Edit a policy', 'editpol' => 'Edit a policy',
'createpol' => 'Create a policy', 'createpol' => 'Create a policy',
@ -67,14 +64,13 @@ $lang['admin']['entry']['commentcenter']=array(
'se_fill' => 'Please fill the fields with the id of the entries (<code>entryYYMMDD-HHMMSS</code>).', 'se_fill' => 'Please fill the fields with the id of the entries (<code>entryYYMMDD-HHMMSS</code>).',
'po_title' => 'Properties', 'po_title' => 'Properties',
'po_desc' => 'If you selected the %s option, please fill the properties.', 'po_desc' => 'If you selected the %s option, please fill the properties.',
'po_comp'=>'The fields aren\'t compulsory but you must fill at least one or the policy '. 'po_comp' => 'The fields aren\'t compulsory but you must fill at least one or the policy ' . 'will apply on all entries.',
'will apply on all entries.',
'po_time' => 'Time options', 'po_time' => 'Time options',
'po_older' => 'Apply to entries older than ', 'po_older' => 'Apply to entries older than ',
'days' => 'days.', 'days' => 'days.',
'save_policy' => 'Save Policy', 'save_policy' => 'Save Policy',
# Delete policies page // Delete policies page
'del_policies' => 'Delete Policies', 'del_policies' => 'Delete Policies',
'del_descs' => 'You are going to delete this policy: ', 'del_descs' => 'You are going to delete this policy: ',
'del_descm' => 'You are going to delete these policies: ', 'del_descm' => 'You are going to delete these policies: ',
@ -83,7 +79,7 @@ $lang['admin']['entry']['commentcenter']=array(
'del_subm' => 'Yes, please delete them', 'del_subm' => 'Yes, please delete them',
'del_cancel' => 'No, take me back to the panel', 'del_cancel' => 'No, take me back to the panel',
# Approve comments page // Approve comments page
'app_title' => 'Approve comment', 'app_title' => 'Approve comment',
'app_desc' => 'Here you can approve comments.', 'app_desc' => 'Here you can approve comments.',
'app_date' => 'Date', 'app_date' => 'Date',
@ -103,19 +99,19 @@ $lang['admin']['entry']['commentcenter']=array(
'app_hamsubmit' => 'Submit to Akismet as ham when you publish them.', 'app_hamsubmit' => 'Submit to Akismet as ham when you publish them.',
'app_pubnotham' => 'Publish it but dont\'submit as ham', 'app_pubnotham' => 'Publish it but dont\'submit as ham',
# Delete comments page // Delete comments page
'delc_title' => 'Delete Comments', 'delc_title' => 'Delete Comments',
'delc_descs' => 'You are going to delete this comment: ', 'delc_descs' => 'You are going to delete this comment: ',
'delc_descm' => 'You are going to delete these comments: ', 'delc_descm' => 'You are going to delete these comments: ',
# Manage comments page // Manage comments page
'man_searcht' => 'Search an entry', 'man_searcht' => 'Search an entry',
'man_searchd' => 'Insert the id of the entry whose you want to manage comments.', 'man_searchd' => 'Insert the id of the entry whose you want to manage comments.',
'man_search' => 'Search', 'man_search' => 'Search',
'man_commfor' => 'Comments for %s', 'man_commfor' => 'Comments for %s',
'man_spam' => 'Submit as spam to Akismet', 'man_spam' => 'Submit as spam to Akismet',
# The simple edit // The simple edit
'simple_pre' => 'Comments for this entry will ', 'simple_pre' => 'Comments for this entry will ',
'simple_1' => 'be allowed.', 'simple_1' => 'be allowed.',
'simple_0' => 'require your approval.', 'simple_0' => 'require your approval.',
@ -123,15 +119,15 @@ $lang['admin']['entry']['commentcenter']=array(
'simple_manage' => 'Manage the comments of this entry.', 'simple_manage' => 'Manage the comments of this entry.',
'simple_edit' => 'Edit Policies', 'simple_edit' => 'Edit Policies',
# Akismet warnings // Akismet warnings
'akismet_errors' => array( 'akismet_errors' => array(
-1 => 'The Akismet key is empty. Please insert it.', -1 => 'The Akismet key is empty. Please insert it.',
-2 => 'We couldn\'t call Akismet servers.', -2 => 'We couldn\'t call Akismet servers.',
-3 => 'The Akismet response failed.', -3 => 'The Akismet response failed.',
-4=>'The Akismet key is not valid.', -4 => 'The Akismet key is not valid.'
), ),
# Messages // Messages
'msgs' => array( 'msgs' => array(
1 => 'Configuration saved.', 1 => 'Configuration saved.',
-1 => 'An error occurred while trying to save the configuration.', -1 => 'An error occurred while trying to save the configuration.',
@ -152,26 +148,25 @@ $lang['admin']['entry']['commentcenter']=array(
-6 => 'An error occurred while trying to remove the comment(s) (or you haven\'t selected any comment).', -6 => 'An error occurred while trying to remove the comment(s) (or you haven\'t selected any comment).',
7 => 'Comment submitted.', 7 => 'Comment submitted.',
-7=>'An error occurred while trying to submit the comment.', -7 => 'An error occurred while trying to submit the comment.'
), ),
# Errors // Errors
'errors' => array( 'errors' => array(
'pol_nonex' => 'The policy you want to edit does not exist.', 'pol_nonex' => 'The policy you want to edit does not exist.',
'entry_nf'=>'The entry you have selected does not exist.', 'entry_nf' => 'The entry you have selected does not exist.'
), )
); );
$lang ['plugin'] ['commentcenter'] = array( $lang ['plugin'] ['commentcenter'] = array(
'akismet_error' => 'Sorry, we\'re encountering technical difficulties.', 'akismet_error' => 'Sorry, we\'re encountering technical difficulties.',
'lock' => 'Comments for this entry are blocked, sorry.', 'lock' => 'Comments for this entry are blocked, sorry.',
'approvation' => 'The comments has been saved but the Administrator must approve it before showing it.', 'approvation' => 'The comments has been saved but the Administrator must approve it before showing it.',
# Mail for comments // Mail for comments
'mail_subj'=>'New comment to approve on %s', 'mail_subj' => 'New comment to approve on %s'
); );
$lang['plugin']['commentcenter']['mail_text']=<<<MAIL $lang ['plugin'] ['commentcenter'] ['mail_text'] = 'Dear %toname%,
Dear %toname%,
"%fromname%" %frommail% has just posted a comment to the entry entitled "%entrytitle%" "%fromname%" %frommail% has just posted a comment to the entry entitled "%entrytitle%"
but it need your approval before showing it. but it need your approval before showing it.
@ -184,4 +179,4 @@ Here is the comment that has just been posted:
All the best, All the best,
%blogtitle% %blogtitle%
MAIL; ';

View File

@ -1,19 +1,18 @@
<?php <?php
$lang ['admin'] ['entry'] ['submenu'] ['commentcenter'] = 'Centro commenti'; $lang ['admin'] ['entry'] ['submenu'] ['commentcenter'] = 'Centro commenti';
$lang ['admin'] ['entry'] ['commentcenter'] = array( $lang ['admin'] ['entry'] ['commentcenter'] = array(
# Header of the panel // Header of the panel
'title' => 'Centro commenti', 'title' => 'Centro commenti',
'desc1' => 'Questo pannello ti consente di gestire i commenti del tuo blog.', 'desc1' => 'Questo pannello ti consente di gestire i commenti del tuo blog.',
'desc2' => 'Qui puoi fare numerose cose:', 'desc2' => 'Qui puoi fare numerose cose:',
# Links // Links
'lpolicies' => 'Gestire le regole', 'lpolicies' => 'Gestire le regole',
'lapprove' => 'Elencare i commenti bloccati', 'lapprove' => 'Elencare i commenti bloccati',
'lmanage' => 'Gestire i commenti', 'lmanage' => 'Gestire i commenti',
'lconfig' => 'Configurare il plugin', 'lconfig' => 'Configurare il plugin',
# Policies // Policies
'policies' => 'Regole', 'policies' => 'Regole',
'desc_pol' => 'Qui puoi modificare le regole sui commenti.', 'desc_pol' => 'Qui puoi modificare le regole sui commenti.',
'select' => 'Seleziona', 'select' => 'Seleziona',
@ -40,24 +39,22 @@ $lang['admin']['entry']['commentcenter']=array(
'select_all' => 'Seleziona tutto', 'select_all' => 'Seleziona tutto',
'deselect_all' => 'Deseleziona tutto', 'deselect_all' => 'Deseleziona tutto',
# Configuration page // Configuration page
'configure' => 'Configura il plugin', 'configure' => 'Configura il plugin',
'desc_conf' => 'Qui puoi modificare le impostazioni del plugin.', 'desc_conf' => 'Qui puoi modificare le impostazioni del plugin.',
'log_all' => 'Registra i commenti bloccati', 'log_all' => 'Registra i commenti bloccati',
'log_all_long' => 'Selezionala se vuoi registrare anche i commenti che sono bloccati.', 'log_all_long' => 'Selezionala se vuoi registrare anche i commenti che sono bloccati.',
'email_alert' => 'Notifica commenti via email', 'email_alert' => 'Notifica commenti via email',
'email_alert_long'=>'Selezionala se vuoi essere informato via email quando c\'è un nuovo commento '. 'email_alert_long' => 'Selezionala se vuoi essere informato via email quando c\'è un nuovo commento ' . 'da approvare.',
'da approvare.',
'akismet' => 'Akismet', 'akismet' => 'Akismet',
'akismet_use' => 'Abilita il controllo di Akismet', 'akismet_use' => 'Abilita il controllo di Akismet',
'akismet_key' => 'Chiave di Akismet', 'akismet_key' => 'Chiave di Akismet',
'akismet_key_long' => 'Per usare Akismet ti viene fornita una chiave. Inseriscila qui.', 'akismet_key_long' => 'Per usare Akismet ti viene fornita una chiave. Inseriscila qui.',
'akismet_url' => 'Indirizzo di base per Akismet', 'akismet_url' => 'Indirizzo di base per Akismet',
'akismet_url_long'=>'Penso che per il servizio gratuito di Akismet si possa usare un solo indirizzo. '. 'akismet_url_long' => 'Penso che per il servizio gratuito di Akismet si possa usare un solo indirizzo. ' . 'Puoi anche lasciare vuoto questo campo, al suo posto si utilizzerà <code>%s</code>.',
'Puoi anche lasciare vuoto questo campo, al suo posto si utilizzerà <code>%s</code>.',
'save_conf' => 'Salva configurazione', 'save_conf' => 'Salva configurazione',
# Edit policy page // Edit policy page
'apply_to' => 'Applica a', 'apply_to' => 'Applica a',
'editpol' => 'Modifica una regola', 'editpol' => 'Modifica una regola',
'createpol' => 'Crea una regola', 'createpol' => 'Crea una regola',
@ -67,14 +64,13 @@ $lang['admin']['entry']['commentcenter']=array(
'se_fill' => 'Per favore riempi i campi con gli id dei post (<code>entryYYMMDD-HHMMSS</code>).', 'se_fill' => 'Per favore riempi i campi con gli id dei post (<code>entryYYMMDD-HHMMSS</code>).',
'po_title' => 'Caratteristiche', 'po_title' => 'Caratteristiche',
'po_desc' => 'Se hai selezionato l\'opzione %s, per seleziona le caratteristiche.', 'po_desc' => 'Se hai selezionato l\'opzione %s, per seleziona le caratteristiche.',
'po_comp'=>'I campi non sono obbligatori ma ne devi selezionare almeno uno, altrimenti la regola '. 'po_comp' => 'I campi non sono obbligatori ma ne devi selezionare almeno uno, altrimenti la regola ' . 'sarà applicata a tutti i post.',
'sarà applicata a tutti i post.',
'po_time' => 'Opzioni sulle date', 'po_time' => 'Opzioni sulle date',
'po_older' => 'Applica ai post più vecchi di ', 'po_older' => 'Applica ai post più vecchi di ',
'days' => 'giorni.', 'days' => 'giorni.',
'save_policy' => 'Salva regola', 'save_policy' => 'Salva regola',
# Delete policies page // Delete policies page
'del_policies' => 'Elimina regole', 'del_policies' => 'Elimina regole',
'del_descs' => 'Stai per eliminare la seguente regola: ', 'del_descs' => 'Stai per eliminare la seguente regola: ',
'del_descm' => 'Stai per eliminare la seguenti regoli: ', 'del_descm' => 'Stai per eliminare la seguenti regoli: ',
@ -83,7 +79,7 @@ $lang['admin']['entry']['commentcenter']=array(
'del_subm' => 'Sì, continua l\'eliminazione', 'del_subm' => 'Sì, continua l\'eliminazione',
'del_cancel' => 'No, riportami al pannello', 'del_cancel' => 'No, riportami al pannello',
# Approve comments page // Approve comments page
'app_title' => 'Approva commenti', 'app_title' => 'Approva commenti',
'app_desc' => 'Qui puoi approvare i commenti.', 'app_desc' => 'Qui puoi approvare i commenti.',
'app_date' => 'Data', 'app_date' => 'Data',
@ -103,19 +99,19 @@ $lang['admin']['entry']['commentcenter']=array(
'app_hamsubmit' => 'Inviali ad Akismet come ham quando li pubblichi.', 'app_hamsubmit' => 'Inviali ad Akismet come ham quando li pubblichi.',
'app_pubnotham' => 'Pubblica senza inviarlo come ham', 'app_pubnotham' => 'Pubblica senza inviarlo come ham',
# Delete comments page // Delete comments page
'delc_title' => 'Elimina Commenti', 'delc_title' => 'Elimina Commenti',
'delc_descs' => 'Stai per eliminare questo commento: ', 'delc_descs' => 'Stai per eliminare questo commento: ',
'delc_descm' => 'Stai per eliminare questi commenti: ', 'delc_descm' => 'Stai per eliminare questi commenti: ',
# Manage comments page // Manage comments page
'man_searcht' => 'Cerca un post', 'man_searcht' => 'Cerca un post',
'man_searchd' => 'Inserisci l\'id del post di cui vuoi gestire i commenti.', 'man_searchd' => 'Inserisci l\'id del post di cui vuoi gestire i commenti.',
'man_search' => 'Cerca', 'man_search' => 'Cerca',
'man_commfor' => 'Commenti di %s', 'man_commfor' => 'Commenti di %s',
'man_spam' => 'Segnala come spam ad Akismet', 'man_spam' => 'Segnala come spam ad Akismet',
# The simple edit // The simple edit
'simple_pre' => 'In questo post i commenti ', 'simple_pre' => 'In questo post i commenti ',
'simple_1' => 'sono ammessi.', 'simple_1' => 'sono ammessi.',
'simple_0' => 'richiedono la tua approvazione.', 'simple_0' => 'richiedono la tua approvazione.',
@ -123,15 +119,15 @@ $lang['admin']['entry']['commentcenter']=array(
'simple_manage' => 'Gestisci i commenti di questo post.', 'simple_manage' => 'Gestisci i commenti di questo post.',
'simple_edit' => 'Modifica le regole', 'simple_edit' => 'Modifica le regole',
# Akismet warnings // Akismet warnings
'akismet_errors' => array( 'akismet_errors' => array(
-1 => 'La chiave di Akismet è vuota. Per favore inseriscila.', -1 => 'La chiave di Akismet è vuota. Per favore inseriscila.',
-2 => 'Non abbiamo potuto chiamare i server di Akismet.', -2 => 'Non abbiamo potuto chiamare i server di Akismet.',
-3 => 'La risposta di Akismet è fallita.', -3 => 'La risposta di Akismet è fallita.',
-4=>'La chiave di Akismet non è valida.', -4 => 'La chiave di Akismet non è valida.'
), ),
# Messages // Messages
'msgs' => array( 'msgs' => array(
1 => 'Configurazione salvata.', 1 => 'Configurazione salvata.',
-1 => 'Si è verificato un errore durante il salvataggio della configurazione.', -1 => 'Si è verificato un errore durante il salvataggio della configurazione.',
@ -152,26 +148,25 @@ $lang['admin']['entry']['commentcenter']=array(
-6 => 'Si è verificato un errore durante la rimozione dei commenti (o non hai selezionato nessun commento).', -6 => 'Si è verificato un errore durante la rimozione dei commenti (o non hai selezionato nessun commento).',
7 => 'Commento segnalato.', 7 => 'Commento segnalato.',
-7=>'Si è verificato un errore durante la segnalazione del commento.', -7 => 'Si è verificato un errore durante la segnalazione del commento.'
), ),
# Errors // Errors
'errors' => array( 'errors' => array(
'pol_nonex' => 'La regola che vuoi modificare non esiste.', 'pol_nonex' => 'La regola che vuoi modificare non esiste.',
'entry_nf'=>'Il post da te selezionato non esiste.', 'entry_nf' => 'Il post da te selezionato non esiste.'
), )
); );
$lang ['plugin'] ['commentcenter'] = array( $lang ['plugin'] ['commentcenter'] = array(
'akismet_error' => 'Akismet ha rilevato il tuo commento come SPAM.', 'akismet_error' => 'Akismet ha rilevato il tuo commento come SPAM.',
'lock' => 'Siamo spiacenti ma i commenti per questo post sono chiusi.', 'lock' => 'Siamo spiacenti ma i commenti per questo post sono chiusi.',
'approvation' => 'Il commento è stato salvato ma l\'Amministratore lo deve approvare prima di farlo vedere.', 'approvation' => 'Il commento è stato salvato ma l\'Amministratore lo deve approvare prima di farlo vedere.',
# Mail for comments // Mail for comments
'mail_subj'=>'Nuovo commento da approvare su %s', 'mail_subj' => 'Nuovo commento da approvare su %s'
); );
$lang['plugin']['commentcenter']['mail_text']=<<<MAIL $lang ['plugin'] ['commentcenter'] ['mail_text'] = 'Caro %toname%,
Caro %toname%,
"%fromname%" %frommail% ha appena postato un commento nel post intitolato "%entrytitle%" "%fromname%" %frommail% ha appena postato un commento nel post intitolato "%entrytitle%"
ma tu devi approvarlo. ma tu devi approvarlo.
@ -184,4 +179,4 @@ Questo è il suo contenuto:
Cordiali saluti, Cordiali saluti,
%blogtitle% %blogtitle%
MAIL; ';

View File

@ -13,12 +13,10 @@ add_action('wp_head', 'plugin_jquery_head', 0);
function plugin_jquery_head() { function plugin_jquery_head() {
$pdir = plugin_geturl('jquery'); $pdir = plugin_geturl('jquery');
echo <<<JSUTILS echo '<!-- start of jsUtils -->
<!-- start of jsUtils -->
<script type="text/javascript" src="{$pdir}res/jquery/3.5.1/jquery-3.5.1.min.js"></script> <script type="text/javascript" src="{$pdir}res/jquery/3.5.1/jquery-3.5.1.min.js"></script>
<script type="text/javascript" src="{$pdir}res/jqueryui/1.12.1/jquery-ui.min.js"></script> <script type="text/javascript" src="{$pdir}res/jqueryui/1.12.1/jquery-ui.min.js"></script>
<!-- end of jsUtils --> <!-- end of jsUtils -->';
JSUTILS;
} }
?> ?>

View File

@ -18,21 +18,17 @@ function plugin_lightbox2_setup() {
function plugin_lightbox2_head() { function plugin_lightbox2_head() {
$pdir = plugin_geturl('lightbox2'); $pdir = plugin_geturl('lightbox2');
echo <<<LBOXHEAD echo '<!-- start of lightbox -->
<!-- start of lightbox -->
<link rel="stylesheet" type="text/css" href="{$pdir}res/slimbox2.css" /> <link rel="stylesheet" type="text/css" href="{$pdir}res/slimbox2.css" />
<!-- end of lightbox --> <!-- end of lightbox -->';
LBOXHEAD;
} }
add_action('wp_head', 'plugin_lightbox2_head'); add_action('wp_head', 'plugin_lightbox2_head');
function plugin_lightbox2_footer() { function plugin_lightbox2_footer() {
$pdir = plugin_geturl('lightbox2'); $pdir = plugin_geturl('lightbox2');
echo <<<LBOXHEAD echo '<!-- start of lightbox -->
<!-- start of lightbox -->
<script type="text/javascript" src="{$pdir}res/slimbox2.js"></script> <script type="text/javascript" src="{$pdir}res/slimbox2.js"></script>
<!-- end of lightbox --> <!-- end of lightbox -->';
LBOXHEAD;
} }
add_action('wp_footer', 'plugin_lightbox2_footer'); add_action('wp_footer', 'plugin_lightbox2_footer');
@ -42,4 +38,3 @@ function plugin_lightbox2_hook($popup, $abspath) {
return $lightbox_rel ? "rel=\"lightbox[$lightbox_rel]\"" : ' rel="lightbox"'; return $lightbox_rel ? "rel=\"lightbox[$lightbox_rel]\"" : ' rel="lightbox"';
} }
add_action('bbcode_img_popup', 'plugin_lightbox2_hook', 5, 2); add_action('bbcode_img_popup', 'plugin_lightbox2_hook', 5, 2);

View File

@ -613,7 +613,7 @@ if (class_exists('AdminPanelAction')) {
$txt = io_load_file($f); $txt = io_load_file($f);
if (!$txt) { if (!$txt) {
$txt = <<<STR $txt = '
# Thanks again WP :) # Thanks again WP :)
@ -624,7 +624,7 @@ if (class_exists('AdminPanelAction')) {
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . {$blogroot}index.php [L] RewriteRule . {$blogroot}index.php [L]
</IfModule> </IfModule>
STR; ';
} }
$this->smarty->assign('cantsave', (!is_writable(ABS_PATH) || (file_exists($f) && !is_writable($f)))); $this->smarty->assign('cantsave', (!is_writable(ABS_PATH) || (file_exists($f) && !is_writable($f))));

View File

@ -70,18 +70,15 @@ $lang ['buttonbar'] = array(
$lang ['samplecontent'] = array(); $lang ['samplecontent'] = array();
$lang ['samplecontent'] ['menu'] ['subject'] = 'Menu'; $lang ['samplecontent'] ['menu'] ['subject'] = 'Menu';
$lang ['samplecontent'] ['menu'] ['content'] = <<<MENU $lang ['samplecontent'] ['menu'] ['content'] = '[list]
[list]
[*][url=?]Home[/url] [*][url=?]Home[/url]
[*][url=?paged=1]Blog[/url] [*][url=?paged=1]Blog[/url]
[*][url=static.php?page=about]About[/url] [*][url=static.php?page=about]About[/url]
[*][url=contact.php]Contact[/url] [*][url=contact.php]Contact[/url]
[/list] [/list]';
MENU;
$lang ['samplecontent'] ['entry'] ['subject'] = 'Welcome to FlatPress!'; $lang ['samplecontent'] ['entry'] ['subject'] = 'Welcome to FlatPress!';
$lang ['samplecontent'] ['entry'] ['content'] = <<<CONT $lang ['samplecontent'] ['entry'] ['content'] = 'This is a sample entry, posted to show you some of the features of [url=https://www.flatpress.org]FlatPress[/url].
This is a sample entry, posted to show you some of the features of [url=https://www.flatpress.org]FlatPress[/url].
The more tag allows you to create a "jump" between an excerpt and the complete article. The more tag allows you to create a "jump" between an excerpt and the complete article.
@ -94,7 +91,7 @@ The default way to style and format your content is [url=http://wiki.flatpress.o
[quote]There are also [b]quote[/b] blocks to display your favourite quotations. [/quote] [quote]There are also [b]quote[/b] blocks to display your favourite quotations. [/quote]
[code]And 'code' displays your snippets in a monospaced fashion. [code]And \'code\' displays your snippets in a monospaced fashion.
It also supports It also supports
indented content.[/code] indented content.[/code]
@ -122,7 +119,7 @@ You can find two [b]static pages[/b] ready to accept your contents:
[h4]Widgets[/h4] [h4]Widgets[/h4]
There isn't a single fixed element in the sidebar(s). All the elements you can find in the bars sourrounding this text are completely positionable, and most of them are customizable as well. Some themes even provide a panel interface in the admin area. There isn\'t a single fixed element in the sidebar(s). All the elements you can find in the bars sourrounding this text are completely positionable, and most of them are customizable as well. Some themes even provide a panel interface in the admin area.
These elements are called [b]widgets[/b]. For more on widgets and [url=https://wiki.flatpress.org/doc:tips:widgets]some tips[/url] to get nice effects, take a look at the [url=https://wiki.flatpress.org/]wiki[/url]. These elements are called [b]widgets[/b]. For more on widgets and [url=https://wiki.flatpress.org/doc:tips:widgets]some tips[/url] to get nice effects, take a look at the [url=https://wiki.flatpress.org/]wiki[/url].
@ -132,9 +129,9 @@ These elements are called [b]widgets[/b]. For more on widgets and [url=https://w
Want to see more? Want to see more?
[list] [list]
[*]Follow the [url=https://www.flatpress.org/?x]official blog[/url] to know what's going on in the FlatPress world [*]Follow the [url=https://www.flatpress.org/?x]official blog[/url] to know what\'s going on in the FlatPress world
[*]Visit the [url=https://forum.flatpress.org/]forum[/url] for support and chit-chat [*]Visit the [url=https://forum.flatpress.org/]forum[/url] for support and chit-chat
[*]Get [b]great themes[/b] from [url=https://wiki.flatpress.org/res:themes]other users' submissions[/url]! [*]Get [b]great themes[/b] from [url=https://wiki.flatpress.org/res:themes]other users\' submissions[/url]!
[*]Check out the [url=https://wiki.flatpress.org/res:plugins]unofficial plugins[/url] [*]Check out the [url=https://wiki.flatpress.org/res:plugins]unofficial plugins[/url]
[*]Get [url=https://wiki.flatpress.org/res:language]translation pack[/url] for your language [*]Get [url=https://wiki.flatpress.org/res:language]translation pack[/url] for your language
[/list] [/list]
@ -159,7 +156,7 @@ Have fun! :)
[i]The [url=https://www.flatpress.org]FlatPress[/url] Team[/i] [i]The [url=https://www.flatpress.org]FlatPress[/url] Team[/i]
CONT; ';
$lang ['samplecontent'] ['about'] ['subject'] = 'About'; $lang ['samplecontent'] ['about'] ['subject'] = 'About';
$lang ['samplecontent'] ['about'] ['content'] = "Write something about yourself here. ([url=admin.php?p=static&action=write&page=about]Edit me![/url])"; $lang ['samplecontent'] ['about'] ['content'] = "Write something about yourself here. ([url=admin.php?p=static&action=write&page=about]Edit me![/url])";

View File

@ -70,18 +70,15 @@ $lang ['buttonbar'] = array(
$lang ['samplecontent'] = array(); $lang ['samplecontent'] = array();
$lang ['samplecontent'] ['menu'] ['subject'] = 'Menu'; $lang ['samplecontent'] ['menu'] ['subject'] = 'Menu';
$lang ['samplecontent'] ['menu'] ['content'] = <<<MENU $lang ['samplecontent'] ['menu'] ['content'] = '[list]
[list]
[*][url=?]Home[/url] [*][url=?]Home[/url]
[*][url=?paged=1]Blog[/url] [*][url=?paged=1]Blog[/url]
[*][url=static.php?page=about]Informazioni sul sito[/url] [*][url=static.php?page=about]Informazioni sul sito[/url]
[*][url=contact.php]Contatti[/url] [*][url=contact.php]Contatti[/url]
[/list] [/list]';
MENU;
$lang ['samplecontent'] ['entry'] ['subject'] = 'Benvenuto su FlatPress!'; $lang ['samplecontent'] ['entry'] ['subject'] = 'Benvenuto su FlatPress!';
$lang ['samplecontent'] ['entry'] ['content'] = <<<CONT $lang ['samplecontent'] ['entry'] ['content'] = 'Questo è un articolo di prova, inserito mer mostrarti alcune delle funzioni di [url=https://www.flatpress.org]FlatPress[/url].
Questo è un articolo di prova, inserito mer mostrarti alcune delle funzioni di [url=https://www.flatpress.org]FlatPress[/url].
Il tag more ti consente di crare un "salto" tra un estratto e l\'articolo completo. Il tag more ti consente di crare un "salto" tra un estratto e l\'articolo completo.
@ -94,7 +91,7 @@ Il modo predefinito dell\'aspetto e del contenuto dell\'articolo è [url=http://
[quote]Ci sono anche i blocchi [b]citazione[/b] per mostrare le tue citazioni preferite. [/quote] [quote]Ci sono anche i blocchi [b]citazione[/b] per mostrare le tue citazioni preferite. [/quote]
[code]E il tag 'code' mmostra dei pezzetti di codice in uno stile monospaziale. [code]E il tag \'code\' mmostra dei pezzetti di codice in uno stile monospaziale.
Inoltre supporta Inoltre supporta
il contenuto indentato.[/code] il contenuto indentato.[/code]
@ -159,7 +156,7 @@ Buon divertimento! :)
[i]Il Team di [url=https://www.flatpress.org]FlatPress[/url][/i] [i]Il Team di [url=https://www.flatpress.org]FlatPress[/url][/i]
CONT; ';
$lang ['samplecontent'] ['about'] ['subject'] = 'Chi sono'; $lang ['samplecontent'] ['about'] ['subject'] = 'Chi sono';
$lang ['samplecontent'] ['about'] ['content'] = "Scrivi qui qualcosa su di te. ([url=admin.php?p=static&action=write&page=about]Modificami![/url])"; $lang ['samplecontent'] ['about'] ['content'] = "Scrivi qui qualcosa su di te. ([url=admin.php?p=static&action=write&page=about]Modificami![/url])";

View File

@ -1,11 +1,10 @@
<?php <?php
/* /*
LangId: Japanese * LangId: Japanese
*/ */
$lang ['locked'] = array( $lang ['locked'] = array(
'head' => 'セットアップは中断されました.', 'head' => 'セットアップは中断されました.',
'descr' => 'descr' => 'ロックファイル「<code>%s</code>」がサーバ上に存在しますので,
'ロックファイル「<code>%s</code>」がサーバ上に存在しますので,
すでにセットアップ済みと判断しました. すでにセットアップ済みと判断しました.
もしセットアップをやり直したいのであれば, まずこのロックファイルをサーバ上から削除してください. もしセットアップをやり直したいのであれば, まずこのロックファイルをサーバ上から削除してください.
@ -20,8 +19,7 @@ LangId: Japanese
$lang ['step1'] = array( $lang ['step1'] = array(
'head' => 'ようこそFlatPressへ', 'head' => 'ようこそFlatPressへ',
'descr' => 'descr' => '<strong>FlatPress</strong>を選んでくださり, 感謝申し上げます!
'<strong>FlatPress</strong>を選んでくださり, 感謝申し上げます!
新規のブログをお楽しみいただく前に, 少しばかりお尋ねします. 新規のブログをお楽しみいただく前に, 少しばかりお尋ねします.
@ -30,39 +28,32 @@ LangId: Japanese
'descrl1' => 'Select your language.', 'descrl1' => 'Select your language.',
'descrl2' => '<a class="hint" onclick="toggleinfo();">Not in the list?</a>', 'descrl2' => '<a class="hint" onclick="toggleinfo();">Not in the list?</a>',
'descrlang' => 'descrlang' => 'If you don\'t see your language in this list, you might want to see if there is <a href="http://wiki.flatpress.org/res:language">a language pack</a> for this version:
'If you don\'t see your language in this list, you might want to see if there is <a href="http://wiki.flatpress.org/res:language">a language pack</a> for this version:
<pre>%s</pre> <pre>%s</pre>
To install the language pack, upload the content of the package in your <code>flatpress/</code>, and overwrite all, then <a href="./setup.php">restart this setup</a>.', To install the language pack, upload the content of the package in your <code>flatpress/</code>, and overwrite all, then <a href="./setup.php">restart this setup</a>.',
'descrw' => 'descrw' => 'FlatPressが動作するために必須な<strong>たったひとつのこと</strong>は、<em>書き込み可能な</em>ディレクトリを用意することです.
'FlatPressが動作するために必須な<strong>たったひとつのこと</strong>は、<em>書き込み可能な</em>ディレクトリを用意することです.
次のディレクトリを<a class="hint" href="http://wiki.flatpress.org/doc:setup#making_the_contents_directory_writable">書き込み可能な</a>パーミッションに変更してから続けて下さい. 次のディレクトリを<a class="hint" href="http://wiki.flatpress.org/doc:setup#making_the_contents_directory_writable">書き込み可能な</a>パーミッションに変更してから続けて下さい.
<pre>%s</pre>' <pre>%s</pre>'
); );
$lang ['step2'] = array( $lang ['step2'] = array(
'head' => '管理ユーザの作成', 'head' => '管理ユーザの作成',
'descr' => 'descr' => '次の各欄にご記入ください:',
'次の各欄にご記入ください:',
'fpuser' => 'ユーザ名', 'fpuser' => 'ユーザ名',
'fppwd' => 'ログインパスワード(英数6文字以上)', 'fppwd' => 'ログインパスワード(英数6文字以上)',
'fppwd2' => 'ログインパスワードの再入力', 'fppwd2' => 'ログインパスワードの再入力',
'www' => 'ホームページurl', 'www' => 'ホームページurl',
'email' => 'E-Mailアドレス' 'email' => 'E-Mailアドレス'
); );
$lang ['step3'] = array( $lang ['step3'] = array(
'head' => 'はい, おしまいです', 'head' => 'はい, おしまいです',
'descr' => 'descr' => '<strong>作業は終了しました</strong>.
'<strong>作業は終了しました</strong>.
信じられないって? 信じられないって?
@ -77,7 +68,6 @@ LangId: Japanese
</ul> </ul>
最後に, FlatPress を選んでくださって感謝申し上げます!' 最後に, FlatPress を選んでくださって感謝申し上げます!'
); );
$lang ['buttonbar'] = array( $lang ['buttonbar'] = array(
@ -87,18 +77,15 @@ LangId: Japanese
$lang ['samplecontent'] = array(); $lang ['samplecontent'] = array();
$lang ['samplecontent'] ['menu'] ['subject'] = 'Menu'; $lang ['samplecontent'] ['menu'] ['subject'] = 'Menu';
$lang['samplecontent']['menu']['content'] = <<<MENU $lang ['samplecontent'] ['menu'] ['content'] = '[list]
[list]
[*][url=?]Home[/url] [*][url=?]Home[/url]
[*][url=?paged=1]Blog[/url] [*][url=?paged=1]Blog[/url]
[*][url=static.php?page=about]About[/url] [*][url=static.php?page=about]About[/url]
[*][url=contact.php]Contact[/url] [*][url=contact.php]Contact[/url]
[/list] [/list]';
MENU;
$lang ['samplecontent'] ['entry'] ['subject'] = 'Welcome to FlatPress!'; $lang ['samplecontent'] ['entry'] ['subject'] = 'Welcome to FlatPress!';
$lang['samplecontent']['entry']['content'] = <<<CONT $lang ['samplecontent'] ['entry'] ['content'] = 'This is a sample entry, posted to show you some of the features of [url=http://www.flatpress.org]FlatPress[/url].
This is a sample entry, posted to show you some of the features of [url=http://www.flatpress.org]FlatPress[/url].
The more tag allows you to create a "jump" between an excerpt and the complete article. The more tag allows you to create a "jump" between an excerpt and the complete article.
@ -114,7 +101,7 @@ There are also [b]quote[/b] blocks to display your favourite quotations.
[/quote] [/quote]
[code] [code]
and 'code' displays your snippets in a monospaced fashion and \'code\' displays your snippets in a monospaced fashion
[/code] [/code]
img and url tag have also special options. You can find out more on the [url=http://www.flatpress.org]FP official website[/url]. img and url tag have also special options. You can find out more on the [url=http://www.flatpress.org]FP official website[/url].
@ -136,7 +123,7 @@ We have created some more sample content, to show you some of the FP well hidden
[h4]Widgets[/h4] [h4]Widgets[/h4]
There isn't a single fixed element in the sidebar(s). All the elements you can find in the bars sourrounding this text are completely positionable, and most of them are customizable as well. Some themes even provide a panel interface in the admin area. There isn\'t a single fixed element in the sidebar(s). All the elements you can find in the bars sourrounding this text are completely positionable, and most of them are customizable as well. Some themes even provide a panel interface in the admin area.
These elements are called [url=http://wiki.flatpress.org/doc:widgets]widgets[/url]. These elements are called [url=http://wiki.flatpress.org/doc:widgets]widgets[/url].
@ -148,9 +135,9 @@ For more on widgets and [url=http://wiki.flatpress.org/doc:tips:widgets]some tip
Want to see more? Want to see more?
[list] [list]
[*]Follow the [url=http://www.flatpress.org/home/blog.php]official blog[/url] to know what's going on in the FlatPress world [*]Follow the [url=http://www.flatpress.org/home/blog.php]official blog[/url] to know what\'s going on in the FlatPress world
[*]Go to the [url=http://www.flatpress.org/forums/categories.php]forums[/url] for support and chit-chat [*]Go to the [url=http://www.flatpress.org/forums/categories.php]forums[/url] for support and chit-chat
[*]Get [b]great themes[/b] on the [url=http://themes.flatpress.org]editor's pick[/url] site or choose from [url=http://wiki.flatpress.org/res:themes]other users' submissions[/url]! [*]Get [b]great themes[/b] on the [url=http://themes.flatpress.org]editor\'s pick[/url] site or choose from [url=http://wiki.flatpress.org/res:themes]other users\' submissions[/url]!
[*]Check out the [url=http://wiki.flatpress.org/res:plugins]unofficial plugins[/url] [*]Check out the [url=http://wiki.flatpress.org/res:plugins]unofficial plugins[/url]
[*]Get [url=http://wiki.flatpress.org/res:language]translation pack[/url] for your language [*]Get [url=http://wiki.flatpress.org/res:language]translation pack[/url] for your language
[/list] [/list]
@ -175,11 +162,9 @@ Have fun! :)
[i][url=http://www.nowhereland.it]NoWhereMan[/url] and the FlatPress Team[/i] [i][url=http://www.nowhereland.it]NoWhereMan[/url] and the FlatPress Team[/i]
CONT; ';
$lang ['samplecontent'] ['about'] ['subject'] = 'About'; $lang ['samplecontent'] ['about'] ['subject'] = 'About';
$lang['samplecontent']['about']['content'] = $lang ['samplecontent'] ['about'] ['content'] = "Write something about yourself here ([url=admin.php?p=static&action=write&page=about]Edit me![/url])";
"Write something about yourself here ([url=admin.php?p=static&action=write&page=about]Edit me![/url])";
?> ?>

View File

@ -4,7 +4,6 @@
*/ */
// TERMINADO! // TERMINADO!
$lang ['locked'] = array( $lang ['locked'] = array(
'head' => 'A instalação foi bloqueada.', 'head' => 'A instalação foi bloqueada.',
'descr' => 'Parece que você executou a instalação, porque 'descr' => 'Parece que você executou a instalação, porque
@ -73,20 +72,17 @@ $lang ['buttonbar'] = array(
$lang ['samplecontent'] = array(); $lang ['samplecontent'] = array();
$lang ['samplecontent'] ['menu'] ['subject'] = 'Menu'; $lang ['samplecontent'] ['menu'] ['subject'] = 'Menu';
$lang ['samplecontent'] ['menu'] ['content'] = <<<MENU $lang ['samplecontent'] ['menu'] ['content'] = '[list]
[list]
[*][url=?]Início[/url] [*][url=?]Início[/url]
[*][url=?paged=1]Blog[/url] [*][url=?paged=1]Blog[/url]
[*][url=static.php?page=about]Sobre[/url] [*][url=static.php?page=about]Sobre[/url]
[*][url=contact.php]Contato[/url] [*][url=contact.php]Contato[/url]
[/list] [/list]';
MENU;
$lang ['samplecontent'] ['entry'] ['subject'] = 'Bem vindo ao FlatPress!'; $lang ['samplecontent'] ['entry'] ['subject'] = 'Bem vindo ao FlatPress!';
$lang ['samplecontent'] ['entry'] ['content'] = <<<CONT $lang ['samplecontent'] ['entry'] ['content'] = 'Esta é uma entrada de amostra, postada para mostrar alguns dos recursos do [url=https://www.flatpress.org]FlatPress[/url].
Esta é uma entrada de amostra, postada para mostrar alguns dos recursos do [url=https://www.flatpress.org]FlatPress[/url].
A tag 'more' permite criar um "salto" entre um trecho e o artigo completo. A tag \'more\' permite criar um "salto" entre um trecho e o artigo completo.
[more] [more]
@ -97,7 +93,7 @@ A maneira padrão de estilizar e formatar seu conteúdo é [url=http://wiki.flat
[quote]Também existem[b]quote[/b] blocos para exibir suas cotações favoritas. [/quote] [quote]Também existem[b]quote[/b] blocos para exibir suas cotações favoritas. [/quote]
[code] E 'code' exibe seus trechos de maneira monoespaçada. Também suporta conteúdo recuado. [/code] [code] E \'code\' exibe seus trechos de maneira monoespaçada. Também suporta conteúdo recuado. [/code]
img e url tag têm opções especiais. Pode descobrir mais no [url=https://wiki.flatpress.org/doc:plugins:bbcode]FP wiki[/url]. img e url tag têm opções especiais. Pode descobrir mais no [url=https://wiki.flatpress.org/doc:plugins:bbcode]FP wiki[/url].
@ -160,7 +156,7 @@ Diverta-se! :-)
[i]A Tripulação de [url=https://www.flatpress.org]FlatPress[/url][/i] [i]A Tripulação de [url=https://www.flatpress.org]FlatPress[/url][/i]
CONT; ';
$lang ['samplecontent'] ['about'] ['subject'] = 'Sobre'; $lang ['samplecontent'] ['about'] ['subject'] = 'Sobre';
$lang ['samplecontent'] ['about'] ['content'] = "Escreva algo sobre você aqui. ([url=admin.php?p=static&action=write&page=about]Me edite![/url])"; $lang ['samplecontent'] ['about'] ['content'] = "Escreva algo sobre você aqui. ([url=admin.php?p=static&action=write&page=about]Me edite![/url])";