Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to test grimoire by Eric Sandall

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Eric Sandall <scm AT mail.sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to test grimoire by Eric Sandall
  • Date: Thu, 4 May 2006 15:27:48 -0500

GIT changes to test grimoire by Eric Sandall <sandalle AT sourcemage.org>:

libs/locale/CONFIGURE | 3 ++-
libs/locale/HISTORY | 4 ++++
libs/locale/preselect.fix.awk | 19 +++++++++++++++++++
3 files changed, 25 insertions(+), 1 deletion(-)

New commits:
commit 1eb35f2a49b4e80949c106b2375396141f2346e1
Author: Eric Sandall <sandalle AT sourcemage.org>
Commit: Eric Sandall <sandalle AT sourcemage.org>

* CONFIGURE: Applied preselect patch from Jaka Kranjc (Bug #10256)
* preselect.fix.awk: Added awk code from Jaka Kranjc (Bug #10256)

diff --git a/libs/locale/CONFIGURE b/libs/locale/CONFIGURE
index 9e6b602..91a9a8f 100755
--- a/libs/locale/CONFIGURE
+++ b/libs/locale/CONFIGURE
@@ -20,13 +20,14 @@ persistent_remove GLIBC_LOCALES &&
if query "Would you like to select locales?" n; then
local LOCALE_LOCALES_LIST &&
persistent_add LOCALE_LOCALES &&
- LOCALE_LOCALES_LIST=`cat $SCRIPT_DIRECTORY/locales` &&
BACKTITLE="Locale Configuration" &&
TITLE="Locale Selection" &&
HELP="Translated messages are automatically installed, but the locale
database that controls other behavior is not.
Please select desired locale or locales.
If none are selected then all will be installed." &&

+ #the following awk script enables the locales the user had previously
selected, #10256
+ LOCALE_LOCALES_LIST=`awk -v user_locales="$LOCALE_LOCALES" -f
"$SCRIPT_DIRECTORY"/preselect.fix.awk "$SCRIPT_DIRECTORY"/locales` &&
LOCALE_LOCALES=`dialog --backtitle "$BACKTITLE" \
--title "$TITLE" \
--stdout \
diff --git a/libs/locale/HISTORY b/libs/locale/HISTORY
index adfb299..67e0e85 100644
--- a/libs/locale/HISTORY
+++ b/libs/locale/HISTORY
@@ -1,3 +1,7 @@
+2006-05-04 Eric Sandall <eric AT sandall.us>
+ * CONFIGURE: Applied preselect patch from Jaka Kranjc (Bug #10256)
+ * preselect.fix.awk: Added awk code from Jaka Kranjc (Bug #10256)
+
2006-03-23 Arwed v. Merkatz <v.merkatz AT gmx.net>
* DETAILS: updated version to 0.0.2
* CONFIGURE, INSTALL: use LOCALE_ for all variable names instead of
diff --git a/libs/locale/preselect.fix.awk b/libs/locale/preselect.fix.awk
new file mode 100644
index 0000000..86dbf3b
--- /dev/null
+++ b/libs/locale/preselect.fix.awk
@@ -0,0 +1,19 @@
+BEGIN{
+ i=0
+ n=split(user_locales,user_locale)
+}
+
+{
+ locales[i]=$0
+ i++
+}
+
+END{
+for(x = 0; x <= NR; x++){
+ for( j=1; j<=n; j++ ){
+ if (locales[x] ~ user_locale[j])
+ sub(/off$/,"on",locales[x])
+ }
+ print locales[x]
+}
+}




Archive powered by MHonArc 2.6.24.

Top of Page