1
0
Fork 0

Merge pull request #144 from ivlevdenis/master

Add Russian translation
This commit is contained in:
Adam Dobrawy 2017-07-09 17:17:27 +02:00 committed by GitHub
commit ecec57a78c
7 changed files with 219 additions and 3 deletions

View file

@ -5,3 +5,5 @@ recursive-include django_mailbox *.eml
recursive-include docs *.py recursive-include docs *.py
recursive-include docs *.rst recursive-include docs *.rst
recursive-include docs Makefile recursive-include docs Makefile
recursive-include django_mailbox/locale *.po
recursive-include django_mailbox/locale *.mo

View file

@ -1 +1,3 @@
__version__ = '4.5.4' __version__ = '4.5.4'
default_app_config = 'django_mailbox.apps.MailBoxConfig'

View file

@ -10,6 +10,7 @@ import logging
from django.conf import settings from django.conf import settings
from django.contrib import admin from django.contrib import admin
from django.utils.translation import ugettext_lazy as _
from django_mailbox.models import MessageAttachment, Message, Mailbox from django_mailbox.models import MessageAttachment, Message, Mailbox
from django_mailbox.signals import message_received from django_mailbox.signals import message_received
@ -25,7 +26,7 @@ def get_new_mail(mailbox_admin, request, queryset):
mailbox.get_new_mail() mailbox.get_new_mail()
get_new_mail.short_description = 'Get new mail' get_new_mail.short_description = _('Get new mail')
def resend_message_received_signal(message_admin, request, queryset): def resend_message_received_signal(message_admin, request, queryset):
@ -35,7 +36,7 @@ def resend_message_received_signal(message_admin, request, queryset):
resend_message_received_signal.short_description = ( resend_message_received_signal.short_description = (
'Re-send message received signal' _('Re-send message received signal')
) )
@ -65,6 +66,8 @@ class MessageAdmin(admin.ModelAdmin):
def attachment_count(self, msg): def attachment_count(self, msg):
return msg.attachments.count() return msg.attachments.count()
attachment_count.short_description = _('Attachment count')
def subject(self, msg): def subject(self, msg):
return convert_header_to_unicode(msg.subject) return convert_header_to_unicode(msg.subject)

7
django_mailbox/apps.py Normal file
View file

@ -0,0 +1,7 @@
from django.apps import AppConfig
from django.utils.translation import ugettext_lazy as _
class MailBoxConfig(AppConfig):
name = 'django_mailbox'
verbose_name = _("Mail Box")

Binary file not shown.

View file

@ -0,0 +1,193 @@
# SOME DESCRIPTIVE TITLE.
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-07-09 05:36-0500\n"
"PO-Revision-Date: 2017-07-09 13:37+0300\n"
"Last-Translator: Ivlev Denis <di-erz@yandex.ru>\n"
"Language-Team: \n"
"Language: ru_RU\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=4; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<12 || n%100>14) ? 1 : n%10==0 || (n%10>=5 && n%10<=9) || (n"
"%100>=11 && n%100<=14)? 2 : 3);\n"
"X-Generator: Poedit 1.8.7.1\n"
#: django_mailbox/admin.py:29
msgid "Get new mail"
msgstr "Получить новые сообщения"
#: django_mailbox/admin.py:39
msgid "Re-send message received signal"
msgstr "Повторно отправить сигнал о получении"
#: django_mailbox/admin.py:69
msgid "Attachment count"
msgstr "Кол-во вложений"
#: django_mailbox/apps.py:7
msgid "Mail Box"
msgstr "Почтовый ящик"
#: django_mailbox/models.py:49
msgid "Name"
msgstr "Название"
#: django_mailbox/models.py:54
msgid "URI"
msgstr "URI"
#: django_mailbox/models.py:57
msgid ""
"Example: imap+ssl://myusername:mypassword@someserver <br /><br />Internet "
"transports include 'imap' and 'pop3'; common local file transports include "
"'maildir', 'mbox', and less commonly 'babyl', 'mh', and 'mmdf'. <br /><br /"
">Be sure to urlencode your username and password should they contain illegal "
"characters (like @, :, etc)."
msgstr ""
"Пример: imap+ssl://myusername:mypassword@someserver <br /><br />Интернет-"
"транспорт может быть 'imap' или 'pop3'; поддерживаются локальные файловые "
"транспорты 'maildir', 'mbox', а также 'babyl', 'mh', and 'mmdf'. <br /><br /"
">Используйте urlencode, если имя пользователя или пароль содержат "
"недопустипые символы (@, :, и т.д.)."
#: django_mailbox/models.py:72
msgid "From email"
msgstr "От"
#: django_mailbox/models.py:75
msgid ""
"Example: MailBot &lt;mailbot@yourdomain.com&gt;<br />'From' header to set "
"for outgoing email.<br /><br />If you do not use this e-mail inbox for "
"outgoing mail, this setting is unnecessary.<br />If you send e-mail without "
"setting this, your 'From' header will'be set to match the setting "
"`DEFAULT_FROM_EMAIL`."
msgstr ""
"Пример: MailBot &lt;mailbot@yourdomain.com&gt;<br />Исходящая электронная "
"почта.<br /><br />Если вы не используете этот почтовый ящик для исходящей "
"почты, этот параметр не нужен.<br />Если вы не указали данный параметр, "
"будет использоваться указанный в настройках `DEFAULT_FROM_EMAIL`."
#: django_mailbox/models.py:89
msgid "Active"
msgstr "Активный"
#: django_mailbox/models.py:91
msgid ""
"Check this e-mail inbox for new e-mail messages during polling cycles. This "
"checkbox does not have an effect upon whether mail is collected here when "
"this mailbox receives mail from a pipe, and does not affect whether e-mail "
"messages can be dispatched from this mailbox. "
msgstr ""
"Параметр указывает на необходимость проверки почтового ящика на наличие "
"новых сообщений в цикле опроса. Этот флажок не влияет на сбор почты, когда "
"этот почтовый ящик получает почту из канала и не влияет на отправку "
"сообщений электронной почты из этого почтового ящика."
#: django_mailbox/models.py:102
msgid "Last polling"
msgstr "Последний опрос"
#: django_mailbox/models.py:103
msgid ""
"The time of last successful polling for messages.It is blank for new "
"mailboxes and is not set for mailboxes that only receive messages via a pipe."
msgstr ""
"Время последнего успешного опроса сообщений. Для нового почтового ящика не "
"установлено. Также не устанавливается для почтовых ящиков "
"обновляющих сообщения через pipe."
#: django_mailbox/models.py:409 django_mailbox/models.py:438
msgid "Mailbox"
msgstr "Почтовый ящик"
#: django_mailbox/models.py:410
msgid "Mailboxes"
msgstr "Почтовые ящики"
#: django_mailbox/models.py:442
msgid "Subject"
msgstr "Тема"
#: django_mailbox/models.py:447
msgid "Message ID"
msgstr "Идентификатор сообщения"
#: django_mailbox/models.py:456
msgid "In reply to"
msgstr "В ответ на"
#: django_mailbox/models.py:460
msgid "From header"
msgstr "От(From)"
#: django_mailbox/models.py:465
msgid "To header"
msgstr "Кому(To)"
#: django_mailbox/models.py:469
msgid "Outgoing"
msgstr "Исходящее"
#: django_mailbox/models.py:475
msgid "Body"
msgstr "Тело"
#: django_mailbox/models.py:479
msgid "Encoded"
msgstr "Закодировано"
#: django_mailbox/models.py:481
msgid "True if the e-mail body is Base64 encoded"
msgstr "True если тело сообщения закодировано в Base64"
#: django_mailbox/models.py:485
msgid "Processed"
msgstr "Обработано"
#: django_mailbox/models.py:490
msgid "Read"
msgstr "Прочитано"
#: django_mailbox/models.py:497
msgid "Raw message contents"
msgstr "Исходное содержимое сообщения"
#: django_mailbox/models.py:500
msgid "Original full content of message"
msgstr "Полное содержимое сообщения"
#: django_mailbox/models.py:716
msgid "E-mail message"
msgstr "Сообщение"
#: django_mailbox/models.py:717
msgid "E-mail messages"
msgstr "Сообщения"
#: django_mailbox/models.py:726
msgid "Message"
msgstr "Сообщение"
#: django_mailbox/models.py:730
msgid "Headers"
msgstr "Заголовки"
#: django_mailbox/models.py:736
msgid "Document"
msgstr "Документ"
#: django_mailbox/models.py:793
msgid "Message attachment"
msgstr "Вложение"
#: django_mailbox/models.py:794
msgid "Message attachments"
msgstr "Вложения"

View file

@ -406,7 +406,8 @@ class Mailbox(models.Model):
return self.name return self.name
class Meta: class Meta:
verbose_name_plural = "Mailboxes" verbose_name = _('Mailbox')
verbose_name_plural = _('Mailboxes')
class IncomingMessageManager(models.Manager): class IncomingMessageManager(models.Manager):
@ -711,6 +712,10 @@ class Message(models.Model):
def __unicode__(self): def __unicode__(self):
return self.subject return self.subject
class Meta:
verbose_name = _('E-mail message')
verbose_name_plural = _('E-mail messages')
class MessageAttachment(models.Model): class MessageAttachment(models.Model):
message = models.ForeignKey( message = models.ForeignKey(
@ -783,3 +788,7 @@ class MessageAttachment(models.Model):
def __unicode__(self): def __unicode__(self):
return self.document.url return self.document.url
class Meta:
verbose_name = _('Message attachment')
verbose_name_plural = _('Message attachments')