from utils import google_translate import errors import math # noinspection PyProtectedMember # Se cargan las configuraciones langselfconfig = ConfigLoader(_DIR_CONFIG, "Langs.ini") # noinspection SpellCheckingInspection langconfig = ConfigLoader(_LANG_DIRCONFIG, "const.ini") langavaiable = ConfigLoader(_LANG_DIRCONFIG, "Langs.txt") # noinspection SpellCheckingInspection langtranslateconfig = ConfigLoader(_DIR_CONFIG, "langstransl.ini") # Constantes del programa _SPACE = "|" _SPLITTER = str(langconfig.get_value(1)).replace("*", " ") LANG_LOADED = "El archivo de idiomas '{0}' ha sido cargado correctamente" LANG_PRINT_ELEMENT = "\t{0}{1}=> {2}" LANG_PRINT_TITLE = "Entradas:\n\tID STRING" NULL_IDENTIFIER = "NULL_LANG_ID<" NULL_LANG = NULL_IDENTIFIER + "{0}>" # Definición de funciones def _totalspaces(index): """ Retorna la cantidad de espacios. :param index: Índice :type index: int
Licencia: GPLv2 """ __author__ = "ppizarror" # Importación de librerías iniciales from binpath import DIR_BIN, sys from configloader import ConfigLoader from _version import __version__ import binpath import errors # Configuración de entorno # noinspection PyProtectedMember __binconfig = ConfigLoader(binpath._DIR_CONFIG, "bin.ini") # noinspection PyUnresolvedReferences sys.setdefaultencoding(__binconfig.get_value("SET_DEFAULT_ENCODING")) # @UndefinedVariable # noinspection SpellCheckingInspection if __binconfig.is_true("DONT_WRITE_BYTECODE"): reload(sys) sys.dont_write_bytecode = True # Module test if __name__ == '__main__': try: import mechanize except: errors.throw(errors.ERROR_IMPORTERRORMECHANIZE) try: from hashdir import md5file, path_checksum from nostdout import NoStdOut import langs