From a1a636227c38d33f6222648bf60bf21127717fe5 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Jul 19 2012 02:53:13 +0000 Subject: Realize a 's/L10n/Locales/g' on all sh file inside the `trunk/Scripts/' directory. --- diff --git a/Scripts/Bash/Functions/Commons/cli_getRepoParallelDirs.sh b/Scripts/Bash/Functions/Commons/cli_getRepoParallelDirs.sh index f2d0bc8..310cdf7 100755 --- a/Scripts/Bash/Functions/Commons/cli_getRepoParallelDirs.sh +++ b/Scripts/Bash/Functions/Commons/cli_getRepoParallelDirs.sh @@ -46,7 +46,7 @@ function cli_getRepoParallelDirs { # Define parallel directory base structures. PDIRS[0]=Manuals/$(cli_getCurrentLocale)/Texinfo/Repository/$(cli_getRepoTLDir ${BOND} --relative) PDIRS[1]=Scripts/Bash/Functions/Render/Config - PDIRS[2]=L10n + PDIRS[2]=Locales # Redefine bond string without its top level directory structure. BOND=$(echo $BOND | sed -r "s,^${TDIR}/(.+)$,\1,") diff --git a/Scripts/Bash/Functions/Locale/locale.sh b/Scripts/Bash/Functions/Locale/locale.sh index 5eb64c7..a9341f7 100755 --- a/Scripts/Bash/Functions/Locale/locale.sh +++ b/Scripts/Bash/Functions/Locale/locale.sh @@ -54,7 +54,7 @@ function locale { # directory up to the repository (e.g., it is not possible in # subversion to add a directory which parent directory hasn't been # added to the repository previously.). - L10N_BASEDIR="$(cli_getRepoTLDir)/L10n" + L10N_BASEDIR="$(cli_getRepoTLDir)/Locales" # Interpret arguments and options passed through command-line. locale_getOptions @@ -89,7 +89,7 @@ function locale { # is the place where POT and PO files are stored inside the # working copy. L10N_WORKDIR=$(echo "${ACTIONVAL}" \ - | sed -r -e "s!trunk/(Identity|Scripts|Manuals)!trunk/L10n/\1!")/$(cli_getCurrentLocale) + | sed -r -e "s!trunk/(Identity|Scripts|Manuals)!trunk/Locales/\1!")/$(cli_getCurrentLocale) # Execute localization actions provided to centos-art.sh # script through its command-line. Notice that localization diff --git a/Scripts/Bash/Functions/Locale/locale_updateMessageMetadata.sh b/Scripts/Bash/Functions/Locale/locale_updateMessageMetadata.sh index f836445..adf93ba 100755 --- a/Scripts/Bash/Functions/Locale/locale_updateMessageMetadata.sh +++ b/Scripts/Bash/Functions/Locale/locale_updateMessageMetadata.sh @@ -53,8 +53,8 @@ function locale_updateMessageMetadata { # Define replacement lines for pattern line. DST[0]="\"Project-Id-Version: ${CLI_NAME}.sh\\\n\"" - DST[1]="\"Report-Msgid-Bugs-To: The CentOS L10n SIG <=MAIL_L10N=>\\\n\"" - DST[2]="\"Last-Translator: The CentOS L10n SIG <=MAIL_L10N=>\\\n\"" + DST[1]="\"Report-Msgid-Bugs-To: The CentOS Locales SIG <=MAIL_L10N=>\\\n\"" + DST[2]="\"Last-Translator: The CentOS Locales SIG <=MAIL_L10N=>\\\n\"" DST[3]="\"Language-Team: ${LANGNAME}\\\n\"" DST[4]="\"PO-Revision-Date: $(date "+%F %H:%M%z")\\\n\"" diff --git a/Scripts/Bash/Functions/Locale/locale_updateMessageShell.sh b/Scripts/Bash/Functions/Locale/locale_updateMessageShell.sh index 5d671c7..86cd988 100755 --- a/Scripts/Bash/Functions/Locale/locale_updateMessageShell.sh +++ b/Scripts/Bash/Functions/Locale/locale_updateMessageShell.sh @@ -53,7 +53,7 @@ function locale_updateMessageShell { # Retrive translatable strings from shell script files and create # the portable object template (.pot) from them. xgettext --output=${MESSAGES}.pot \ - --copyright-holder="The CentOS L10n SIG" \ + --copyright-holder="The CentOS Locales SIG" \ --width=70 --sort-by-file ${FILES} # Sanitate metadata inside the POT file. diff --git a/Scripts/Bash/Functions/Render/render_doBaseActions.sh b/Scripts/Bash/Functions/Render/render_doBaseActions.sh index 056034e..f3ae0d1 100755 --- a/Scripts/Bash/Functions/Render/render_doBaseActions.sh +++ b/Scripts/Bash/Functions/Render/render_doBaseActions.sh @@ -137,7 +137,7 @@ function render_doBaseActions { # Define final location of translation file. TRANSLATION=$(dirname $FILE \ - | sed -r 's!trunk/(Manuals|Identity)!trunk/L10n/\1!')/$(cli_getCurrentLocale)/messages.po + | sed -r 's!trunk/(Manuals|Identity)!trunk/Locales/\1!')/$(cli_getCurrentLocale)/messages.po # Define final location of template file. TEMPLATE=${FILE} diff --git a/Scripts/Bash/centos-art.sh b/Scripts/Bash/centos-art.sh index 571b71c..55f34c8 100755 --- a/Scripts/Bash/centos-art.sh +++ b/Scripts/Bash/centos-art.sh @@ -35,7 +35,7 @@ declare -xr CLI_TEMPDIR='/tmp' # Initialize internazionalization through GNU gettext. . gettext.sh declare -xr TEXTDOMAIN=${CLI_NAME}.sh -declare -xr TEXTDOMAINDIR=${CLI_WRKCOPY}/branches/L10n/Scripts/Bash +declare -xr TEXTDOMAINDIR=${CLI_WRKCOPY}/branches/Locales/Scripts/Bash # Verify the working copy directory. Be sure it is # `/home/centos/artwork'. Otherwise, end the script execution. We