aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--po/Makefile3
-rw-r--r--po/ar.hack27
-rw-r--r--po/fa.hack36
-rw-r--r--po/he.hack36
-rw-r--r--scripts/splash.sh29
5 files changed, 124 insertions, 7 deletions
diff --git a/po/Makefile b/po/Makefile
index a62d582..dccc679 100644
--- a/po/Makefile
+++ b/po/Makefile
@@ -73,3 +73,6 @@ install: all
%.mo: %.po
sed 's/$[a-zA-Z0-9_{}]*/%s/g' < $< | msgfmt -o $@ -
+ # for RTL langs, we use a hacked version of the po files that already
+ # did the reordering and shaping
+ if [ -r "`basename $@ .mo`.hack" ]; then msgfmt -o $@ "`basename $@ .mo`.hack" ; fi
diff --git a/po/ar.hack b/po/ar.hack
new file mode 100644
index 0000000..e69ba1f
--- /dev/null
+++ b/po/ar.hack
@@ -0,0 +1,27 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR Free Software Foundation, Inc.
+# Mohammed Gamal <f2c2001@yahoo.com>, 2003
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: bootsplash\n"
+"POT-Creation-Date: 2001-03-02 09:00+0100\n"
+"PO-Revision-Date: 2003-08-14 13:30-0300\n"
+"Last-Translator: Mohammed Gamal <f2c2001@yahoo.com>\n"
+"Language-Team: Arabic\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 0.9.6\n"
+
+#: tmp/splash.sh:167
+msgid "Booting the system..."
+msgstr " ...ﻣﺎﻆﻨﻟﺍ ﻞﻴﻐﺸﺗ ﺀﺪﺑ ﻱﺮﺎﺟ"
+
+#: tmp/splash.sh:172
+msgid "Press F2 for verbose mode."
+msgstr " .ﺔﻠﺼﻔﻤﻟﺍ ﺔﻴﻌﺿﻭﻠﻟ F2 ﻂﻐﺿﺍ"
+
+#: tmp/splash.sh:162
+msgid "Shutting down the system..."
+msgstr " ...ﻡﺍﻆﻨﻟﺍ ﻞﻴﻐﺸﺗ ﻑﺍﻖﻳﻘ ﻱﺭﺎﺟ"
diff --git a/po/fa.hack b/po/fa.hack
new file mode 100644
index 0000000..61bb6e8
--- /dev/null
+++ b/po/fa.hack
@@ -0,0 +1,36 @@
+# translation of bootsplash.po to Persian
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# Abbas Izad <abbasizad@hotmail.com>, 2003
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: bootsplash\n"
+"POT-Creation-Date: 2001-03-02 09:00+0100\n"
+"PO-Revision-Date: 2003-08-14 00:14+0200\n"
+"Last-Translator: Abbas Izad <abbasizad@hotmail.com>\n"
+"Language-Team: Persian\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.0.1\n"
+
+#: tmp/splash.sh:167
+msgid "Booting the system..."
+msgstr " ...ﻢﺘﺴﻴﺳ ﺯﺎﻏﺁ ﻝﺎﺣ ﺭﺩ"
+
+#: tmp/splash.sh:172
+msgid "Press F2 for verbose mode."
+msgstr " .ﺪﻴﻫﺩ ﺭﺎﺸﻓ ﺍﺭ F2 ﻰﺤﻳﺮﺸﺗ ﺖﻟﺎﺣ ﻯﺍﺮﺑ"
+
+#: tmp/splash.sh:162
+msgid "Shutting down the system..."
+msgstr " ...ﻢﺘﺴﻴﺳ ﻥﺩﺮﻛ ﺽﻮﻣﺎﺧ ﻝﺎﺣ ﺭﺩ"
+
+#~ msgid "yY"
+#~ msgstr "yY"
+
+#~ msgid "nN"
+#~ msgstr "nN"
+
+#~ msgid "cC"
+#~ msgstr "cC"
diff --git a/po/he.hack b/po/he.hack
new file mode 100644
index 0000000..09dd772
--- /dev/null
+++ b/po/he.hack
@@ -0,0 +1,36 @@
+# translation of bootsplash-he.po to Hebrew
+# Copyright (C) 2003 Free Software Foundation, Inc.
+# el-cuco <cuco3001@yahoo.com>, 2003
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: bootsplash-he\n"
+"POT-Creation-Date: 2001-03-02 09:00+0100\n"
+"PO-Revision-Date: 2003-08-16 01:44+0300\n"
+"Last-Translator: el-cuco <cuco3001@yahoo.com>\n"
+"Language-Team: Hebrew\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"X-Generator: KBabel 1.0.1\n"
+
+#: tmp/splash.sh:167
+msgid "Booting the system..."
+msgstr " ...תכרעמה תא לחתאמ"
+
+#: tmp/splash.sh:172
+msgid "Press F2 for verbose mode."
+msgstr " .טרופמ בצמ רובע F2 ץוחלל אנ"
+
+#: tmp/splash.sh:162
+msgid "Shutting down the system..."
+msgstr " ....תכרעמה תא הבכמ"
+
+#~ msgid "yY"
+#~ msgstr "YygGכ"
+
+#~ msgid "nN"
+#~ msgstr "nNkKל"
+
+#~ msgid "cC"
+#~ msgstr "cCvVה"
diff --git a/scripts/splash.sh b/scripts/splash.sh
index b9f0dd2..5bb4bb4 100644
--- a/scripts/splash.sh
+++ b/scripts/splash.sh
@@ -101,13 +101,16 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
# - RTL languages need a fake *.po file, where bidi reordering and
# shaping is already done.
# - indic languages have not shaping
+ # - some indic fonts don't have ascii glyphs; so the corresponding
+ # languages have to be disabled (I added a '_' in front) until they are
+ # fully translated.
case "${GP_LANG}${LANGUAGE}" in
# languages written in latin that use letters not included in luxi
az*|cy*|gn*|vi*)
font=/usr/share/fonts/otf/mdk/mdk_teams.otf ;;
# basic cyrillic, covered by cp1251
be*|bg*|mk*|ru*|sr*|uk*)
- font=/usr/share/fonts/default/Type1/a010015l.pfb ;;
+ font=/usr/share/fonts/default/Type1/n019023l.pfb ;;
# extended cyrillic, not covered by cp1251
mn*|tg*|uz*)
font=/usr/share/fonts/otf/mdk/mdk_teams.otf ;;
@@ -115,12 +118,14 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
am*) font=/usr/share/fonts/ttf/ethiopic/gfzemenu.ttf ;;
ar*|fa*|ur*) font=/usr/share/fonts/ttf/arabic/Kacst-Qr.ttf ;;
as*|bn*) font=/usr/share/fonts/ttf/bengali/MuktiBold.ttf ;;
- el*) font=/usr/share/fonts/type1/greek/kb.pfb ;;
+ el*) font=/usr/share/fonts/type1/greek/Kerkis-Italic.pfb ;;
he*|yi*) font=/usr/share/fonts/type1/hebrew/Nachlieli-Bold.pfa ;;
- hi*|mr*) font=/usr/share/fonts/otf/mdk/raghu.ttf ;;
+ # this font doesn't has ascii chars
+ hi*|_mr*) font=/usr/share/fonts/otf/mdk/raghu.ttf ;;
hy*) font=/usr/share/fonts/ttf/armenian/artsnk_b.ttf ;;
ja*) font=/usr/share/fonts/ttf/japanese/kochi-gothic.ttf ;;
- kn*) font=/usr/share/fonts/ttf/kannada/Sampige.ttf ;;
+ # this font doesn't has ascii chars
+ _kn*) font=/usr/share/fonts/ttf/kannada/Sampige.ttf ;;
ko*) font=/usr/share/fonts/ttf/korean/gulim.ttf ;;
ml*) font=/usr/share/fonts/otf/mdk/malayalam.ttf ;;
ta*) font=/usr/share/fonts/ttf/tamil/TSCu_Paranar.ttf ;;
@@ -145,17 +150,27 @@ if [ "$progress" == 1 -o "$1" == "start" ]; then
esac
if [ "$font" != "default" ]; then
- if [ -r "$font" ]
+ if [ -r "$font" ]; then
custom_font="-f $font"
elif [ -r "/etc/locale/`basename $font`" ]; then
- custom_font="/etc/locale/`basename $font`"
+ custom_font="-f /etc/locale/`basename $font`"
elif [ -r "/etc/locale/default.ttf" ]; then
- custom_font="/etc/locale/default.ttf"
+ custom_font="-f /etc/locale/default.ttf"
else
# no font available, translations are not done
GP_LANG=C ;
LANGUAGE=C ;
fi
+
+ # some fonts need a bigger size to have a nice display
+ case "$custom_font" in
+ *norasi_b.ttf) text_size=$(( $text_size + 6 )) ;;
+ *gkai00mp.ttf) text_size=$(( $text_size + 2 )) ;;
+ *bkai00mp.ttf) text_size=$(( $text_size + 2 )) ;;
+ *Kacst-Qr.ttf) text_size=$(( $text_size + 6 )) ;;
+ # sizes lower than 18 display as noise in FB
+ *kochi-gothic.ttf) if [ "$test_size" -lt "18" ]; then text_size=18 ; fi ;;
+ esac
fi
if test "$_shutdown" == "yes"; then