slitaz-tools view tazbox/tazbox.patch @ rev 602

Move all pt.po to pt_BR.po and add desktop files for tazbox locale (also fix tazkeymap.desktop to let only root use it)
author Christophe Lincoln <pankso@slitaz.org>
date Wed Jun 01 19:22:13 2011 +0200 (2011-06-01)
parents
children
line source
1 --- tazbox.orig
2 +++ tazbox
3 @@ -37,6 +37,7 @@
4 out-dl $(gettext "Pipe Wget output into a GTK window")
5 locale $(gettext "Configure system language (root)")
6 keymap $(gettext "Configure system keymap (root)")
7 + tz $(gettext "Configure system timezone (root)")
9 EOT
10 }
11 @@ -154,6 +155,31 @@
12 [ "$keymap" ] && tazkeymap init $keymap
13 }
15 +# TZ functions
16 +tz_main() {
17 + text=$(gettext "TimeZone Configuration")
18 + zi="/usr/share/zoneinfo/"
19 + for t in $(find $zi -type f | sed s,$zi,,g)
20 + do
21 + echo -e "$t"
22 + done | \
23 + yad --list --title="SliTaz TZ" --window-icon=$icon \
24 + --width=500 --height=380 --separator="" \
25 + --center --sticky --on-top \
26 + --image=preferences-desktop-locale --image-on-top \
27 + --text="<b>$text</b>" --print-column=1 \
28 + --column $(gettext "Name")
29 +}
30 +
31 +tz() {
32 + timezone=$(tz_main)
33 + case $? in
34 + 1) exit 0 ;;
35 + *) continue ;;
36 + esac
37 + [ "$timezone" ] && echo $timezone > /etc/TZ
38 +}
39 +
40 #
41 # Commands
42 #
43 @@ -213,6 +239,8 @@
44 locale ;;
45 keymap)
46 keymap ;;
47 + tz)
48 + tz ;;
49 boot)
50 # This command is used at first boot to configure system.
51 Xorg -br -quiet -nolisten tcp :1 &