Update centos-art.sh script:
- Scripts/Functions/Commons/cli_getPathComponent.sh: Update release regular
expression pattern. Instead of using the bracket notation to infer
optionality (e.g., `{0,1}'), use the interrogation mark (`?'). This
solves the sed's complains in locale_isLocalizable function.
- Scripts/Functions/Commons/cli_printMessage.sh: Add `--as-suggestion-line'.
This is another kind of error, but infer a more specific solution
to the problem. For example, when you are rendering a directory
structure that don't support localization, the script looks for
different and equal components of the path in the location you
provided and compares it with those accepted to receive
localization and builds a possible match using both the correct
path and filter option you need to provide in order to achieve the
rendition action.
- Scripts/Functions/Locale/locale.sh: Remove locale_isLocalizable
verification from this file and add a comment describing why.
- Scripts/Functions/Locale/locale_editMessages.sh: Add locale_isLocalizable
verifications here.
- Scripts/Functions/Locale/locale_isLocalizable.sh: Update regular expression
patterns used to define which locations are and are not localizable
inside the repository. Remove the $ meta-character from the
patterns and set it in the verification later. Add support to
cli_printMessage `--as-suggestion-line' option extending the
verification of whether a directory accepts or not localization
inside the repository.
- Scripts/Functions/Locale/locale_updateMessageXmlDocbook.sh: Fix regular
expression pattern used to find out the main docbook file inside a
documentation manual. Specify the language information when the POT
file is created through xml2po program.
- Scripts/Functions/Locale/locale_updateMessages.sh: Add locale_isLocalizable
verification here.
- Scripts/Functions/Render/Docbook/docbook_doTranslation.sh: Fix regular
expression used to define path to DocBook locales using models as
reference.
- Scripts/Functions/Render/Docbook/docbook_expandSystemEntities.sh: Fix path
to Docbook Default models.
- Scripts/Functions/Render/render_doBaseActions.sh: Verify whether or not the
source location of the path provided as argument to centos-art.sh
script accepts or not localization messages. Don't produce
localized content for repository components that don't accept it.
We moved this verification here in order to use the value of
TEMPLATE variable which hasn't suffered any transformation so far.
Fix regular expression used as pattern to build the list of files
to process. This fix makes possible to use the --filter option in
combination with the path argument, so paths that cannot be
localized because of organizational restrictions could be rendered.
Move render_getDirOutput after TEMPLATE=${FILE} assignment.
- Scripts/Functions/Render/render_getDirOutput.sh: Remove locale_isLocalized
verification from this file. It was already done before at
render_doBaseActions.
- Locales/Documentation/Models/Docbook/Tcar-ug/es_ES/: Update
translation messages.