From ad84cf8cdbc1cc445876689c6f42fbebb8faa56a Mon Sep 17 00:00:00 2001 From: Roberto Rosario Date: Tue, 9 Apr 2019 00:53:17 -0400 Subject: [PATCH] Make mimetype app translatable Signed-off-by: Roberto Rosario --- .tx/config | 6 ++++ contrib/scripts/process_messages.py | 6 ++-- .../mimetype/locale/en/LC_MESSAGES/django.po | 33 +++++++++++++++++++ 3 files changed, 42 insertions(+), 3 deletions(-) create mode 100644 mayan/apps/mimetype/locale/en/LC_MESSAGES/django.po diff --git a/.tx/config b/.tx/config index f2d91534ce..ef087b0e9a 100644 --- a/.tx/config +++ b/.tx/config @@ -127,6 +127,12 @@ source_lang = en source_file = mayan/apps/mirroring/locale/en/LC_MESSAGES/django.po type = PO +[mayan-edms.mimetype-2-0] +file_filter = mayan/apps/mimetype/locale//LC_MESSAGES/django.po +source_lang = en +source_file = mayan/apps/mimetype/locale/en/LC_MESSAGES/django.po +type = PO + [mayan-edms.motd-2-0] file_filter = mayan/apps/motd/locale//LC_MESSAGES/django.po source_lang = en diff --git a/contrib/scripts/process_messages.py b/contrib/scripts/process_messages.py index 78783a1880..a35ac9a3c9 100755 --- a/contrib/scripts/process_messages.py +++ b/contrib/scripts/process_messages.py @@ -13,9 +13,9 @@ APP_LIST = ( 'converter', 'django_gpg', 'document_comments', 'document_indexing', 'document_parsing', 'document_signatures', 'document_states', 'documents', 'dynamic_search', 'events', 'linking', 'lock_manager', 'mayan_statistics', - 'mailer', 'metadata', 'mirroring', 'motd', 'navigation', 'ocr', 'permissions', - 'rest_api', 'smart_settings', 'sources', 'storage', 'tags', 'task_manager', - 'user_management' + 'mailer', 'metadata', 'mimetype', 'mirroring', 'motd', 'navigation', 'ocr', + 'permissions','rest_api', 'smart_settings', 'sources', 'storage', 'tags', + 'task_manager', 'user_management' ) LANGUAGE_LIST = ( diff --git a/mayan/apps/mimetype/locale/en/LC_MESSAGES/django.po b/mayan/apps/mimetype/locale/en/LC_MESSAGES/django.po new file mode 100644 index 0000000000..c7e3f3de13 --- /dev/null +++ b/mayan/apps/mimetype/locale/en/LC_MESSAGES/django.po @@ -0,0 +1,33 @@ +# 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 , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2019-04-09 00:50-0400\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: apps.py:13 +msgid "MIME types" +msgstr "" + +#: settings.py:7 +msgid "MIME type" +msgstr "" + +#: settings.py:11 +msgid "" +"Amount of bytes to read from a document to determine its MIME type. Setting " +"it to 0 disables the feature and attempts to read the entire document file " +"into memory." +msgstr ""