From 008c64df3ef58134a100f2357aac8ef2339958f1 Mon Sep 17 00:00:00 2001 From: Bertrand PRESLES Date: Fri, 18 Nov 2016 18:04:52 +0100 Subject: [PATCH 1/4] Fix translation for success message on import single command --- translations/config.import.single.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/translations/config.import.single.yml b/translations/config.import.single.yml index 9e0f32c..27fa4ca 100644 --- a/translations/config.import.single.yml +++ b/translations/config.import.single.yml @@ -7,4 +7,4 @@ questions: file: 'Enter path to the import file' messages: empty-value: 'Value can not be empty' - success: 'The configuration "%s", had been imported.' + success: 'The configuration "%s", has been imported.' From dd56dfb5b2d435cc34d36d33cc917ce9ac21f3f1 Mon Sep 17 00:00:00 2001 From: Bertrand PRESLES Date: Fri, 18 Nov 2016 18:06:50 +0100 Subject: [PATCH 2/4] Added translations for new config:import:list and config:export:list commands --- translations/config.export.list.yml | 19 +++++++++++++++++++ translations/config.import.list.yml | 12 ++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 translations/config.export.list.yml create mode 100644 translations/config.import.list.yml diff --git a/translations/config.export.list.yml b/translations/config.export.list.yml new file mode 100644 index 0000000..8df8739 --- /dev/null +++ b/translations/config.export.list.yml @@ -0,0 +1,19 @@ +description: 'Export configurations as yml file based on a list in the YAML file passed as argument.' +arguments: + config-list-file: 'YAML File containing the configs names to export.' +options: + include-dependencies: 'Export dependencies of the configuration as well.' + simple-configuration: 'Simple configuration' + optional-config: 'Export config as an optional YAML configuration in your module' +questions: + config-list-file: 'Enter path to config list file (relatively to Drupal root)' + config-type: 'Configuration type' + optional-config: 'Export config in module as an optional configuration' + remove-uuid: 'Do you want to remove the uuid from this export' +messages: + config-list-file-not-found: 'Configuration list file %s not found.' + config-list-file-empty: 'Configuration list file parameter must not be empty.' + invalid-config-type: 'Invalid config type, please select one of the list' + invalid-config-list-file-format: 'Invalid config list file format. Please use a valid YAML file' + invalid-config-list-file-content: 'Invalid config list file content. The file msut contain a configs key with a list of config names' + config_exported: 'Configuration(s) exported sucessfully' \ No newline at end of file diff --git a/translations/config.import.list.yml b/translations/config.import.list.yml new file mode 100644 index 0000000..98880be --- /dev/null +++ b/translations/config.import.list.yml @@ -0,0 +1,12 @@ +description: 'Export configurations as yml file based on a list in the YAML file passed as argument.' +arguments: + config-list-file: 'YAML File containing the configs names to import.' +options: + directory: 'Define the directory where to find the configurations files for the import. (default SYNC directory)' +questions: + config-list-file: 'Enter path to config list file (relatively to Drupal root)' +messages: + config-list-file-not-found: 'Configuration list file %s not found.' + config-list-file-empty: 'Configuration list file parameter must not be empty.' + empty-value: 'Value can not be empty' + success: 'The configuration "%s", has been imported.' From 276438ba1a26a5e742c8ff98800efdf54b0d04f0 Mon Sep 17 00:00:00 2001 From: Bertrand PRESLES Date: Mon, 21 Nov 2016 18:28:16 +0100 Subject: [PATCH 3/4] Added translations for invalid directory path --- translations/config.export.list.yml | 3 ++- translations/config.import.list.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/translations/config.export.list.yml b/translations/config.export.list.yml index 8df8739..6c84ebd 100644 --- a/translations/config.export.list.yml +++ b/translations/config.export.list.yml @@ -6,12 +6,13 @@ options: simple-configuration: 'Simple configuration' optional-config: 'Export config as an optional YAML configuration in your module' questions: - config-list-file: 'Enter path to config list file (relatively to Drupal root)' + config-list-file: 'Enter path to config list file (absolutely or relatively to Drupal root)' config-type: 'Configuration type' optional-config: 'Export config in module as an optional configuration' remove-uuid: 'Do you want to remove the uuid from this export' messages: config-list-file-not-found: 'Configuration list file %s not found.' + invalid-directory: 'Invalid directory path.' config-list-file-empty: 'Configuration list file parameter must not be empty.' invalid-config-type: 'Invalid config type, please select one of the list' invalid-config-list-file-format: 'Invalid config list file format. Please use a valid YAML file' diff --git a/translations/config.import.list.yml b/translations/config.import.list.yml index 98880be..d453641 100644 --- a/translations/config.import.list.yml +++ b/translations/config.import.list.yml @@ -4,9 +4,10 @@ arguments: options: directory: 'Define the directory where to find the configurations files for the import. (default SYNC directory)' questions: - config-list-file: 'Enter path to config list file (relatively to Drupal root)' + config-list-file: 'Enter path to config list file (absolutely or relatively to Drupal root)' messages: config-list-file-not-found: 'Configuration list file %s not found.' + invalid-directory: 'Invalid directory path.' config-list-file-empty: 'Configuration list file parameter must not be empty.' empty-value: 'Value can not be empty' success: 'The configuration "%s", has been imported.' From b69c0221d310a93c1e21b3d715585f40e8da77ed Mon Sep 17 00:00:00 2001 From: Bertrand PRESLES Date: Sun, 11 Dec 2016 22:06:03 +0100 Subject: [PATCH 4/4] Updated translations for new multiple configs abilities of config:import:single and config:export:single commands. Removed translations of config:export:list and config:import:list commands as they have been merged on single commands --- translations/config.export.list.yml | 20 -------------------- translations/config.export.single.yml | 5 +++-- translations/config.import.list.yml | 13 ------------- translations/config.import.single.yml | 5 +++-- 4 files changed, 6 insertions(+), 37 deletions(-) delete mode 100644 translations/config.export.list.yml delete mode 100644 translations/config.import.list.yml diff --git a/translations/config.export.list.yml b/translations/config.export.list.yml deleted file mode 100644 index 6c84ebd..0000000 --- a/translations/config.export.list.yml +++ /dev/null @@ -1,20 +0,0 @@ -description: 'Export configurations as yml file based on a list in the YAML file passed as argument.' -arguments: - config-list-file: 'YAML File containing the configs names to export.' -options: - include-dependencies: 'Export dependencies of the configuration as well.' - simple-configuration: 'Simple configuration' - optional-config: 'Export config as an optional YAML configuration in your module' -questions: - config-list-file: 'Enter path to config list file (absolutely or relatively to Drupal root)' - config-type: 'Configuration type' - optional-config: 'Export config in module as an optional configuration' - remove-uuid: 'Do you want to remove the uuid from this export' -messages: - config-list-file-not-found: 'Configuration list file %s not found.' - invalid-directory: 'Invalid directory path.' - config-list-file-empty: 'Configuration list file parameter must not be empty.' - invalid-config-type: 'Invalid config type, please select one of the list' - invalid-config-list-file-format: 'Invalid config list file format. Please use a valid YAML file' - invalid-config-list-file-content: 'Invalid config list file content. The file msut contain a configs key with a list of config names' - config_exported: 'Configuration(s) exported sucessfully' \ No newline at end of file diff --git a/translations/config.export.single.yml b/translations/config.export.single.yml index c474b08..b796c81 100644 --- a/translations/config.export.single.yml +++ b/translations/config.export.single.yml @@ -1,5 +1,6 @@ -description: 'Export single configuration as yml file.' +description: 'Export a single configuration or a list of configurations as yml file(s).' arguments: + config-names: 'Configuration names (when used with "chain" command).' config-name: 'Configuration name.' options: include-dependencies: 'Export dependencies of the configuration as well.' @@ -15,4 +16,4 @@ messages: export: 'Configuration was exported at file "%s".' invalid-config-type: 'Invalid config type, please select one of the list' invalid-config-name: 'Invalid config name, please select one of the list' - config_exported: 'Configuration(s) exported sucessfully' + config_exported: 'Configuration(s) exported successfully' diff --git a/translations/config.import.list.yml b/translations/config.import.list.yml deleted file mode 100644 index d453641..0000000 --- a/translations/config.import.list.yml +++ /dev/null @@ -1,13 +0,0 @@ -description: 'Export configurations as yml file based on a list in the YAML file passed as argument.' -arguments: - config-list-file: 'YAML File containing the configs names to import.' -options: - directory: 'Define the directory where to find the configurations files for the import. (default SYNC directory)' -questions: - config-list-file: 'Enter path to config list file (absolutely or relatively to Drupal root)' -messages: - config-list-file-not-found: 'Configuration list file %s not found.' - invalid-directory: 'Invalid directory path.' - config-list-file-empty: 'Configuration list file parameter must not be empty.' - empty-value: 'Value can not be empty' - success: 'The configuration "%s", has been imported.' diff --git a/translations/config.import.single.yml b/translations/config.import.single.yml index 27fa4ca..4773627 100644 --- a/translations/config.import.single.yml +++ b/translations/config.import.single.yml @@ -1,10 +1,11 @@ -description: 'Import the selected configuration.' +description: 'Import a single configurations or a list of configurations.' arguments: name: 'Configuration name' file: 'Path to the import file' + config-names: 'Configuration names (when used with "chain" command).' questions: name: 'Enter configuration name' file: 'Enter path to the import file' messages: empty-value: 'Value can not be empty' - success: 'The configuration "%s", has been imported.' + success: 'Configuration(s) "%s", has been imported successfully.'