From 590b1200849809913f60b5f6f5ff6d0b1efc27c9 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Mon, 24 Oct 2011 14:56:07 +0400 Subject: [PATCH] Change place of translate. --- bg/{cl_assemble_bg.po => cl_assemble.po} | 0 bg/{cl_client_bg.po => cl_client.po} | 0 bg/{cl_desktop_bg.po => cl_desktop.po} | 0 bg/{cl_install_bg.po => cl_install.po} | 0 ru/{cl_assemble_ru.po => cl_assemble.po} | 0 ru/{cl_builder_ru.po => cl_builder.po} | 0 ru/{cl_client_ru.po => cl_client.po} | 0 ru/{cl_desktop_ru.po => cl_desktop.po} | 0 ru/{cl_install_ru.po => cl_install.po} | 0 ru/{cl_lib_ru.po => cl_lib.po} | 431 ++++++++++++++++++++++- setup.cfg | 2 +- setup.py | 14 +- 12 files changed, 440 insertions(+), 7 deletions(-) rename bg/{cl_assemble_bg.po => cl_assemble.po} (100%) rename bg/{cl_client_bg.po => cl_client.po} (100%) rename bg/{cl_desktop_bg.po => cl_desktop.po} (100%) rename bg/{cl_install_bg.po => cl_install.po} (100%) rename ru/{cl_assemble_ru.po => cl_assemble.po} (100%) rename ru/{cl_builder_ru.po => cl_builder.po} (100%) rename ru/{cl_client_ru.po => cl_client.po} (100%) rename ru/{cl_desktop_ru.po => cl_desktop.po} (100%) rename ru/{cl_install_ru.po => cl_install.po} (100%) rename ru/{cl_lib_ru.po => cl_lib.po} (77%) diff --git a/bg/cl_assemble_bg.po b/bg/cl_assemble.po similarity index 100% rename from bg/cl_assemble_bg.po rename to bg/cl_assemble.po diff --git a/bg/cl_client_bg.po b/bg/cl_client.po similarity index 100% rename from bg/cl_client_bg.po rename to bg/cl_client.po diff --git a/bg/cl_desktop_bg.po b/bg/cl_desktop.po similarity index 100% rename from bg/cl_desktop_bg.po rename to bg/cl_desktop.po diff --git a/bg/cl_install_bg.po b/bg/cl_install.po similarity index 100% rename from bg/cl_install_bg.po rename to bg/cl_install.po diff --git a/ru/cl_assemble_ru.po b/ru/cl_assemble.po similarity index 100% rename from ru/cl_assemble_ru.po rename to ru/cl_assemble.po diff --git a/ru/cl_builder_ru.po b/ru/cl_builder.po similarity index 100% rename from ru/cl_builder_ru.po rename to ru/cl_builder.po diff --git a/ru/cl_client_ru.po b/ru/cl_client.po similarity index 100% rename from ru/cl_client_ru.po rename to ru/cl_client.po diff --git a/ru/cl_desktop_ru.po b/ru/cl_desktop.po similarity index 100% rename from ru/cl_desktop_ru.po rename to ru/cl_desktop.po diff --git a/ru/cl_install_ru.po b/ru/cl_install.po similarity index 100% rename from ru/cl_install_ru.po rename to ru/cl_install.po diff --git a/ru/cl_lib_ru.po b/ru/cl_lib.po similarity index 77% rename from ru/cl_lib_ru.po rename to ru/cl_lib.po index 211267b..9ca0c8f 100644 --- a/ru/cl_lib_ru.po +++ b/ru/cl_lib.po @@ -427,8 +427,8 @@ msgid "The list of %s variables:" msgstr "Список переменных %s:" msgid "" -"The text is not a valid gconf-XML format (found '<%(tag)s>..'" +"The text is not a valid gconf-XML format (found '<%(tag)s>..'" msgstr "" "Текст не является правильным gconf-XML форматом (найдено '<%(tag)s>.." "'" @@ -749,3 +749,430 @@ msgid "" msgstr "" "фильтрация переменных по регулярному выражению, используйте совместно с " "опцией '-v --vars'" + +msgid "wrong dict value: %s" +msgstr "" + +msgid "Retype new password" +msgstr "" + +msgid "password incorrect" +msgstr "" + +msgid "Error in import module %s" +msgstr "" + +msgid "Not found variable %s" +msgstr "" + +msgid "error initalize variable %s, incorrect data" +msgstr "" + +msgid "" +"Unable to find the alias '%s' of the file path for storage of variables " +"templates" +msgstr "" + +msgid "Not found template variable %s" +msgstr "" + +msgid "error var %s not found" +msgstr "" + +msgid "wrong vars filter '%s'" +msgstr "" + +msgid "" +"In the text, XML template, look for a reserved attribute 'action' with the " +"incorrect value.\n" +"Valid values attribute 'action': (action=\"join\", action=\"replace\", " +"action=\"drop\")" +msgstr "" + +msgid "The uncertainty in this template are the same nodes at one level" +msgstr "" + +msgid "Can not join template" +msgstr "" + +msgid "Can not convert text template in XML" +msgstr "" + +msgid "Incorrect text template" +msgstr "" + +msgid "Incorrect text template ''" +msgstr "" + +msgid "Incorrect text template '%s'" +msgstr "" + +msgid "The text is not a valid gconf-XML format (found '<%(tag)s>..'" +msgstr "" + +msgid "Not found arrtibute \"name\" in %(tag)s" +msgstr "" + +msgid "Not found arrtibute \"name\" in tag entry" +msgstr "" + +msgid "Not found arrtibute \"type\" in tag entry" +msgstr "" + +msgid "Value function is not version" +msgstr "" + +msgid "header template not valid" +msgstr "" + +msgid "not open file:" +msgstr "" + +msgid "Can not found user %s" +msgstr "" + +msgid "Can not found group id %s" +msgstr "" + +msgid "error var %s not int" +msgstr "" + +msgid "error local var %s not defined" +msgstr "" + +msgid "error template term %s, incorrect data" +msgstr "" + +msgid "Second argument function is not 'root'" +msgstr "" + +msgid "Third argument function is not 'root'" +msgstr "" + +msgid "first argument function is not 'ver' or 'num' or 'char' or 'empty'" +msgstr "" + +msgid "first argument function must be 'num','pas' or 'uuid'" +msgstr "" + +msgid "two argument function is not number" +msgstr "" + +msgid "first argument function is not 'upper' or 'lower' or 'capitalize'" +msgstr "" + +msgid "error var %s exists" +msgstr "" + +msgid "error var %s not exists" +msgstr "" + +msgid "error, gloval variables stack is empty" +msgstr "" + +msgid "third argument function is not 'url' or 'purl' or 'unicode'" +msgstr "" + +msgid "value of %s is not a list or tuple" +msgstr "" + +msgid "%s wrong" +msgstr "" + +msgid "" +"in the value of the variable os_disk_install not found mount point '' and '\\" +"%s'" +msgstr "" + +msgid "error template term '%s'" +msgstr "" + +msgid "can not found template function '%s'" +msgstr "" + +msgid "Not valid oct value: " +msgstr "" + +msgid "Not access dir: " +msgstr "" + +msgid "Can not create dir: " +msgstr "" + +msgid "content template not valid: " +msgstr "" + +msgid "name template not valid: " +msgstr "" + +msgid "No conditions of checking a value of the variable 'cl_name'" +msgstr "" + +msgid "Skip templates:" +msgstr "" + +msgid "Skip directories:" +msgstr "" + +msgid "" +"Headers directory and template files first level should include of the " +"'cl_name' variable." +msgstr "" + +msgid "not defined Var: " +msgstr "" + +msgid "Error open template" +msgstr "" + +msgid "False value 'path' in template" +msgstr "" + +msgid "False value 'name' in template" +msgstr "" + +msgid "Can not delete dir: " +msgstr "" + +msgid "Can not delete: " +msgstr "" + +msgid "False value 'chmod' in template" +msgstr "" + +msgid "Not user in this system: " +msgstr "" + +msgid "False value 'chown' in template" +msgstr "" + +msgid "Not group in this system: " +msgstr "" + +msgid "False value 'exec' in template" +msgstr "" + +msgid "Can not execute %s" +msgstr "" + +msgid "False value 'append=join' in template" +msgstr "" + +msgid "Error in template" +msgstr "" + +msgid "Can not clear file" +msgstr "" + +msgid "Can not delete link" +msgstr "" + +msgid "Can not delete file" +msgstr "" + +msgid "Can not open file" +msgstr "" + +msgid "Can not create file" +msgstr "" + +msgid "Can not change the current directory to" +msgstr "" + +msgid "Can not create symbolic link" +msgstr "" + +msgid "False option append=%(type)s in template %(file)s" +msgstr "" + +msgid "Incorrect header parmeter format=%s in template" +msgstr "" + +msgid "False template" +msgstr "" + +msgid "Can not execute" +msgstr "" + +msgid "False option append=before in template %s" +msgstr "" + +msgid "False option append=after in template %s" +msgstr "" + +msgid "Incorrect header parmeter append=%s in template" +msgstr "" + +msgid "False (type append) template" +msgstr "" + +msgid "Type template not found: " +msgstr "" + +msgid "Unable to write into file" +msgstr "" + +msgid "Unable to create file" +msgstr "" + +msgid "" +"In the file %s (format - 'plasma'), write the variable in the format 'samba'" +msgstr "" + +msgid "Incorrect format file" +msgstr "" + +msgid "" +"In the file %s (format - 'plasma'), get the variable in the format 'samba'" +msgstr "" + +msgid "" +"In the file %s (format - 'plasma'), get all variables in the format 'samba'" +msgstr "" + +msgid "password empty" +msgstr "" + +msgid "Can not support '%s' crypto algorithm" +msgstr "" + +msgid "without py-smbpasswd" +msgstr "" + +msgid "Can not found %s" +msgstr "" + +msgid "Error checking certificate %s" +msgstr "" + +msgid "Not found user %s" +msgstr "" + +msgid "Can not execute '%s'" +msgstr "" + +msgid "Can not create certificate %s" +msgstr "" + +msgid "Path %s not exists" +msgstr "" + +msgid "Error encrypt password, method getHash()" +msgstr "" + +msgid "Error execute 'hostname -d'" +msgstr "" + +msgid "Not found domain name" +msgstr "" + +msgid "Error writing variable %s" +msgstr "" + +msgid "Can not found service class '%s'" +msgstr "" + +msgid "Can not found user %s in this system" +msgstr "" + +msgid "Can not found group %s in this system" +msgstr "" + +msgid "Not restore user data in dir %s" +msgstr "" + +msgid "Restore user data in dir %s" +msgstr "" + +msgid "Found deleted user data dir %s" +msgstr "" + +msgid "Not created deleted user data dir %s" +msgstr "" + +msgid "Can not copy deleted user data in dir %s" +msgstr "" + +msgid "Created deleted user data dir %s" +msgstr "" + +msgid "Not found remove dir %s" +msgstr "" + +msgid "Incorrect string allow networks" +msgstr "" + +msgid "" +"You used four attempts, if you want to continue to run the program again" +msgstr "" + +msgid "Not found LDAP base DN" +msgstr "" + +msgid "No connect to LDAP server" +msgstr "" + +msgid "Admin password for the service %s could not be found" +msgstr "" + +msgid "LDAP connect error" +msgstr "" + +msgid "Not open file" +msgstr "" + +msgid "Can not convert file '%s' in jpeg format" +msgstr "" + +msgid "set value for variable" +msgstr "" + +msgid "" +"print variables, if the two options is verbose (added print hidden variables)" +msgstr "" + +msgid "" +"filtered variables by regular expression, is used in conjunction with the " +"options '-v --show-variables'" +msgstr "" + +msgid "" +"output variables in the format of XML, is used in conjunction with the " +"option '-v --show-variables'" +msgstr "" + +msgid "Can not import module %s" +msgstr "" + +msgid "Can not create API object" +msgstr "" + +msgid "Can not found method %(method)s in API object service %(service)s" +msgstr "" + +msgid "Can not found method %s" +msgstr "" + +msgid "Can not execute 'who'" +msgstr "" + +msgid "Not found X sessions users" +msgstr "" + +msgid "Error using templates for the user %s" +msgstr "" + +msgid "Package %s has changed files" +msgstr "" + +msgid "Not found templates" +msgstr "" + +msgid "Replace files:" +msgstr "" + +msgid "Error template in a package %s" +msgstr "" + +msgid "Update configuration files package installed" +msgstr "" diff --git a/setup.cfg b/setup.cfg index 8365cf4..6f6ea91 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,2 @@ [install] -prefix=/usr/share/calculate/i18n +prefix=/usr/share/locale diff --git a/setup.py b/setup.py index 4257dd9..35a76bf 100755 --- a/setup.py +++ b/setup.py @@ -45,12 +45,15 @@ class build_po( distutils.core.Command ) : pass def run( self ) : - self.mkpath("build") + #self.mkpath("build") #build.run( self ) for locale in locales: + localepath = path.join("build",locale,"LC_MESSAGES") + self.mkpath(localepath) + self.mkpath(locale) for po in glob.glob("%s/*.po"%locale) : - cmd = "msgfmt -c -o build/%s %s" % \ - (path.basename(po)[:-2]+'mo',po) + cmd = "msgfmt -c -o %s/%s %s" % \ + (localepath,path.basename(po)[:-2]+'mo',po) cout( cmd + "\n" ) os.system(cmd) @@ -76,6 +79,9 @@ setup( author_email = "support@calculate.ru", url = "http://calculate-linux.org", license = "http://www.apache.org/licenses/LICENSE-2.0", - data_files = [("",(glob.glob("build/*.mo")))], + data_files = [ + (path.join(locale,"LC_MESSAGES"), + glob.glob(path.join("build",locale,"LC_MESSAGES/*.mo"))) + for locale in locales ], cmdclass = {'build':build,'build_po':build_po,'install_egg_info':empty_egg_info} )