summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorthomascube <thomas@roundcube.net>2009-10-28 16:16:09 +0000
committerthomascube <thomas@roundcube.net>2009-10-28 16:16:09 +0000
commitdba307ffd9dcc2bb9cb5966036709691b9e5026e (patch)
tree749cdcda5b6d2e97414fa3e7b7314f80acc93e56 /plugins
parentebbb6a50c49a7ccfeadf6b98fb337f1e06727033 (diff)
Localize vcard_attachments plugin + add Russian translation for archive plugin
Diffstat (limited to 'plugins')
-rw-r--r--plugins/archive/localization/ru_RU.inc8
-rw-r--r--plugins/vcard_attachments/localization/de_CH.inc7
-rw-r--r--plugins/vcard_attachments/localization/de_DE.inc7
-rw-r--r--plugins/vcard_attachments/localization/en_US.inc7
-rw-r--r--plugins/vcard_attachments/localization/ru_RU.inc7
-rw-r--r--plugins/vcard_attachments/vcard_attachments.php12
6 files changed, 44 insertions, 4 deletions
diff --git a/plugins/archive/localization/ru_RU.inc b/plugins/archive/localization/ru_RU.inc
new file mode 100644
index 000000000..e377ad017
--- /dev/null
+++ b/plugins/archive/localization/ru_RU.inc
@@ -0,0 +1,8 @@
+<?php
+
+$labels = array();
+$labels['buttontitle'] = 'Переместить выбранное в архив';
+$labels['archived'] = 'Перенесено в Архив';
+$labels['archivefolder'] = 'Архив';
+
+?>
diff --git a/plugins/vcard_attachments/localization/de_CH.inc b/plugins/vcard_attachments/localization/de_CH.inc
new file mode 100644
index 000000000..dcc8ce713
--- /dev/null
+++ b/plugins/vcard_attachments/localization/de_CH.inc
@@ -0,0 +1,7 @@
+<?php
+
+$labels = array();
+$labels['addvardmsg'] = 'Kontakt im Adressbuch speichern';
+$labels['vcardsavefailed'] = 'Der Kontakt konnte nicht gespeichert werden';
+
+?> \ No newline at end of file
diff --git a/plugins/vcard_attachments/localization/de_DE.inc b/plugins/vcard_attachments/localization/de_DE.inc
new file mode 100644
index 000000000..dcc8ce713
--- /dev/null
+++ b/plugins/vcard_attachments/localization/de_DE.inc
@@ -0,0 +1,7 @@
+<?php
+
+$labels = array();
+$labels['addvardmsg'] = 'Kontakt im Adressbuch speichern';
+$labels['vcardsavefailed'] = 'Der Kontakt konnte nicht gespeichert werden';
+
+?> \ No newline at end of file
diff --git a/plugins/vcard_attachments/localization/en_US.inc b/plugins/vcard_attachments/localization/en_US.inc
new file mode 100644
index 000000000..59a36e9bd
--- /dev/null
+++ b/plugins/vcard_attachments/localization/en_US.inc
@@ -0,0 +1,7 @@
+<?php
+
+$labels = array();
+$labels['addvardmsg'] = 'Add vCard to addressbook';
+$labels['vcardsavefailed'] = 'Unable to save vCard';
+
+?> \ No newline at end of file
diff --git a/plugins/vcard_attachments/localization/ru_RU.inc b/plugins/vcard_attachments/localization/ru_RU.inc
new file mode 100644
index 000000000..e127b58d6
--- /dev/null
+++ b/plugins/vcard_attachments/localization/ru_RU.inc
@@ -0,0 +1,7 @@
+<?php
+
+$labels = array();
+$labels['addvardmsg'] = 'Добавить в контакты';
+$labels['vcardsavefailed'] = 'Не удалось сохранить vCard';
+
+?> \ No newline at end of file
diff --git a/plugins/vcard_attachments/vcard_attachments.php b/plugins/vcard_attachments/vcard_attachments.php
index 532311e55..d23cf37b1 100644
--- a/plugins/vcard_attachments/vcard_attachments.php
+++ b/plugins/vcard_attachments/vcard_attachments.php
@@ -35,6 +35,9 @@ class vcard_attachments extends rcube_plugin
if (in_array($attachment->mimetype, array('text/vcard', 'text/x-vcard')))
$this->vcard_part = $attachment->mime_id;
}
+
+ if ($this->vcard_part)
+ $this->add_texts('localization');
}
/**
@@ -57,7 +60,7 @@ class vcard_attachments extends rcube_plugin
html::a(array(
'href' => "#",
'onclick' => "return plugin_vcard_save_contact('".JQ($this->vcard_part)."')",
- 'title' => "Save contact in local address book"), // TODO: localize this title
+ 'title' => $this->gettext('addvardmsg')),
html::img(array('src' => $this->url('vcard_add_contact.png'), 'align' => "middle")))
. ' ' . html::span(null, Q($display)));
@@ -73,6 +76,8 @@ class vcard_attachments extends rcube_plugin
*/
function save_vcard()
{
+ $this->add_texts('localization', true);
+
$uid = get_input_value('_uid', RCUBE_INPUT_POST);
$mbox = get_input_value('_mbox', RCUBE_INPUT_POST);
$mime_id = get_input_value('_part', RCUBE_INPUT_POST);
@@ -80,7 +85,7 @@ class vcard_attachments extends rcube_plugin
$rcmail = rcmail::get_instance();
$part = $uid && $mime_id ? $rcmail->imap->get_message_part($uid, $mime_id) : null;
- $error_msg = 'Failed to saved vcard'; // TODO: localize this text
+ $error_msg = $this->gettext('vcardsavefailed');
if ($part && ($vcard = new rcube_vcard($part)) && $vcard->displayname && $vcard->email) {
$contacts = $rcmail->get_address_book(null, true);
@@ -111,5 +116,4 @@ class vcard_attachments extends rcube_plugin
$rcmail->output->send();
}
-
-} \ No newline at end of file
+}