From: Christian Van Wambeke Date: Mon, 8 Jan 2018 12:59:02 +0000 (+0100) Subject: i18n fix removed french accentued characters X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2caab5d981f05a6944cdb26f3ba7a4a4a3ddbd1c;p=tools%2Fsat.git i18n fix removed french accentued characters --- diff --git a/commands/check.py b/commands/check.py index cfa2c82..c5ff767 100644 --- a/commands/check.py +++ b/commands/check.py @@ -122,13 +122,11 @@ def check_product(p_name_info, config, logger): # Verify if the command has to be launched or not ignored = False if not src.get_property_in_product_cfg(p_info, CHECK_PROPERTY): - msg = _("The product %s is defined as not having tests. " - "product ignored." % p_name) + msg = _("The product %s is defined as not having tests. product ignored.") % p_name logger.write("%s\n" % msg, 4) ignored = True if "build_dir" not in p_info: - msg = _("No build_dir key defined in " - "the config file of %s: product ignored." % p_name) + msg = _("No build_dir key defined in the config file of %s: product ignored.") % p_name logger.write("%s\n" % msg, 4) ignored = True if not src.product.product_compiles(p_info): @@ -144,9 +142,10 @@ def check_product(p_name_info, config, logger): command = src.get_cfg_param(p_info, "test_build", "Not found") if command == "Not found": cmd_found = False - msg = _('WARNING: The product %s is defined as having tests. But it' - ' is compiled using a script and the key "test_build" is ' - 'not defined in the definition of %s' % (p_name, p_name)) + msg = _('''\ +WARNING: The product %(name)s is defined as having tests. + But it is compiled using a script and the key "test_build" + is not defined in the definition of %(name)''') % {"name": p_name} logger.write("%s\n" % msg, 4) if ignored or not cmd_found: @@ -245,4 +244,4 @@ def run(args, runner, logger): 'valid_result': nb_products - res, 'nb_products': nb_products }, 1) - return res \ No newline at end of file + return res diff --git a/commands/init.py b/commands/init.py index 0332557..c332b12 100644 --- a/commands/init.py +++ b/commands/init.py @@ -97,8 +97,7 @@ def check_path(path_to_check, logger): # If it is a file, do nothing and return error if path.isfile(): - msg = _("Error: The given path is a file. Please provide a path to " - "a directory") + msg = _("Error: The given path is a file. Please provide a path to a directory") logger.write(src.printcolors.printcError(msg), 1) return 1 @@ -107,8 +106,8 @@ def check_path(path_to_check, logger): src.ensure_path_exists(str(path)) except Exception as e: err = src.printcolors.printcError(str(e)) - msg = _("Unable to create the directory %s: %s\n" % (str(path), - err)) + msg = _("Unable to create the directory '%(1)s': %(2)s\n" % + {"1": str(path), "2": err}) logger.write(msg, 1) return 1 diff --git a/commands/jobs.py b/commands/jobs.py index 3d6540e..0eb037c 100644 --- a/commands/jobs.py +++ b/commands/jobs.py @@ -121,10 +121,11 @@ class Machine(object): :rtype: bool ''' if self._connection_successful == None: - message = _("Warning : trying to ask if the connection to " - "(name: %s host: %s, port: %s, user: %s) is OK whereas there were" - " no connection request" % - (self.name, self.host, self.port, self.user)) + message = _("""\ +Warning : trying to ask if the connection to + (name: %(1)s host: %(2)s, port: %(3)s, user: %(4)s) is OK + whereas there were no connection request""" % + {"1": self.name, "2": self.host, "3": self.port, "4": self.user} ) logger.write( src.printcolors.printcWarning(message)) return self._connection_successful @@ -398,8 +399,8 @@ class Job(object): # The first line is the result of the command (0 success or 1 fail) self.res_job = file_lines[0] except Exception as e: - self.err += _("Unable to get status from remote file %s: %s" % - (remote_path, str(e))) + self.err += _("Unable to get status from remote file '%(1)s': %(2)s" % + {"1": remote_path, "2": str(e)}) for i, job_path_remote in enumerate(file_lines[1:]): try: @@ -439,9 +440,8 @@ class Job(object): self.machine.sftp.get(job_path_remote, local_path) self.remote_log_files.append(local_path) except Exception as e: - self.err += _("Unable to get %s log file from remote: %s" % - (str(job_path_remote), - str(e))) + self.err += _("Unable to get %(1)s log file from remote: %(2)s" % + {"1": str(job_path_remote), "2": str(e)}) def has_failed(self): '''Returns True if the job has failed. @@ -1326,8 +1326,8 @@ class Gui(object): global_xml = src.xmlManager.ReadXmlFile(file_path) l_globalxml.append(global_xml) except Exception as e: - msg = _("\nWARNING: the file %s can not be read, it will be " - "ignored\n%s" % (file_path, e)) + msg = _("\nWarning: the file '%(1)s' can not be read, it will be " + "ignored\n%(2)s" % {"1": file_path, "2": e}) self.logger.write("%s\n" % src.printcolors.printcWarning( msg), 5) @@ -1852,8 +1852,7 @@ def run(args, runner, logger): res = 0 if interruped: res = 1 - msg = _("Killing the running jobs and trying" - " to get the corresponding logs\n") + msg = _("Killing the running jobs and trying to get the corresponding logs\n") logger.write(src.printcolors.printcWarning(msg)) # find the potential not finished jobs and kill them @@ -1863,7 +1862,7 @@ def run(args, runner, logger): try: jb.kill_remote_process() except Exception as e: - msg = _("Failed to kill job %s: %s\n" % (jb.name, e)) + msg = _("Failed to kill job %(1)s: %(2)s\n" % {"1": jb.name, "2": e}) logger.write(src.printcolors.printcWarning(msg)) if jb.res_job != "0": res = 1 diff --git a/commands/run.py b/commands/run.py index fa08cb9..42ab7d8 100644 --- a/commands/run.py +++ b/commands/run.py @@ -44,15 +44,17 @@ def run(args, runner, logger): # Check the launcher existence if launcher_name not in os.listdir(launcher_dir): - message = _("The launcher %s was not found in directory %s!\nDid you run the" - " command 'sat launcher' ?\n") % (launcher_name, launcher_dir) + message = _("""\ +The launcher %(1)s was not found in directory '%(2)s'. +Did you run the command 'sat launcher' ?\n""" % {"1": launcher_name, "2": launcher_dir} ) raise src.SatException(message) launcher_path = os.path.join(launcher_dir, launcher_name) if not os.path.exists(launcher_path): - message = _("The launcher at path %s is missing.\nDid you run the" - " command 'sat launcher' ?\n") % launcher_path + message = _("""\ +The launcher at path '%s' is missing. +Did you run the command 'sat launcher' ?\n""" % launcher_path ) raise src.SatException(message) # Determine the command to launch (add the additional arguments) diff --git a/commands/source.py b/commands/source.py index 55b23a1..79b6532 100644 --- a/commands/source.py +++ b/commands/source.py @@ -161,9 +161,10 @@ def get_source_from_dir(product_info, source_dir, logger): # check that source exists if not os.path.exists(product_info.dir_info.dir): - msg = _("Error: the dir %s defined in the file" - " %s.pyconf does not exists" % (product_info.dir_info.dir, - product_info.name)) + msg = _("""\ +Error: the dir '%(1)s' defined in the file" + %(2)s.pyconf does not exists""" % + {"1": product_info.dir_info.dir, "2": product_info.name}) logger.write("\n%s\n" % src.printcolors.printcError(msg), 1) return False diff --git a/data/local.pyconf b/data/local.pyconf index 3646f26..99a60f5 100644 --- a/data/local.pyconf +++ b/data/local.pyconf @@ -13,5 +13,10 @@ { project_file_paths : [ + "/volatile/wambeke/SAT5/SAT5_S840_MATIX24/SAT_SALOME/salome.pyconf", + # "/home/uranietm/proJET/saTJOBS/saT5/uranie.pyconf", + # cloned 2017/12 for matix + "/home/matix/GitRepo/uranie/saT5/uranie.pyconf", + "/volatile/wambeke/SAT5/SAT_MATIX/matix.pyconf" ] } diff --git a/salomeTools.py b/salomeTools.py index 84429e4..3447da1 100755 --- a/salomeTools.py +++ b/salomeTools.py @@ -82,9 +82,9 @@ parser.add_option('v', 'verbose', 'int', "output_verbose_level", parser.add_option('b', 'batch', 'boolean', "batch", _("batch mode (no question).")) parser.add_option('t', 'all_in_terminal', 'boolean', "all_in_terminal", - _("All traces in the terminal (for example compilation logs).")) + _("all traces in the terminal (for example compilation logs).")) parser.add_option('l', 'logs_paths_in_file', 'string', "logs_paths_in_file", - _("Put the command result and paths to log files in .")) + _("put the command result and paths to log files.")) class Sat(object): '''The main class that stores all the commands of salomeTools @@ -334,7 +334,7 @@ class Sat(object): # print the log file path if # the maximum verbose mode is invoked if not micro_command: - logger_command.write("\nPath to the xml log file :\n", + logger_command.write("\nPath to the xml log file:\n", 5) logger_command.write("%s\n\n" % src.printcolors.printcInfo( logger_command.logFilePath), 5) @@ -544,4 +544,4 @@ if __name__ == "__main__": # exit salomeTools with the right code (0 if no errors, else 1) if code is None: code = 0 sys.exit(code) - \ No newline at end of file + diff --git a/src/__init__.py b/src/__init__.py index e8a8928..13e8a18 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -144,7 +144,7 @@ def get_launcher_name(config): :rtype: str ''' check_config_has_application(config) - if 'profile' in config.APPLICATION and 'launcher_name=' in config.APPLICATION.profile: + if 'profile' in config.APPLICATION and 'launcher_name' in config.APPLICATION.profile: launcher_name = config.APPLICATION.profile.launcher_name else: launcher_name = 'salome' diff --git a/src/i18n/README b/src/i18n/README new file mode 100644 index 0000000..f4a6fba --- /dev/null +++ b/src/i18n/README @@ -0,0 +1,18 @@ + + +# http://www.labri.fr/perso/fleury/posts/programming/a-quick-gettext-tutorial.html + +# create salomeTools.po from code and pre-existing traduction + +cd salomeTools-5/src/i18n +build_strings.sh + +# create fr/LC_MESSAGES/salomeTools.mo from r/LC_MESSAGES/salomeTools.po + +cd salomeTools-5/src/i18n + +translate.sh +### or ### +pip install polib # if not present +translate.py + diff --git a/src/i18n/build_strings.sh b/src/i18n/build_strings.sh index 9e2a95f..de0abf7 100755 --- a/src/i18n/build_strings.sh +++ b/src/i18n/build_strings.sh @@ -1,20 +1,29 @@ #!/bin/bash -# This script gets the strings to internationalise from the source code +# This script gets the strings from code to internationalize from the source code I18HOME=`dirname $0` SRC_DIR=$I18HOME/../.. # get strings for french translation -echo Build strings for French +echo "Build strings for French, create and merging salomeTools.po" poFile=$I18HOME/fr/LC_MESSAGES/salomeTools.po refFile=$I18HOME/fr/LC_MESSAGES/ref.pot -xgettext $SRC_DIR/*.py $SRC_DIR/common/*.py \ +xgettext $SRC_DIR/*.py $SRC_DIR/commands/*.py $SRC_DIR/src/*.py \ --no-wrap --no-location --language=Python --omit-header \ --output=$refFile -msgmerge -q --update $poFile $refFile -msgattrib --no-obsolete -o $poFile $poFile + +msgmerge --quiet --update $poFile $refFile + +#retirer les messages obsolètes « #~ » +#msgattrib --no-obsolete -o $poFile $poFile + +#ne pas retirer les messages obsolètes « #~ » +msgattrib --previous --output-file $poFile $poFile + rm $refFile +echo "Do not forget 'translate.py' or 'translate.sh' to create salomeTools.mo" + diff --git a/src/i18n/fr/LC_MESSAGES/salomeTools.mo b/src/i18n/fr/LC_MESSAGES/salomeTools.mo index a63767d..6729bce 100644 Binary files a/src/i18n/fr/LC_MESSAGES/salomeTools.mo and b/src/i18n/fr/LC_MESSAGES/salomeTools.mo differ diff --git a/src/i18n/fr/LC_MESSAGES/salomeTools.po b/src/i18n/fr/LC_MESSAGES/salomeTools.po index 594e6c8..99b70ff 100644 --- a/src/i18n/fr/LC_MESSAGES/salomeTools.po +++ b/src/i18n/fr/LC_MESSAGES/salomeTools.po @@ -1,41 +1,1887 @@ +# stuff to fix removed french accentued characters on msgmerge +msgid "" +msgstr "" +"Project-Id-Version: sat5\n" +"Report-Msgid-Bugs-To: andrea@nonymous.net \n" +"POT-Creation-Date: 2016-01-25 18:51+0100\n" +"PO-Revision-Date: 2016-01-25 19:53+0100\n" +"Last-Translator: Andrea Nonymous \n" +"Language-Team: French\n" +"Language: fr\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + msgid "shows global help or help on a specific command." -msgstr "affiche l'aide gnrale ou pour une commande spcifique." +msgstr "affiche l'aide générale ou pour une commande spécifique." + +msgid "overwrites a configuration parameters." +msgstr "écrase un parametre de configuration." + +msgid "run salomeTools in debug mode." +msgstr "lance salomeTools en mode debug." + +msgid "change output verbose level (default is 3)." +msgstr "change niveau de verbosité (defaut: 3)." + +msgid "batch mode (no question)." +msgstr "mode batch (pas de question)." + +msgid "all traces in the terminal (for example compilation logs)." +msgstr "toutes traces dans le terminal (par exemple: log de compilation)" + +msgid "put the command result and paths to log files." +msgstr "redirige resultats de commandes vers log files" + +msgid " is not a valid command" +msgstr " n'est pas une commande valide" + +msgid "" +"WARNING: the logs_paths_in_file option will not be taken into account.\n" +"Here is the error:" +msgstr "" + +#, python-format +msgid "Hook script not found: %s" +msgstr "" + +msgid "Run hook script" +msgstr "" + +#, python-format +msgid "Unable to run hook script: %s" +msgstr "" + +#, python-format +msgid "Command '%s' does not exist" +msgstr "" + +msgid "Description:" +msgstr "" + +msgid "Version: " +msgstr "" + +msgid "Usage: " +msgstr "Utilisation : " + +msgid "Available commands are:\n" +msgstr "Les commandes disponibles sont:\n" + +msgid "" +"\n" +"Getting the help for a specific command: " +msgstr "" +"\n" +"Obtenir l'aide d'une commande spécifique : " + +msgid "" +"Optional: The name of the application (default is APPLICATION.virtual_app." +"name or runAppli)" +msgstr "" + +msgid "Optional: The resources catalog to use" +msgstr "" + +msgid "" +"Optional: The directory where to create the application (default is " +"APPLICATION.workdir)" +msgstr "" + +msgid "" +"Optional: Create a resources catalog for the specified machines (separated " +"with ',')\n" +"\tNOTICE: this command will ssh to retrieve information to each machine in " +"the list" +msgstr "" + +msgid "" +"Optional: the restricted list of module(s) to include in the application" +msgstr "" + +#, python-format +msgid "Cannot create the alias '%s'\n" +msgstr "" + +#, python-format +msgid "WARNING: module %s not installed" +msgstr "" + +#, fuzzy +msgid "KERNEL is not installed" +msgstr "lsb_release n'est pas installé\n" + +#, python-format +msgid "Cannot create application, code = %d\n" +msgstr "" + +#, python-format +msgid "WARNING: module %s is required to create application\n" +msgstr "" + +msgid "To launch the application, type:\n" +msgstr "" + +#, python-format +msgid "Catalog not found: %s" +msgstr "" + +msgid "Creating environment files" +msgstr "" + +msgid "Building application" +msgstr "" + +msgid "Generate Resources Catalog" +msgstr "" + +msgid "" +"The application command creates a SALOME application.\n" +"WARNING: it works only for SALOME 6. Use the \"launcher\" command for newer " +"versions of SALOME\n" +"\n" +"example:\n" +"sat application SALOME-6.6.0" +msgstr "" + +#, python-format +msgid "Building application for %s\n" +msgstr "" + +msgid "The section APPLICATION.virtual_app is not defined in the product." +msgstr "" + +msgid "Application directory" +msgstr "" + +msgid "Resources Catalog" +msgstr "" + +msgid "Removing previous application directory" +msgstr "" + +msgid "" +"Optional: products to configure. This option can be passed several time to " +"configure several products." +msgstr "" + +#, python-format +msgid "Product %(product)s not defined in application %(application)s" +msgstr "" + +#, python-format +msgid "Check of %s" +msgstr "" + +#, python-format +msgid "The product %s is defined as not having tests. product ignored." +msgstr "" + +#, python-format +msgid "No build_dir key defined in the config file of %s: product ignored." +msgstr "" + +#, python-format +msgid "The product %s is defined as not compiling. product ignored." +msgstr "" + +msgid "" +"WARNING: The product %(name)s is defined as having tests.\n" +" But it is compiled using a script and the key \"test_build\"\n" +" is not defined in the definition of %(name)" +msgstr "" + +msgid "" +"The check command executes the \"check\" command in the build directory of " +"all the products of the application.\n" +"It is possible to reduce the list of products to check by using the --" +"products option\n" +"\n" +"example\n" +"sat check SALOME-master --products KERNEL,GUI,GEOM" +msgstr "" + +#, python-format +msgid "" +"Executing the check command in the build directories of the application %s\n" +msgstr "" + +msgid "BUILD directory" +msgstr "" + +#, python-format +msgid "" +"\n" +"Check: %(status)s (%(valid_result)d/%(nb_products)d)\n" +msgstr "" + +msgid "" +"Optional: Products to clean. This option can be passed several time to clean " +"several products." +msgstr "" + +msgid "" +"Optional: Filter the products by their properties.\n" +"\tSyntax: --properties :" +msgstr "" + +msgid "Optional: Clean the product source directories." +msgstr "" + +msgid "Optional: Clean the product build directories." +msgstr "" + +msgid "Optional: Clean the product install directories." +msgstr "" + +msgid "Optional: Clean the product source, build and install directories." +msgstr "" + +msgid "Optional: do not clean the products in development mode." +msgstr "" + +#, python-format +msgid "Warning: the path %s does not exists (or is not a directory)\n" +msgstr "" + +#, python-format +msgid "Removing %s ..." +msgstr "" + +msgid "" +"The clean command suppress the source, build, or install directories of the " +"application products.\n" +"Use the options to define what directories you want to suppress and to " +"reduce the list of products\n" +"\n" +"example:\n" +"sat clean SALOME-master --build --install --properties is_salome_module:yes" +msgstr "" + +msgid "" +"WARNING: the \"--properties\" options must have the following syntax:\n" +"--properties :" +msgstr "" + +msgid "Nothing to suppress\n" +msgstr "" + +#, python-format +msgid "Please specify what you want to suppress: tap \"%s\"\n" +msgstr "" + +msgid "Remove the following directories ?\n" +msgstr "" + +msgid "Are you sure you want to continue? [Yes/No] " +msgstr "" + +msgid "YES" +msgstr "" + +msgid "" +"Optional: build all necessary products to the given product (KERNEL is build " +"before building GUI)." +msgstr "" + +msgid "" +"Optional: build all products using the given product (all SMESH plugins are " +"build after SMESH)." +msgstr "" + +msgid "Optional: clean BUILD dir and INSTALL dir before building product." +msgstr "" + +msgid "Optional: clean INSTALL dir before building product." +msgstr "" + +msgid "Optional: add extra options to the 'make' command." +msgstr "" + +msgid "Optional: DO NOT COMPILE just show if products are installed or not." +msgstr "" + +msgid "Optional: Stops the command at first product compilation fail." +msgstr "" + +msgid "Optional: execute the unit tests after compilation" +msgstr "" + +msgid "Optional: remove the build directory after successful compilation" +msgstr "" + +#, python-format +msgid "" +"The product %(child_name)s that is in %(product_name)s children is not " +"present in application %(appli_name)s" +msgstr "" + +#, python-format +msgid "" +"The product %(father_name)s that is in %(product_name)s dependencies is not " +"present in application %(appli_name)s" +msgstr "" + +#, python-format +msgid "Compilation of %s" +msgstr "" + +#, fuzzy +msgid "Already installed\n" +msgstr "lsb_release n'est pas installé\n" + +#, fuzzy +msgid "Not installed\n" +msgstr "lsb_release n'est pas installé\n" + +msgid "ERROR : the following product(s) is(are) mandatory: " +msgstr "" + +msgid "Cleaning the install directory if there is any\n" +msgstr "" + +#, python-format +msgid "" +"\n" +"INSTALL directory = %s" +msgstr "" + +msgid "" +"Error: despite the fact that all the steps ended successfully, no install " +"directory was found !" +msgstr "" + +msgid "Add the config file in installation directory\n" +msgstr "" + +msgid "" +"The compile command constructs the products of the application\n" +"\n" +"example:\n" +"sat compile SALOME-master --products KERNEL,GUI,MEDCOUPLING --clean_all" +msgstr "" + +msgid "" +"You used --clean_all without specifying a product are you sure you want to " +"continue? [Yes/No] " +msgstr "" + +#, python-format +msgid "" +"Executing the compile commands in the build directories of the products of " +"the application %s\n" +msgstr "" + +msgid "SOURCE directory" +msgstr "" + +#, python-format +msgid "" +"\n" +"Compilation: %(status)s (%(valid_result)d/%(nb_products)d)\n" +msgstr "" + +msgid "Optional: print the value of CONFIG_VARIABLE." +msgstr "" + +msgid "Optional: edit the product configuration file." +msgstr "" + +msgid "Optional: get information on a product." +msgstr "" + +msgid "Optional: list all available applications." +msgstr "" + +msgid "Optional: synthetic view of all patches used in the application" +msgstr "" + +msgid "" +"Optional: copy a config file to the personal config files directory.\n" +"\tWARNING the included files are not copied.\n" +"\tIf a name is given the new config file takes the given name." +msgstr "" + +msgid "Internal use: do not print labels, Works only with --value and --list." +msgstr "" + +msgid "Internal use: print only keys, works only with --value." +msgstr "" + +msgid "Internal use." +msgstr "" + +#, python-format +msgid "Configuration file '%s' not found" +msgstr "" + +#, python-format +msgid "" +"Error in configuration file: salomeTools.pyconf\n" +" %(error)s" +msgstr "" + +#, python-format +msgid "" +"Error in configuration file: local.pyconf\n" +" %(error)s" +msgstr "" + +#, python-format +msgid "WARNING: The project file %s cannot be found. It will be ignored\n" +msgstr "" + +#, python-format +msgid "" +"ERROR: Error in configuration file: %(file_path)s\n" +" %(error)s\n" +msgstr "" + +#, python-format +msgid "%s, use 'config --list' to get the list of available applications." +msgstr "" + +#, python-format +msgid "" +"Error in configuration file: %(application)s.pyconf\n" +" %(error)s" +msgstr "" + +#, python-format +msgid "Error in configuration file: %(application)s.pyconf\n" +msgstr "" + +#, python-format +msgid "" +"WARNING: Error in configuration file: %(prod)s\n" +" %(error)s" +msgstr "" + +msgid "Error in get_user_config_file: missing user config file path" +msgstr "" + +msgid "** not found" +msgstr "" + +msgid "** bad extension" +msgstr "" + +#, python-format +msgid "%s is a product\n" +msgstr "" + +msgid "no install dir" +msgstr "" + +msgid "This product does not compile" +msgstr "" + +msgid "" +"The config command allows manipulation and operation on config files.\n" +"\n" +"example:\n" +"sat config SALOME-master --info ParaView" +msgstr "" + +#, python-format +msgid "Openning %s\n" +msgstr "" + +#, python-format +msgid "%(product_name)s is not a product of %(application_name)s." +msgstr "" + +#, python-format +msgid "Config file for product %s not found\n" +msgstr "" + +#, python-format +msgid "A personal application '%s' already exists" +msgstr "" + +#, python-format +msgid "%s has been created.\n" +msgstr "" + +msgid "Directory not found" +msgstr "" + +#, python-format +msgid "Show the patchs of application %s\n" +msgstr "" + +msgid "Optional: Option to add to the configure or cmake command." +msgstr "" + +#, python-format +msgid "Configuration of %s" +msgstr "" + +msgid "" +"The configure command executes in the build directory the configure commands " +"corresponding\n" +"to the compilation mode of the application products.\n" +"The possible compilation modes are \"cmake\", \"autotools\", or a script.\n" +"\n" +"Here are the commands to be run :\n" +"autotools: build_configure and configure\n" +"cmake: cmake\n" +"script: do nothing\n" +"\n" +"example:\n" +"sat configure SALOME-master --products KERNEL,GUI,PARAVIS" +msgstr "" + +#, python-format +msgid "Configuring the sources of the application %s\n" +msgstr "" + +#, python-format +msgid "" +"\n" +"Configuration: %(status)s (%(valid_result)d/%(nb_products)d)\n" +msgstr "" + +msgid "" +"Optional: Generates the environment files for the given format: bash " +"(default), bat (for windows), cfg (salome context file) or all." +msgstr "" + +msgid "Optional: Includes only the specified products." +msgstr "" + +msgid "Optional: Specifies the prefix for the environment files." +msgstr "" + +msgid "" +"Optional: Specifies the directory path where to put the environment files." +msgstr "" + +#, python-format +msgid "Target directory not found: %s" +msgstr "" + +#, python-format +msgid "Creating environment files for %s\n" +msgstr "" + +msgid "Target" +msgstr "" + +#, fuzzy, python-format +msgid "Unknown shell: %s\n" +msgstr "Architecture inconnue: '%s'\n" + +msgid "" +"The environ command generates the environment files of your application.\n" +"\n" +"example:\n" +"sat environ SALOME-master" +msgstr "" + +msgid "Search the duplicate files in the SOURCES directory." +msgstr "" + +msgid "Optional: Search the duplicate files in the given directory paths." +msgstr "" + +msgid "Optional: Override the default list of filtered files." +msgstr "" + +msgid "Optional: Override the default list of filtered extensions." +msgstr "" + +msgid "Optional: Override the default list of filtered paths." +msgstr "" + +msgid "ERROR: Wrong init values for the progress bar\n" +msgstr "" + +msgid "WARNING : wrong value for the progress bar.\n" +msgstr "" + +msgid "" +"The find_duplicates command search recursively for all duplicates files in a " +"the INSTALL directory (or the optionally given directory) and prints the " +"found files to the terminal.\n" +"\n" +"example:\n" +"sat find_duplicates --path /tmp" +msgstr "" + +#, python-format +msgid "%s does not exists or is not a directory path: it will be ignored" +msgstr "" + +msgid "Directories" +msgstr "" + +msgid "Ignored files" +msgstr "" + +msgid "Ignored extensions" +msgstr "" + +msgid "Ignored directories" +msgstr "" + +msgid "Store all file paths ... " +msgstr "" + +msgid "Eliminate the files that are not duplicated" +msgstr "" + +msgid "" +"\n" +"\n" +"Compute the dict {files : [list of pathes]} ... " +msgstr "" + +msgid "No duplicate files found.\n" +msgstr "" + +#, python-format +msgid "Warning : element %s has not more than two paths.\n" +msgstr "" + +msgid "" +"\n" +"Results:\n" +"\n" +msgstr "" + +msgid "Optional: the list of products to generate" +msgstr "" + +msgid "Optional: path to YACSGEN's module_generator package" +msgstr "" + +#, python-format +msgid "" +"product %(product)s is not defined. Include it in the application or define $" +"%(env)s." +msgstr "" + +msgid "Using YACSGEN from command line" +msgstr "" + +msgid "Using YACSGEN from application" +msgstr "" + +msgid "Using YACSGEN from environment" +msgstr "" + +msgid "The generate command requires YACSGEN." +msgstr "" + +#, python-format +msgid "YACSGEN directory not found: '%s'" +msgstr "" + +msgid "The python module module_generator was not found in YACSGEN" +msgstr "" + +msgid "" +"The generate command generates SALOME modules from 'pure cpp' products.\n" +"WARNING this command NEEDS YACSGEN to run!\n" +"\n" +"example:\n" +"sat generate SALOME-master --products FLICACPP" +msgstr "" + +#, python-format +msgid "Generation of SALOME modules for application %s\n" +msgstr "" + +#, python-format +msgid "Error: %s" +msgstr "" + +msgid "YACSGEN dir" +msgstr "" + +#, python-format +msgid "Generating %s" +msgstr "" + +msgid "Unknown product\n" +msgstr "" + +msgid "not a generated product\n" +msgstr "" + +#, python-format +msgid "ERROR: %s" +msgstr "" + +msgid "The following modules were not generated correctly:\n" +msgstr "" + +msgid "Optional: The path to the products base" +msgstr "" + +msgid "" +"Optional: The path to the working directory (where to install the " +"applications" +msgstr "" + +msgid "" +"Optional: The path to the local archive directory (where to install local " +"source archives" +msgstr "" + +msgid "Optional: The address of the repository of SAT (only informative)" +msgstr "" + +msgid "Optional: The tag of SAT (only informative)" +msgstr "" + +msgid "Optional: The directory where to put all the logs of SAT" +msgstr "" + +#, python-format +msgid "Unable to update the local.pyconf file: %s\n" +msgstr "" + +msgid "Error: The given path is a file. Please provide a path to a directory" +msgstr "" + +#, python-format +msgid "Unable to create the directory '%(1)s': %(2)s\n" +msgstr "" + +msgid "Changes the local settings of SAT." +msgstr "" + +#, python-format +msgid "" +"Local Settings of SAT %s\n" +"\n" +msgstr "" + +msgid "" +"Mandatory: The name of the config file that contains the jobs configuration" +msgstr "" + +msgid "Mandatory: The job name from which to execute commands." +msgstr "" + +msgid "" +"Executes the commands of the job defined in the jobs configuration file\n" +"\n" +"example:\n" +"sat job --jobs_config my_jobs --name my_job" +msgstr "" + +msgid "The option --jobs_config is required\n" +msgstr "" + +msgid "The option --name is required\n" +msgstr "" + +#, python-format +msgid "" +"The file configuration %(name_file)s was not found.\n" +"Use the --list option to get the possible files." +msgstr "" + +msgid "Platform" +msgstr "" + +msgid "File containing the jobs configuration" +msgstr "" + +#, python-format +msgid "Impossible to find the job \"%(job_name)s\" in %(jobs_config_file)s" +msgstr "" + +#, python-format +msgid "" +"\n" +"Commands: %(status)s (%(valid_result)d/%(nb_products)d)\n" +msgstr "" + +msgid "" +"Mandatory: The name of the config file that contains the jobs configuration. " +"Can be a list." +msgstr "" + +msgid "Optional: the list of jobs to launch, by their name. " +msgstr "" + +msgid "Optional: list all available config files." +msgstr "" + +msgid "Optional: try to connect to the machines. Not executing the jobs." +msgstr "" + +msgid "" +"Optional: generate an xml file that can be read in a browser to display the " +"jobs status." +msgstr "" + +msgid "Optional: the path to csv file that contain the expected boards." +msgstr "" + +msgid "Optional (internal use): do not print labels, Works only with --list." +msgstr "" + +msgid "Authentication failed" +msgstr "" + +msgid "The server's host key could not be verified" +msgstr "" + +msgid "SSHException error connecting or establishing an SSH session" +msgstr "" + +msgid "Error connecting or establishing an SSH session" +msgstr "" + +#, python-format +msgid "" +"Warning : trying to ask if the connection to \n" +" (name: %(1)s host: %(2)s, port: %(3)s, user: %(4)s) is OK\n" +" whereas there were no connection request" +msgstr "" + +msgid ": the server failed to execute the command\n" +msgstr "" + +#, python-format +msgid "Unable to get remote log files: %s" +msgstr "" + +msgid "Trying to get log files whereas the job is not finished." +msgstr "" + +#, python-format +msgid "Unable to get status from remote file '%(1)s': %(2)s" +msgstr "" + +#, python-format +msgid "Unable to get %(1)s log file from remote: %(2)s" +msgstr "" + +msgid "This job was not launched because its father has failed." +msgstr "" + +#, python-format +msgid "" +"Unable to get remote log files!\n" +"%s\n" +msgstr "" + +msgid "Warning: A job can only be launched one time" +msgstr "" + +#, python-format +msgid "Trying to launch the job \"%s\" whereas it has already been launched." +msgstr "" + +#, python-format +msgid "" +"WARNING: The job \"%s\" do not have the key \"machine\", this job is " +"ignored.\n" +"\n" +msgstr "" + +#, python-format +msgid "" +"WARNING: The job \"%(job_name)s\" requires the machine \"%(machine_name)s\" " +"but this machine is not defined in the configuration file.\n" +"The job will not be launched\n" +msgstr "" + +#, python-format +msgid "Connection to %s: " +msgstr "" + +msgid "Remove SAT" +msgstr "" + +msgid "Copy SAT" +msgstr "" + +#, python-format +msgid "Copy of SAT failed: %s" +msgstr "" + +msgid "Executing the jobs :\n" +msgstr "" + +msgid "This job was not launched because its father is not in the jobs list." +msgstr "" + +#, python-format +msgid "" +"\n" +"Warning: the file '%(1)s' can not be read, it will be ignored\n" +"%(2)s" +msgstr "" + +msgid "" +"The jobs command launches maintenances that are described in the dedicated " +"jobs configuration file.\n" +"\n" +"example:\n" +"sat jobs --name my_jobs --publish" +msgstr "" + +#, python-format +msgid "" +"The file configuration %s was not found.\n" +"Use the --list option to get the possible files." +msgstr "" + +msgid "Files containing the jobs configuration" +msgstr "" + +msgid "Initialize the xml boards : " +msgstr "" + +msgid "Forced interruption" +msgstr "" + +msgid "CRITICAL ERROR: The jobs loop has been interrupted\n" +msgstr "" + +msgid "Killing the running jobs and trying to get the corresponding logs\n" +msgstr "" + +#, python-format +msgid "Failed to kill job %(1)s: %(2)s\n" +msgstr "" + +msgid "" +"Optional: The name of the launcher (default is APPLICATION.profile." +"launcher_name)" +msgstr "" + +msgid "" +"Optional: Create a resources catalog for the specified machines (separated " +"with ',') \n" +"\tNOTICE: this command will ssh to retrieve information to each machine in " +"the list" +msgstr "" + +#, python-format +msgid "Generating launcher for %s :\n" +msgstr "" + +msgid "" +"The launcher command generates a SALOME launcher.\n" +"\n" +"example:\n" +"sat launcher SALOME-master" +msgstr "" + +msgid "Reading " +msgstr "" + +msgid "Here are the command traces :\n" +msgstr "" + +msgid "Which one (enter or 0 to quit)? " +msgstr "" + +msgid "" +"Gives access to the logs produced by the salomeTools commands.\n" +"\n" +"example:\n" +"sat log" +msgstr "" + +msgid "Generating the hat log file (can be long) ... " +msgstr "" + +msgid "" +"\n" +"Opening the log file\n" +msgstr "" + +msgid "" +"Optional: products to install. This option can be passed several time to " +"install several products." +msgstr "" + +#, python-format +msgid "Make install of %s" +msgstr "" + +msgid "" +"The makeinstall command executes the \"make install\" command in the build " +"directory.\n" +"In case of product that is constructed using a script (build_source : " +"\"script\"), then the makeinstall command do nothing.\n" +"\n" +"example:\n" +"sat makeinstall SALOME-master --products KERNEL,GUI" +msgstr "" + +#, python-format +msgid "" +"Executing the make install command in the build directories of the " +"application %s\n" +msgstr "" + +#, python-format +msgid "" +"\n" +"Make install: %(status)s (%(valid_result)d/%(nb_products)d)\n" +msgstr "" + +msgid "Optional: Option to add to the make command." +msgstr "" + +#, python-format +msgid "Make of %s" +msgstr "" + +msgid "" +"The make command executes the \"make\" command in the build directory.\n" +"example:\n" +"sat make SALOME-master --products Python,KERNEL,GUI" +msgstr "" + +#, python-format +msgid "" +"Executing the make command in the build directories of the application %s\n" +msgstr "" + +#, python-format +msgid "" +"\n" +"Make: %(status)s (%(valid_result)d/%(nb_products)d)\n" +msgstr "" + +msgid "Optional: Produce a binary package." +msgstr "" + +msgid "" +"Optional: Only binary package: produce the archive even if there are some " +"missing products." +msgstr "" + +msgid "" +"Optional: Produce a compilable archive of the sources of the application." +msgstr "" + +msgid "Optional: Only source package: do not make archive of vcs products." +msgstr "" + +msgid "Optional: Produce an archive that contains a project." +msgstr "" + +msgid "Optional: Produce an archive that contains salomeTools." +msgstr "" + +msgid "Optional: The name or full path of the archive." +msgstr "" + +msgid "Optional: The list of additional files to add to the archive." +msgstr "" + +msgid "Optional: do not add commercial licence." +msgstr "" + +msgid "" +"Optional: Filter the products by their properties.\n" +"\tSyntax: --without_property :" +msgstr "" + +msgid "OK" +msgstr "" + +msgid "KO " +msgstr "" + +msgid "ERROR: there are missing products installations:" +msgstr "" + +msgid "WARNING: there are missing products installations:" +msgstr "" + +msgid "ERROR: there are missing products sources:" +msgstr "" + +msgid "WARNING: there are missing products sources:" +msgstr "" + +msgid "clean sources\n" +msgstr "" + +msgid "get sources" +msgstr "" + +msgid "" +"The package command creates an archive.\n" +"There are 4 kinds of archive, which can be mixed:\n" +" 1- The binary archive. It contains all the product installation " +"directories and a launcher,\n" +" 2- The sources archive. It contains the products archives, a project " +"corresponding to the application and salomeTools,\n" +" 3- The project archive. It contains a project (give the project file path " +"as argument),\n" +" 4- The salomeTools archive. It contains salomeTools.\n" +"\n" +"example:\n" +"sat package SALOME-master --bineries --sources" +msgstr "" + +msgid "" +"Error: Precise a type for the package\n" +"Use one of the following options: --binaries, --sources, --project or --" +"salometools" +msgstr "" + +#, python-format +msgid "Packaging application %s\n" +msgstr "" + +#, python-format +msgid "" +"ERROR: the project %(proj)s is not visible by salomeTools.\n" +"Please add it in the %(local)s file." +msgstr "" + +msgid "" +"Error: Cannot name the archive\n" +" check if at least one of the following options was selected : --binaries, --" +"sources, --project or --salometools" +msgstr "" + +#, python-format +msgid "The temporary working directory: %s\n" +msgstr "" + +msgid "Preparation of files to add to the archive" +msgstr "" + +msgid "Error: Empty dictionnary to build the archive!\n" +msgstr "" + +#, python-format +msgid "WARNING: the file %s is not accessible.\n" +msgstr "" + +msgid "Actually do the package" +msgstr "" + +msgid "Removing the temporary working directory ... " +msgstr "" + +msgid "\n" +msgstr "" + +msgid "" +"Optional: products to get the sources. This option can be passed several " +"time to get the sources of several products." +msgstr "" + +#, python-format +msgid "The %s product is native. Do not apply any patch." +msgstr "" + +#, python-format +msgid "No patch for the %s product" +msgstr "" + +#, python-format +msgid "No sources found for the %s product\n" +msgstr "" + +#, fuzzy, python-format +msgid "Not a valid patch: %s" +msgstr " n'est pas une option valide" + +#, python-format +msgid "Apply patch %s" +msgstr "" + +#, python-format +msgid "Failed to apply patch %s" +msgstr "" + +msgid "" +"The patch command apply the patches on the sources of the application " +"products if there is any.\n" +"\n" +"example:\n" +"sat patch SALOME-master --products qt,boost" +msgstr "" + +msgid "" +"Optional: products to prepare. This option can be passed several time to " +"prepare several products." +msgstr "" + +msgid "Optional: force to prepare the products in development mode." +msgstr "" + +msgid "Optional: force to apply patch to the products in development mode." +msgstr "" + +msgid "" +"The prepare command gets the sources of the application products and apply " +"the patches if there is any.\n" +"\n" +"example:\n" +"sat prepare SALOME-master --products KERNEL,GUI" +msgstr "" + +msgid "" +"Do not get the source of the following products in development mode\n" +"Use the --force option to overwrite it.\n" +msgstr "" + +msgid "" +"do not patch the following products in development mode\n" +"Use the --force_patch option to overwrite it.\n" +msgstr "" + +msgid "Clean the source directories ..." +msgstr "" + +msgid "Get the sources of the products ..." +msgstr "" + +msgid "Patch the product sources (if any) ..." +msgstr "" + +msgid "Where the profile's sources will be generated." +msgstr "" + +#, python-brace-format +msgid "" +"Name of the profile's sources. [Default: ${config.PRODUCT.name}_PROFILE]" +msgstr "" + +msgid "Overwrites existing sources." +msgstr "" + +msgid "Does not update pyconf file." +msgstr "" + +msgid "Version of the application. [Default: 1.0]" +msgstr "" + +msgid "Slogan of the application." +msgstr "" + +msgid "" +"The profile command creates default profile.\n" +"usage: sat profile [PRODUCT] [-p|--prefix (string)] [-n|--name (string)] [-" +"f|--force] [-v|--version (string)] [-s|--slogan (string)]" +msgstr "" + +msgid "KERNEL's install has not the script app-quickstart.py" +msgstr "" + +#, fuzzy +msgid "GUI is not installed" +msgstr "lsb_release n'est pas installé\n" + +#, python-format +msgid "The path %s already exists, use option --force to remove it." +msgstr "" + +#, python-format +msgid "Profile sources were generated in directory %s.\n" +msgstr "" + +#, python-format +msgid "Updating %(new)s (previous version saved as %(old)s)." +msgstr "" + +#, python-format +msgid "The --%s argument is required\n" +msgstr "" + +msgid "" +"This command runs the application launcher with the given arguments.\n" +"\n" +"example:\n" +"sat run SALOME-master" +msgstr "" + +#, python-format +msgid "" +"The launcher %(1)s was not found in directory '%(2)s'.\n" +"Did you run the command 'sat launcher' ?\n" +msgstr "" + +#, python-format +msgid "" +"The launcher at path '%s' is missing.\n" +"Did you run the command 'sat launcher' ?\n" +msgstr "" + +msgid "Executed command" +msgstr "" + +msgid "Launching ...\n" +msgstr "" + +msgid "" +"\n" +"End of execution. To see the traces, please tap the following command :\n" +msgstr "" + +msgid "" +"Optional: The number of processors to use in the script if the make command " +"is used in it.\n" +"\tWarning: the script has to be correctly written if you want this option to " +"work.\n" +"\tThe $MAKE_OPTIONS has to be used." +msgstr "" + +#, python-format +msgid "Running script of %s" +msgstr "" + +msgid "" +"The script command executes the script(s) of the the given products in the " +"build directory.\n" +"This is done only for the products that are constructed using a script " +"(build_source : \"script\").\n" +"Otherwise, nothing is done.\n" +"\n" +"example:\n" +"sat script SALOME-master --products Python,numpy" +msgstr "" + +#, python-format +msgid "Executing the script in the build directories of the application %s\n" +msgstr "" + +#, python-format +msgid "" +"\n" +"Script: %(status)s (%(valid_result)d/%(nb_products)d)\n" +msgstr "" + +msgid "Mandatory: The shell command to execute." +msgstr "" + +msgid "" +"Executes the shell command passed as argument.\n" +"\n" +"example:\n" +"sat shell --command \"ls \\-l /tmp\"" +msgstr "" + +msgid "The option --command is required\n" +msgstr "" + +#, python-format +msgid "" +"Command to execute:\n" +"%s\n" +"Execution ... " +msgstr "" + +msgid "" +"Optional: products from which to get the sources. This option can be passed " +"several time to get the sources of several products." +msgstr "" + +#, python-format +msgid "Archive not found: '%s'" +msgstr "" + +#, python-format +msgid "Error: you must put a dir_info section in the file %s.pyconf" +msgstr "" + +#, python-format +msgid "Error: you must put a dir in the dir_info section in the file %s.pyconf" +msgstr "" + +#, python-format +msgid "" +"Error: the dir '%(1)s' defined in the file\"\n" +" %(2)s.pyconf does not exists" +msgstr "" + +msgid "Set the application environment\n" +msgstr "" + +msgid "" +"INFORMATION : Not doing anything because the product is of type \"native\".\n" +msgstr "" + +msgid "" +"INFORMATION : Not doing anything because the product is of type \"fixed\".\n" +msgstr "" + +#, python-format +msgid "Unknown get source method \"%(get)s\" for product %(product)s" +msgstr "" + +msgid "" +"INFORMATION : Not doing anything because the source directory already " +"exists.\n" +msgstr "" + +#, python-format +msgid "The required file %s does not exists. " +msgstr "" + +msgid "" +"\n" +"Testing existence of file: \n" +msgstr "" + +msgid "" +"The source command gets the sources of the application products from cvs, " +"git or an archive.\n" +"\n" +"example:\n" +"sat source SALOME-master --products KERNEL,GUI" +msgstr "" + +#, python-format +msgid "Getting sources of the application %s\n" +msgstr "" + +msgid "Getting sources of the application:" +msgstr "" + +msgid "Following sources haven't been get:\n" +msgstr "" + +msgid "" +"REQUIRED: the name of the module to create.\n" +"\tThe name must be a single word in upper case with only alphanumeric " +"characters.\n" +"\tWhen generating a c++ component the module's name must be suffixed with " +"'CPP'." +msgstr "" + +msgid "REQUIRED: the template to use." +msgstr "" + +msgid "REQUIRED: where to create the module." +msgstr "" + +msgid "" +"Optional: dictionary to generate the configuration for salomeTools.\n" +"\tFormat is: --param param1=value1,param2=value2... without spaces\n" +"\tNote that when using this option you must supply all the values otherwise " +"an error will be raised." +msgstr "" + +msgid "Optional: Get information on the template." +msgstr "" + +msgid "ERROR in template parameter definition" +msgstr "" + +#, python-format +msgid "value for '%s'" +msgstr "" + +#, python-format +msgid "Bad format in settings file! %s not defined." +msgstr "" + +#, python-format +msgid "Missing parameters: %s" +msgstr "" + +#, python-format +msgid "Template not found: %s" +msgstr "" + +#, python-format +msgid "Extract template %s\n" +msgstr "" -msgid " is not a valid command" -msgstr " n'est pas une commande valide" +#, python-format +msgid "Copy template %s\n" +msgstr "" -msgid "Usage: " -msgstr "Utilisation : " +msgid "Settings file not found" +msgstr "" -msgid "Available commands are:\n" -msgstr "Les commandes disponibles sont:\n" +msgid "Rename files\n" +msgstr "" + +#, python-format +msgid "Destination file already exists: %s" +msgstr "" + +msgid "Rename directories\n" +msgstr "" + +#, python-format +msgid "Destination directory already exists: %s" +msgstr "" + +msgid "Make substitution in files\n" +msgstr "" + +msgid "Delimiter =" +msgstr "" + +msgid "Ignore Filters =" +msgstr "" + +msgid "Definition for sat not found in settings file." +msgstr "" + +msgid "Create configuration file: " +msgstr "" + +msgid "Run post command: " +msgstr "" + +msgid "Template" +msgstr "" + +msgid "No information for this template." +msgstr "" msgid "" +"The template command creates the sources for a SALOME module from a " +"template.\n" "\n" -"Getting the help for a specific command: " +"example\n" +"sat template --name my_product_name --template PythonComponent --target /tmp" +msgstr "" + +#, python-format +msgid "Error: the --%s argument is required\n" +msgstr "" + +msgid "Error: this command does not use a product." +msgstr "" + +msgid "" +"Error: component name must contains only alphanumeric characters and no " +"spaces\n" +msgstr "" + +#, python-format +msgid "Error: the target already exists: %s" +msgstr "" + +msgid "Create sources from template\n" +msgstr "" + +msgid "Error: bad parameter definition" +msgstr "" + +#, python-format +msgid "The sources were created in %s" +msgstr "" + +msgid "" +"\n" +"Do not forget to put them in your version control system." +msgstr "" + +msgid "" +"Optional: Indicate the name of the test base to use.\n" +"\tThis name has to be registered in your application and in a project.\n" +"\tA path to a test base can also be used." +msgstr "" + +msgid "" +"Optional: Use this option to specify the path to a SALOME launcher to use to " +"launch the test scripts of the test base." msgstr "" + +msgid "" +"Optional: Indicate which grid(s) to test (subdirectory of the test base)." +msgstr "" + +msgid "Optional: indicate which session(s) to test (subdirectory of the grid)." +msgstr "" + +msgid "" +"Optional: set the display where to launch SALOME.\n" +"\tIf value is NO then option --show-desktop=0 will be used to launch SALOME." +msgstr "" + +msgid "" +"The test command runs a test base on a SALOME installation.\n" +"\n" +"example:\n" +"sat test SALOME-master --grid GEOM --session light" +msgstr "" + +msgid "An application is required to use a relative path with option --appli" +msgstr "" + +#, python-format +msgid "Launcher not found: %s" +msgstr "" + +#, python-format +msgid "%s cannot be created." +msgstr "" + +#, python-format +msgid "copy tests results to %s ... " +msgstr "" + +#, python-format +msgid "" +"\n" +"check the display on %s\n" +msgstr "" + +#, python-format +msgid "Executing the command : %s " +msgstr "" + +#, python-format +msgid "Running tests on application %s\n" +msgstr "" + +msgid "A test base is required. Use the --base option" +msgstr "" + +msgid "WARNING: SALOME environment already sourced" +msgstr "" + +msgid "Running SALOME application." +msgstr "" + +msgid "" +"Impossible to find any launcher.\n" +"Please specify an application or a launcher" +msgstr "" + +#, python-format +msgid "error removing TT_TMP_RESULT %s\n" +msgstr "" + +msgid "Display" +msgstr "" + +msgid "Timeout" +msgstr "" + +msgid "Working dir" +msgstr "" + +msgid "Tests finished" +msgstr "" + +msgid "" "\n" -"Obtenir l'aide d'une commande spcifique : " +"Generate the specific test log\n" +msgstr "" + +#, python-format +msgid "Removing the temporary directory: rm -rf %s\n" +msgstr "" msgid "lsb_release not installed\n" -msgstr "lsb_release n'est pas install\n" +msgstr "lsb_release n'est pas installé\n" msgid "You can define $LSB_PATH to give the path to lsb_release\n" -msgstr "Vous pouvez dfinir $LSB_PATH pour donner le chemin vers lsb_release\n" +msgstr "Vous pouvez définir $LSB_PATH pour donner le chemin vers lsb_release\n" #, python-format msgid "Unknown distribution: '%s'\n" msgstr "Distribution inconnue : '%s'\n" -msgid "Please add your distribution to data/distrib.pyconf\n" -msgstr "SVP ajoutez votre distribution au fichier data/distrib.pyconf\n" +msgid "Please add your distribution to src/internal_config/distrib.pyconf\n" +msgstr "" +"SVP ajoutez votre distribution au fichier src/internal_config/distrib." +"pyconf\n" #, python-format -msgid "Unknown architecture: '%s'\n" -msgstr "Architecture inconnue: '%s'\n" +msgid "Compile %(product)s using script %(script)s\n" +msgstr "" + +#, python-format +msgid "Run build script %s\n" +msgstr "" + +#, python-format +msgid "The script %s must have .sh, .bat or .py extension." +msgstr "" + +#, python-format +msgid "Missing definition in environment: %s" +msgstr "" + +#, python-format +msgid "No install_dir for product %s\n" +msgstr "" + +#, python-format +msgid "Setting environment for %s\n" +msgstr "" + +#, python-format +msgid "Environment script not found: %s" +msgstr "" + +#, python-format +msgid "Create environment file %s\n" +msgstr "" + +#, python-format +msgid "Create configuration file %s\n" +msgstr "" + +msgid "" +"An APPLICATION is required. Use 'config --list' to get the list of available " +"applications.\n" +msgstr "" + +msgid "A profile section is required in your application.\n" +msgstr "" + +#, python-format +msgid "Please define a base path in the file %s" +msgstr "" + +#, python-format +msgid "Please define a log_dir in the file %s" +msgstr "" + +#, python-format +msgid "" +"Error in configuration file: %(file)s\n" +" %(error)s" +msgstr "" + +msgid "ERROR:" +msgstr "" + +#, python-format +msgid "WARNING: the log file %s cannot be read:" +msgstr "" msgid " is not a valid option" msgstr " n'est pas une option valide" msgid "Available options are:" msgstr "Les options disponibles sont:" + +#, python-format +msgid "" +"The product %(prod)s has version %(ver)s but is declared as native in its " +"definition" +msgstr "" + +#, python-format +msgid "" +"No definition found for the product %(1)s.\n" +"Please create a %(2)s.pyconf file." +msgstr "" + +#, python-format +msgid "" +"No definition corresponding to the version %(1)s\n" +"was found in the file %(2)s.\n" +"Please add a section in it." +msgstr "" + +#, python-format +msgid "Archive %(1)s for %(2)s not found.\n" +msgstr "" + +#, python-format +msgid "Archive %(1)s for %(2)s not found:\n" +msgstr "" + +#, python-format +msgid "" +"No compilation script found for the product %s.\n" +"Please provide a 'compil_script' key in its definition." +msgstr "" + +#, python-format +msgid "Compilation script not found: %s" +msgstr "" + +#, python-format +msgid "Patch %(1)s for %(2)s not found:\n" +msgstr "" + +#, python-format +msgid "Environment script %(1)s for %(2)s not found.\n" +msgstr "" + +#, python-format +msgid "The %s product has no definition in the configuration." +msgstr "" + +#, python-format +msgid "Unable to edit file %s\n" +msgstr "" + +#, python-format +msgid "get test base from dir: %s\n" +msgstr "" + +#, python-format +msgid "testbase %(name)s (%(dir)s) does not exist ...\n" +msgstr "" + +#, python-format +msgid "get test base '%(testbase)s' with '%(tag)s' tag from git\n" +msgstr "" + +#, python-format +msgid "Error: unable to get test base '%(name)s' from git '%(repo)s'." +msgstr "" + +msgid "git is not installed. exiting...\n" +msgstr "" + +#, python-format +msgid "get test base '%s' from svn\n" +msgstr "" + +#, python-format +msgid "Error: unable to get test base '%(name)s' from svn '%(repo)s'." +msgstr "" + +msgid "svn is not installed. exiting...\n" +msgstr "" + +msgid "Test base" +msgstr "" + +#, python-format +msgid "########## ERROR: test base '%s' not found\n" +msgstr "" + +#, python-format +msgid "unknown source type '%(type)s' for test base '%(base)s' ...\n" +msgstr "" + +msgid "Load test settings\n" +msgstr "" + +msgid "=== STARTING TESTS" +msgstr "" + +msgid "=== END TESTS" +msgstr "" + +#, python-format +msgid "Tests Results: %(succeed)d / %(total)d\n" +msgstr "" + +#, python-format +msgid "%d tests TIMEOUT\n" +msgstr "" + +#, python-format +msgid "%d tests not executed\n" +msgstr "" + +#, python-format +msgid "Status: %s\n" +msgstr "" diff --git a/src/i18n/translate.py b/src/i18n/translate.py old mode 100644 new mode 100755 index a7a8171..ea22f7d --- a/src/i18n/translate.py +++ b/src/i18n/translate.py @@ -1,4 +1,9 @@ -#/bin/env python +#!/bin/env python + +""" +create fr/LC_MESSAGES/salomeTools.mo from r/LC_MESSAGES/salomeTools.po +""" + import polib po = polib.pofile('fr/LC_MESSAGES/salomeTools.po', encoding='utf-8') po.save_as_mofile('fr/LC_MESSAGES/salomeTools.mo') diff --git a/src/i18n/translate.sh b/src/i18n/translate.sh index 5ad2b2c..3bff798 100755 --- a/src/i18n/translate.sh +++ b/src/i18n/translate.sh @@ -5,6 +5,6 @@ I18HOME=`dirname $0` # french -echo build French ressources +echo "build French ressources, create salomeTools.mo" msgfmt ${I18HOME}/fr/LC_MESSAGES/salomeTools.po -o ${I18HOME}/fr/LC_MESSAGES/salomeTools.mo diff --git a/src/product.py b/src/product.py index b1c62eb..41fa99b 100644 --- a/src/product.py +++ b/src/product.py @@ -145,13 +145,14 @@ def get_product_config(config, product_name, with_install_dir=True): prod_pyconf_path = src.find_file_in_lpath(product_name + ".pyconf", config.PATHS.PRODUCTPATH) if not prod_pyconf_path: - msg = _("No definition found for the product %s\n" - "Please create a %s.pyconf file." % (product_name, product_name)) + msg = _("""\ +No definition found for the product %(1)s. +Please create a %(2)s.pyconf file.""" % {"1": product_name, "2": product_name}) else: - msg = _("No definition corresponding to the version %(version)s was" - " found in the file %(prod_file_path)s.\nPlease add a " - "section in it." % {"version" : vv, - "prod_file_path" : prod_pyconf_path} ) + msg = _("""\ +No definition corresponding to the version %(1)s +was found in the file %(2)s. +Please add a section in it.""" % {"1" : vv, "2" : prod_pyconf_path} ) raise src.SatException(msg) # Set the debug, dev and version keys @@ -170,9 +171,8 @@ def get_product_config(config, product_name, with_install_dir=True): arch_path = src.find_file_in_lpath(arch_name, config.PATHS.ARCHIVEPATH) if not arch_path: - msg = _("Archive %(arch_name)s for %(prod_name)s not found:" - "\n" % {"arch_name" : arch_name, - "prod_name" : prod_info.name}) + msg = _("Archive %(1)s for %(2)s not found.\n" % + {"1" : arch_name, "2" : prod_info.name}) raise src.SatException(msg) prod_info.archive_info.archive_name = arch_path else: @@ -183,9 +183,8 @@ def get_product_config(config, product_name, with_install_dir=True): arch_name, config.PATHS.ARCHIVEPATH) if not arch_path: - msg = _("Archive %(arch_name)s for %(prod_name)s not found:" - "\n" % {"arch_name" : arch_name, - "prod_name" : prod_info.name}) + msg = _("Archive %(1)s for %(2)s not found:\n" % + {"1" : arch_name, "2" : prod_info.name}) raise src.SatException(msg) prod_info.archive_info.archive_name = arch_path @@ -194,9 +193,9 @@ def get_product_config(config, product_name, with_install_dir=True): if product_has_script(prod_info): # Check the compil_script key existence if "compil_script" not in prod_info: - msg = _("No compilation script found for the product %s\n" - "Please provide a \"compil_script\" key in its definition." - % (product_name)) + msg = _("""\ +No compilation script found for the product %s. +Please provide a 'compil_script' key in its definition.""" % (product_name)) raise src.SatException(msg) # Get the path of the script @@ -216,9 +215,11 @@ def get_product_config(config, product_name, with_install_dir=True): # Check that the script is executable if not os.access(prod_info.compil_script, os.X_OK): - raise src.SatException( - _("Compilation script cannot be executed: %s") % - prod_info.compil_script) + #raise src.SatException( + # _("Compilation script cannot be executed: %s") % + # prod_info.compil_script) + print("Compilation script cannot be executed: %s" % + prod_info.compil_script) # Get the full paths of all the patches if product_has_patches(prod_info): @@ -232,9 +233,8 @@ def get_product_config(config, product_name, with_install_dir=True): config.PATHS.PRODUCTPATH, "patches") if not patch_path: - msg = _("Patch %(patch_name)s for %(prod_name)s not found:" - "\n" % {"patch_name" : patch, - "prod_name" : prod_info.name}) + msg = _("Patch %(1)s for %(2)s not found:\n" % + {"1" : patch, "2" : prod_info.name}) raise src.SatException(msg) patches.append(patch_path) prod_info.patches = patches @@ -251,9 +251,8 @@ def get_product_config(config, product_name, with_install_dir=True): config.PATHS.PRODUCTPATH, "env_scripts") if not env_script_path: - msg = _("Environment script %(env_name)s for %(prod_name)s not " - "found.\n" % {"env_name" : env_script_path, - "prod_name" : prod_info.name}) + msg = _("Environment script %(1)s for %(2)s not found.\n" % + {"1" : env_script_path, "2" : prod_info.name}) raise src.SatException(msg) prod_info.environ.env_script = env_script_path