From a95d2e8b374174fc10a44dc39aa927d6c413a693 Mon Sep 17 00:00:00 2001 From: Mathieu De Keyzer Date: Tue, 25 Jun 2024 22:33:09 +0200 Subject: [PATCH] refactor: sys_get_temp_dir centralized in Helper classes (TempFile & TempDirectory) (#929) --- elasticms-admin/commands/commands.md | 8 +++++--- upgrade.md | 12 ++++++++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/elasticms-admin/commands/commands.md b/elasticms-admin/commands/commands.md index 9cac7fb..cbb0a5e 100644 --- a/elasticms-admin/commands/commands.md +++ b/elasticms-admin/commands/commands.md @@ -464,7 +464,7 @@ Options: --bulk-size=BULK-SIZE Size of the elasticsearch scroll request [default: 500] --target-environment[=TARGET-ENVIRONMENT] Environment with the target documents --xliff-version[=XLIFF-VERSION] XLIFF format version: 1.2 2.0 [default: "1.2"] - --filename[=FILENAME] Generate the XLIFF specified file + --basename[=BASENAME] XLIFF export file basename [default: "ems-extract.xlf"] --base-url[=BASE-URL] Base url, in order to generate a download link to the XLIFF file --locale-field[=LOCALE-FIELD] Field containing the locale --encoding[=ENCODING] Encoding used to generate the XLIFF file [default: "UTF-8"] @@ -507,7 +507,9 @@ Arguments: Options: --publish-to[=PUBLISH-TO] If defined the revision will be published in the defined environment --archive If set another revision will be flagged as archived - --locale-field[=LOCALE-FIELD] Field containing the locale [default: "locale"] - --translation-field[=TRANSLATION-FIELD] Field containing the translation field [default: "translation_id"] + --locale-field[=LOCALE-FIELD] Field containing the locale + --translation-field[=TRANSLATION-FIELD] Field containing the translation field --dry-run If set nothing is saved in the database + --current-revision-only Translations will be updated only is the source revision is still a current revision + --base-url[=BASE-URL] Base url, in order to generate a download link to the error report ``` diff --git a/upgrade.md b/upgrade.md index 0f22478..2152a7d 100644 --- a/upgrade.md +++ b/upgrade.md @@ -1,5 +1,6 @@ # Upgrade + * [version 5.19.x](#version-519x) * [version 5.17.x](#version-517x) * [version 5.15.x](#version-515x) * [version 5.14.x](#version-514x) @@ -9,6 +10,17 @@ * [version 4.x](#version-4x) * [Tips and tricks](#tips-and-tricks) +## version 5.19.x + +* Xliff command options have been updated + * The `--filename` option in the `emsco:xliff:extract` command has been replaced by a `--basename` option and does not contains a path anymore, just a file basename. + + Example replace ```emsco:xliff:extract live '{}' nl de title --filename=/tmp/pages-nl-to-de.xlf``` + by ```emsco:xliff:extract live '{}' nl de title --basename=pages-nl-to-de.xlf``` + * In case of warning or error in the `emsco:xliff:update` command the report file is no more available locally. The report is upladed in the admin's storages. The directly get a link to the report you need to specify a `--base-url` option. + + Example ```emsco:xliff:update /tmp/pages-nl-to-de.xlf --base-url=https://my-admin.my-project.tld``` + ## version 5.17.x * Check routes single colon is deprecated