Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=4bcf5e78f3ee701bdd0a66d983249bc5276cd3d3

commit 4bcf5e78f3ee701bdd0a66d983249bc5276cd3d3
Author: Michel Hermier <herm...@frugalware.org>
Date:   Tue Feb 2 20:44:04 2010 +0100

mozilla-i18n.sh

* Use i18n_language_from_locale to automagically get the language name
(and country) for descriptions.

diff --git a/source/include/mozilla-i18n.sh b/source/include/mozilla-i18n.sh
index 8a83b05..c2fc135 100755
--- a/source/include/mozilla-i18n.sh
+++ b/source/include/mozilla-i18n.sh
@@ -13,6 +13,8 @@ if [ "$1" = "regen" ]; then
echo "_F_mozilla_i18n_name and pkgver must be defined in your FrugalBuid"
exit 1;
fi
+else
+       Finclude i18n
fi

###
@@ -88,7 +90,7 @@ mozilla_i18n_foreach_lang() {
mozilla_i18n_lang_add() {
source=("${sour...@]}" 
"$_F_mozilla_i18n_mirror/$_F_mozilla_i18n_xpidirname/$1.xpi")
subpkgs=("${subpk...@]}" "$_F_mozilla_i18n_name-${1,,}")
-       subdescs=("${subdes...@]}" "${1} language support for 
${_F_mozilla_i18n_name^}") # Requires a locale to name function.
+       subdescs=("${subdes...@]}" "`i18n_language_from_locale "$1"` language 
support for ${_F_mozilla_i18n_name^}") # Requires a locale to name function.
subrodepends=("${subrodepen...@]}" "$_F_mozilla_i18n_name>=$pkgver")
subgroups=("${subgrou...@]}" "${groups[*]}")
subarchs=("${subarc...@]}" "${archs[*]}")
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to