This repository has been archived by the owner on Nov 18, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Historical commit version 6.1 (03.04.2015).
- Loading branch information
Showing
32 changed files
with
168 additions
and
464 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,7 +36,7 @@ | |
# Author: Andrey Prygunkov ([email protected]). | ||
# Web-site: http://nzbget.net/VideoSort. | ||
# License: GPLv3 (http://www.gnu.org/licenses/gpl.html). | ||
# PP-Script Version: 6.0. | ||
# PP-Script Version: 6.1. | ||
# | ||
# NOTE: This script requires Python 2.x to be installed on your system. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (c) 2014 the BabelFish authors. All rights reserved. | ||
# Copyright (c) 2013 the BabelFish authors. All rights reserved. | ||
# Use of this source code is governed by the 3-clause BSD license | ||
# that can be found in the LICENSE file. | ||
# | ||
__title__ = 'babelfish' | ||
__version__ = '0.5.1.memory0' | ||
__version__ = '0.5.4' | ||
__author__ = 'Antoine Bertin' | ||
__license__ = 'BSD' | ||
__copyright__ = 'Copyright 2013 the BabelFish authors' | ||
|
||
import sys | ||
|
||
if sys.version_info[0] >= 3: | ||
basestr = str | ||
else: | ||
basestr = basestring | ||
|
||
from .converters import (LanguageConverter, LanguageReverseConverter, LanguageEquivalenceConverter, CountryConverter, | ||
CountryReverseConverter) | ||
from .country import country_converters, COUNTRIES, Country | ||
from .country import country_converters, COUNTRIES, COUNTRY_MATRIX, Country | ||
from .exceptions import Error, LanguageConvertError, LanguageReverseError, CountryConvertError, CountryReverseError | ||
from .language import language_converters, LANGUAGES, Language | ||
from .script import SCRIPTS, Script | ||
from .iso import get_countries_data, get_languages_data, get_scripts_data | ||
from .language import language_converters, LANGUAGES, LANGUAGE_MATRIX, Language | ||
from .script import SCRIPTS, SCRIPT_MATRIX, Script |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (c) 2014 the BabelFish authors. All rights reserved. | ||
# Copyright (c) 2013 the BabelFish authors. All rights reserved. | ||
# Use of this source code is governed by the 3-clause BSD license | ||
# that can be found in the LICENSE file. | ||
# | ||
from __future__ import unicode_literals | ||
from . import LanguageEquivalenceConverter | ||
from ..iso import get_languages_data | ||
from ..language import LANGUAGE_MATRIX | ||
|
||
|
||
class Alpha2Converter(LanguageEquivalenceConverter): | ||
CASE_SENSITIVE = True | ||
SYMBOLS = {} | ||
for iso_language in get_languages_data(): | ||
for iso_language in LANGUAGE_MATRIX: | ||
if iso_language.alpha2: | ||
SYMBOLS[iso_language.alpha3] = iso_language.alpha2 |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (c) 2014 the BabelFish authors. All rights reserved. | ||
# Copyright (c) 2013 the BabelFish authors. All rights reserved. | ||
# Use of this source code is governed by the 3-clause BSD license | ||
# that can be found in the LICENSE file. | ||
# | ||
from __future__ import unicode_literals | ||
from . import LanguageEquivalenceConverter | ||
from ..iso import get_languages_data | ||
from ..language import LANGUAGE_MATRIX | ||
|
||
|
||
class Alpha3BConverter(LanguageEquivalenceConverter): | ||
CASE_SENSITIVE = True | ||
SYMBOLS = {} | ||
for iso_language in get_languages_data(): | ||
for iso_language in LANGUAGE_MATRIX: | ||
if iso_language.alpha3b: | ||
SYMBOLS[iso_language.alpha3] = iso_language.alpha3b |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (c) 2014 the BabelFish authors. All rights reserved. | ||
# Copyright (c) 2013 the BabelFish authors. All rights reserved. | ||
# Use of this source code is governed by the 3-clause BSD license | ||
# that can be found in the LICENSE file. | ||
# | ||
from __future__ import unicode_literals | ||
from . import LanguageEquivalenceConverter | ||
from ..iso import get_languages_data | ||
from ..language import LANGUAGE_MATRIX | ||
|
||
|
||
class Alpha3TConverter(LanguageEquivalenceConverter): | ||
CASE_SENSITIVE = True | ||
SYMBOLS = {} | ||
for iso_language in get_languages_data(): | ||
for iso_language in LANGUAGE_MATRIX: | ||
if iso_language.alpha3t: | ||
SYMBOLS[iso_language.alpha3] = iso_language.alpha3t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Copyright (c) 2014 the BabelFish authors. All rights reserved. | ||
# Copyright (c) 2013 the BabelFish authors. All rights reserved. | ||
# Use of this source code is governed by the 3-clause BSD license | ||
# that can be found in the LICENSE file. | ||
# | ||
from __future__ import unicode_literals | ||
from . import LanguageEquivalenceConverter | ||
from ..iso import get_languages_data | ||
from ..language import LANGUAGE_MATRIX | ||
|
||
|
||
class NameConverter(LanguageEquivalenceConverter): | ||
CASE_SENSITIVE = False | ||
SYMBOLS = {} | ||
for iso_language in get_languages_data(): | ||
for iso_language in LANGUAGE_MATRIX: | ||
if iso_language.name: | ||
SYMBOLS[iso_language.alpha3] = iso_language.name |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.