mapbender / mapbender-documentation

Documentation for Mapbender
https://doc.mapbender.org
6 stars 25 forks source link

add info about the command bin/console mapbender:normalize-translations #421

Closed astroidex closed 7 months ago

astroidex commented 9 months ago

Describe your feature request Mapbender 4.0

add information about the new command

bin/console mapbender:normalize-translations --help

bin/console mapbender:normalize-translations --help
Description:
  Normalize YAML order of translation files and mark missing translations.

Usage:
  mapbender:normalize-translations [options] [--] <language>

Arguments:
  language                                       the language code (e.g. de) that should be processed

Options:
      --source-language[=SOURCE-LANGUAGE]        the source language (e.g. en) that is seen as default. It is assumed all keys are present in the source language [default: "en"]
  -a, --add-missing-keys                         if set to true, entries not present in the target language will be added (marked with a prefix)
      --missing-key-prefix[=MISSING-KEY-PREFIX]  the prefix to mark keys that were automatically added and are yet to translate [default: "TRANSLATE: "]
  -p, --print-missing-keys                       if set to true, entries not present in the target language will be logged to the console.
  -h, --help                                     Display help for the given command. When no command is given display help for the list command
  -q, --quiet                                    Do not output any message
  -V, --version                                  Display this application version
      --ansi|--no-ansi                           Force (or disable --no-ansi) ANSI output
  -n, --no-interaction                           Do not ask any interactive question
  -e, --env=ENV                                  The Environment name. [default: "dev"]
      --no-debug                                 Switch off debug mode.
  -v|vv|vvv, --verbose                           Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug

Help:
  This command normalizes YAML order of translation files and adds missing translations.