From ee507cb18d8088ad8ab378ab2955690037dbd53e Mon Sep 17 00:00:00 2001 From: thomascube Date: Wed, 28 Oct 2009 16:26:37 +0000 Subject: Add localizations for subscriptions_option and new_user_dialog plugins --- plugins/new_user_dialog/localization/ru_RU.inc | 7 +++++++ .../subscriptions_option/localization/de_CH.inc | 6 ++++++ .../subscriptions_option/localization/de_DE.inc | 6 ++++++ .../subscriptions_option/localization/ru_RU.inc | 6 ++++++ .../subscriptions_option/subscriptions_option.php | 22 +++++++++++----------- 5 files changed, 36 insertions(+), 11 deletions(-) create mode 100644 plugins/new_user_dialog/localization/ru_RU.inc create mode 100644 plugins/subscriptions_option/localization/de_CH.inc create mode 100644 plugins/subscriptions_option/localization/de_DE.inc create mode 100644 plugins/subscriptions_option/localization/ru_RU.inc (limited to 'plugins') diff --git a/plugins/new_user_dialog/localization/ru_RU.inc b/plugins/new_user_dialog/localization/ru_RU.inc new file mode 100644 index 000000000..d1eb28e71 --- /dev/null +++ b/plugins/new_user_dialog/localization/ru_RU.inc @@ -0,0 +1,7 @@ + diff --git a/plugins/subscriptions_option/localization/de_CH.inc b/plugins/subscriptions_option/localization/de_CH.inc new file mode 100644 index 000000000..b4affe0c8 --- /dev/null +++ b/plugins/subscriptions_option/localization/de_CH.inc @@ -0,0 +1,6 @@ + diff --git a/plugins/subscriptions_option/localization/de_DE.inc b/plugins/subscriptions_option/localization/de_DE.inc new file mode 100644 index 000000000..b4affe0c8 --- /dev/null +++ b/plugins/subscriptions_option/localization/de_DE.inc @@ -0,0 +1,6 @@ + diff --git a/plugins/subscriptions_option/localization/ru_RU.inc b/plugins/subscriptions_option/localization/ru_RU.inc new file mode 100644 index 000000000..5deb84e0d --- /dev/null +++ b/plugins/subscriptions_option/localization/ru_RU.inc @@ -0,0 +1,6 @@ + diff --git a/plugins/subscriptions_option/subscriptions_option.php b/plugins/subscriptions_option/subscriptions_option.php index 09ee6e3df..ecbc4e238 100644 --- a/plugins/subscriptions_option/subscriptions_option.php +++ b/plugins/subscriptions_option/subscriptions_option.php @@ -46,9 +46,9 @@ class subscriptions_option extends rcube_plugin $checkbox = new html_checkbox(array('name' => '_use_subscriptions', 'id' => $field_id, 'value' => 1)); $args['blocks']['main']['options']['use_subscriptions'] = array( - 'title' => html::label($field_id, Q($this->gettext('useimapsubscriptions'))), + 'title' => html::label($field_id, Q($this->gettext('useimapsubscriptions'))), 'content' => $checkbox->show($use_subscriptions?1:0), - ); + ); } return $args; @@ -57,18 +57,18 @@ class subscriptions_option extends rcube_plugin function save_prefs($args) { if ($args['section'] == 'server') { - $rcmail = rcmail::get_instance(); + $rcmail = rcmail::get_instance(); $use_subscriptions = $rcmail->config->get('use_subscriptions'); - $args['prefs']['use_subscriptions'] = isset($_POST['_use_subscriptions']) ? true : false; + $args['prefs']['use_subscriptions'] = isset($_POST['_use_subscriptions']) ? true : false; - // if the use_subscriptions preference changes, flush the folder cache - if (($use_subscriptions && !isset($_POST['_use_subscriptions'])) || - (!$use_subscriptions && isset($_POST['_use_subscriptions']))) { - $rcmail->imap_init(true); - $rcmail->imap->clear_cache('mailboxes'); - } - } + // if the use_subscriptions preference changes, flush the folder cache + if (($use_subscriptions && !isset($_POST['_use_subscriptions'])) || + (!$use_subscriptions && isset($_POST['_use_subscriptions']))) { + $rcmail->imap_init(true); + $rcmail->imap->clear_cache('mailboxes'); + } + } return $args; } -- cgit v1.2.3