mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-28 10:53:39 +01:00
Test for overriding Horde's translations with our own
This commit is contained in:
parent
900fc840f2
commit
e0eb181373
BIN
api/lang/locale/de_DE.utf-8/LC_MESSAGES/Horde_Mime.mo
Normal file
BIN
api/lang/locale/de_DE.utf-8/LC_MESSAGES/Horde_Mime.mo
Normal file
Binary file not shown.
40
api/lang/locale/de_DE.utf-8/LC_MESSAGES/Horde_Mime.po
Normal file
40
api/lang/locale/de_DE.utf-8/LC_MESSAGES/Horde_Mime.po
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
# German translations for Horde_Mime module.
|
||||||
|
# Copyright 2010-2017 Horde LLC (http://www.horde.org/)
|
||||||
|
# This file is distributed under the same license as the Horde_Mime module.
|
||||||
|
# Automatically generated, 2010.
|
||||||
|
#
|
||||||
|
msgid ""
|
||||||
|
msgstr ""
|
||||||
|
"Project-Id-Version: Horde_Mime\n"
|
||||||
|
"Report-Msgid-Bugs-To: dev@lists.horde.org\n"
|
||||||
|
"POT-Creation-Date: 2015-01-08 11:22+0100\n"
|
||||||
|
"PO-Revision-Date: 2010-10-13 01:27+0200\n"
|
||||||
|
"Last-Translator: Automatically generated\n"
|
||||||
|
"Language-Team: i18n@lists.horde.org\n"
|
||||||
|
"Language: \n"
|
||||||
|
"MIME-Version: 1.0\n"
|
||||||
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
||||||
|
|
||||||
|
#: lib/Horde/Mime/Mdn.php:188
|
||||||
|
msgid "Disposition Notification"
|
||||||
|
msgstr "Empfangsbestätigung"
|
||||||
|
|
||||||
|
#: lib/Horde/Mime/Mail.php:439
|
||||||
|
msgid "HTML Version of Message"
|
||||||
|
msgstr "HTML-Version der Nachricht"
|
||||||
|
|
||||||
|
#: lib/Horde/Mime/Mail.php:437
|
||||||
|
msgid "Plaintext Version of Message"
|
||||||
|
msgstr "Textversion der Nachricht"
|
||||||
|
|
||||||
|
#: lib/Horde/Mime/Mdn.php:201
|
||||||
|
#, php-format
|
||||||
|
msgid ""
|
||||||
|
"The message sent on %s to %s with subject \"%s\" has been displayed.\n"
|
||||||
|
"\n"
|
||||||
|
"This is no guarantee that the message has been read or understood."
|
||||||
|
msgstr ""
|
||||||
|
"Die Nachricht mit dem Betreff \"%3$s\", die am %1$s an %2$s geschickt wurde, "
|
||||||
|
"ist angezeigt worden."
|
@ -27,6 +27,8 @@ use Horde_Mime_Magic;
|
|||||||
use Horde_Mail_Rfc822;
|
use Horde_Mail_Rfc822;
|
||||||
use Horde_Mail_Rfc822_List;
|
use Horde_Mail_Rfc822_List;
|
||||||
use Horde_Mime_Mdn;
|
use Horde_Mime_Mdn;
|
||||||
|
use Horde_Translation;
|
||||||
|
use Horde_Translation_Handler_Gettext;
|
||||||
use EGroupware\Api;
|
use EGroupware\Api;
|
||||||
|
|
||||||
use tidy;
|
use tidy;
|
||||||
@ -7248,6 +7250,10 @@ class Mail
|
|||||||
if (self::$debug) error_log(__METHOD__.__LINE__.array2string($identity));
|
if (self::$debug) error_log(__METHOD__.__LINE__.array2string($identity));
|
||||||
$headers = $this->getMessageHeader($uid, '', 'object', true, $_folder);
|
$headers = $this->getMessageHeader($uid, '', 'object', true, $_folder);
|
||||||
|
|
||||||
|
// Override Horde's translation with our own
|
||||||
|
Horde_Translation::setHandler('Horde_Mime', new Horde_Translation_Handler_Gettext('Horde_Mime', EGW_SERVER_ROOT.'/api/lang/locale'));
|
||||||
|
Preferences::setlocale();
|
||||||
|
|
||||||
$mdn = new Horde_Mime_Mdn($headers);
|
$mdn = new Horde_Mime_Mdn($headers);
|
||||||
$mdn->generate(true, true, 'displayed', php_uname('n'), $acc->smtpTransport(), array(
|
$mdn->generate(true, true, 'displayed', php_uname('n'), $acc->smtpTransport(), array(
|
||||||
'charset' => 'utf-8',
|
'charset' => 'utf-8',
|
||||||
|
Loading…
Reference in New Issue
Block a user