80bc6f Update `locale' functionality:

Authored and Committed by areguera 12 years ago
    Update `locale' functionality:
    
        locale.sh:
    
            - Start using ACTIONNAMS. This variable is initialize as empty
              value here, and redefined later in `locale_getOptions.sh' to
              set the action names we latly execute. Previous to this
              commit, only one action name could be provided. In this
              commit, it is possible to provide more than one action name
              in locale's command-line.
    
        locale_getOptions.sh:
    
            - Use ACTIONNAMS variable to define a list of all action names
              passed from the command-line.
              
            - In cases where more than one action name is provided in the
              command-line, they are applied in the following order:
              update, edit, and delete. If no action name is provided, the
              `locale_editMessages' action name is used as default action
              name.
    
            - When no action value is provided, the current directory
              where the `centos-art.sh' script was called from is used as
              default action value.
    
            - Add `--delete' option to remove localization working directory.
    
        locale_editMessages.sh:
    
            - Move code block used to prepare localization working
              directory from `locale.sh' to `locale_editMessages' and use
              `cli_checkFiles' in `locale_udpateMessages' and
              `locale_deleteMessages'. There is no need to create the
              localization working directory when we update or delete
              localization files, it is only needed when we edit
              localization files only. To be on the safe side, a
              verification was added to be sure the directory we update or
              delete exists before the action take place.
    
        locale_updateMessageXml.sh:
    
            - Reduce localizeable extensions pattern to match `svg' and
              `docbook' only.  They are the only extensions we are really
              using inside the working copy. Be pragmatic.
    
            - When we define the pattern used to build the list of files
              to process, be sure the value passed through `--filter' be
              exactly evaluated with the extension as prefix. Otherwise it
              would be difficult to match files that share the same
              characters in their file names (e.g., it would be difficult
              to match only `hello.docbook' if `hello-world.docbook' also
              exists in the same location).
    
            - Remove action name execution block. Action names are
              directly called, based on the action value.
    
        locale_updateMessagesShell.sh:
    
            - Remove verification block related to localization working
              directory. This verification is already done in
              `locale_updateMessages.sh'. At this moment, don't see a
              reason to have the verification duplicated. 
    
            - Fix pattern definition, when building the list of files to
              process. Just as described in `locale_updateMessageXml.sh'
              above. 
    
            - Start using `The CentOS L10n SIG' as translations' copyright
              holder.
    
        locale_updateMessageMetadata.sh:
    
            - Start using `The CentOS L10n SIG' on `Report-Msgid-Bugs-To'
              and `Last-Translator:'.
    
        locale_updateMessagePObjects.sh:
        
            - Move print action message outside the verification block.
              There is no difference in using `--as-creating-line' and
              `--as-updating-line' when printing action message. They both
              relay in the file they work on. If the file exists the
              updating message is output. Otherwise, if the file doesn't
              exist, the creating message is used instead.
    
        Others changes committed here include:
    
            - Start using FUNCNAM variable as suffix when invoking locale
              functionalities.
    
            - Update comments.