Private GIT

Skip to content
Snippets Groups Projects
Commit c59aa777 authored by miigotu's avatar miigotu
Browse files

Add setup.cfg,

Add babel methods to setup.py,

Add initial pot file in po/sickrage.pot and add one translation in the 404 page

Remove BOM in torrentbytes

These probably arent loaded yet, but a good place to start
parent d4b012ef
Branches
No related tags found
No related merge requests found
......@@ -46,6 +46,9 @@ Options:
from __future__ import unicode_literals
from __future__ import print_function
import gettext
gettext.install(gettext.textdomain(), 'locale', unicode=1, codeset='UTF-8')
import codecs
import datetime
import getopt
......
......@@ -2,6 +2,6 @@
<%block name="content">
<h1 class="header">${header}</h1>
<div class="align-center">
You have reached this page by accident, please check the url.
${_('You have reached this page by accident, please check the url.')}
</div>
</%block>
......@@ -3,9 +3,10 @@
<%block name="content">
<h1 class="header">${header}</h1>
<p>
A mako error has occured.<br>
${_("""A mako error has occured.<br>
If this happened during an update a simple page refresh may be the solution.<br>
Mako errors that happen during updates may be a one time error if there were significant ui changes.<br>
Mako errors that happen during updates may be a one time error if there were significant ui changes.""")}
<br>
</p>
<hr>
<a href="#mako-error" class="btn btn-default" data-toggle="collapse">Show/Hide Error</a>
......
File added
# English (United States) translations for sickrage.
# Copyright (C) 2016 SickRage
# This file is distributed under the same license as the sickrage project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
#
msgid ""
msgstr ""
"Project-Id-Version: sickrage 0.0.1\n"
"Report-Msgid-Bugs-To: miigotu@gmail.com\n"
"POT-Creation-Date: 2016-04-02 15:00-0700\n"
"PO-Revision-Date: 2016-04-02 15:01-0700\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: en_US <LL@li.org>\n"
"Plural-Forms: nplurals=2; plural=(n != 1)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.0\n"
#: gui/slick/views/404.mako:5
msgid "You have reached this page by accident, please check the url."
msgstr ""
#: gui/slick/views/500.mako:6
msgid ""
"A mako error has occured.<br>\n"
"If this happened during an update a simple page refresh may be the "
"solution.<br>\n"
"Mako errors that happen during updates may be a one time error if there "
"were significant ui changes."
msgstr ""
# Translations template for sickrage.
# Copyright (C) 2016 SickRage
# This file is distributed under the same license as the sickrage project.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2016.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: sickrage 0.0.1\n"
"Report-Msgid-Bugs-To: miigotu@gmail.com\n"
"POT-Creation-Date: 2016-04-02 15:00-0700\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.0\n"
#: gui/slick/views/404.mako:5
msgid "You have reached this page by accident, please check the url."
msgstr ""
#: gui/slick/views/500.mako:6
msgid ""
"A mako error has occured.<br>\n"
"If this happened during an update a simple page refresh may be the "
"solution.<br>\n"
"Mako errors that happen during updates may be a one time error if there were "
"significant ui changes."
msgstr ""
[extract_messages]
width = 80
charset = utf-8
output-file = locale/messages.pot
keywords = _ gettext ngettext
copyright-holder = SickRage
msgid-bugs-address = miigotu@gmail.com
[compile_catalog]
directory = locale
[init_catalog]
output-dir = locale
input-file = locale/messages.pot
[update_catalog]
output-dir = locale
input-file = locale/messages.pot
ignore-obsolete = true
previous = true
......@@ -3,6 +3,7 @@ Use setup tools to install sickrage
"""
import os
from setuptools import find_packages, setup
from babel.messages import frontend as babel
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))
......@@ -12,10 +13,21 @@ with open(os.path.join(ROOT, 'readme.md'), 'r') as r:
setup(
name="sickrage",
version="0.0.1",
description="Automatic Video Library Manager for TV Shows",
long_description=long_description,
url='https://sickrage.github.io',
download_url='https://github.com/SickRage/SickRage.git',
author='miigotu',
author_email='miigotu@gmail.com',
license='GPLv2',
packages=find_packages(),
install_requires=[],
test_suite="tests",
tests_require=[
'coveralls',
......@@ -23,10 +35,24 @@ setup(
'rednose',
'mock',
],
classifiers=[
'Development Status :: ???',
'Intended Audience :: Developers',
'Operating System :: POSIC :: LINUX',
'Topic :: ???',
'Development Status :: 3 - Alpha',
'Intended Audience :: System Administrators',
'Operating System :: OS Independent',
'Topic :: Multimedia :: Video',
],
cmdclass={
'compile_catalog': babel.compile_catalog,
'extract_messages': babel.extract_messages,
'init_catalog': babel.init_catalog,
'update_catalog': babel.update_catalog
},
message_extractors={
'gui': [('**.mako', 'mako', {'input_encoding': 'utf-8'})],
'sickrage': [('**.py', 'python', None)],
'sickbeard': [('**.py', 'python', None)],
},
)
# coding=utf-8
# coding=utf-8
# Author: Idan Gutman
#
# URL: https://sickrage.github.io
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment