Update locale module of centos-art.sh script.
- Previously, when updating shell script localization files, the sh
function was using the script name and version. In a per-module
localization such information isn't accurate. This update changes
the sh function to set the name of the file being localized as name
of the package and keep using the script version.
- Previously, the update_setPoMetadata function was creating PO files
with the script information. In this update, it was changed to use
the package name and package version based on the information set in
sh function.
- Previously, the update_setPoMetadata function was creating PO files
with both package name and package version inside comments. The
comments are created just one so the next time the PO file be
updated none information in the comment will be updated. This would
result in comments describing an older version of the current file.
This update changes the update_setPoMetadata function to use only
the name of the package and removes the package version from it.
- Add the locale_getFilesList.sh file.
- Previously, the locale module controlled the number of files it
would process using the --filter option and the configuration
section of configuration files as reference. Locations that doesn't
have a configuration file (because don't need one) had no way to
control the way files inside would be processed by the locale
module. This update changes the locale.sh file to introduce the
LOCALE_FLAG_TYPE flag. This flag is controlled from the command-line
using the --type option. This option receives one value as argument.
When the value is "self" (the default), the locale module produces
localization files just for the file you passed as argument in the
command-line. When the value is "siblings", the locale module
creates localization files for all the files considered siblings of
that you provided in the command-line line. When the value is "all",
the locale looks recursively for all the files that share the same
file extension of that one you provided in the command-line and
create localization files for all of them. In all these three cases,
the locale module creates just one set of POT, PO and MO files using
the file name of the file you provided as argument in the
command-line.
- Previously, the locale module doesn't allow you to localize
variation of English language. This update changes the locales.sh
file to allow localization of any English variant. In fact, the
restriction was changed to restrict self translations of C locale
only. The locale module must now be able to support localization of
any language supported by the system you are running it on.