Systray apps translated in spanish
Fusilli-menu
Battery-notifier
Panel_Username
pm13-xf
screencontrol
shutdown-gui
ywtray
edit-sfs
dunst-config
xprofile
puppy_idtag
fusilli-gui
gato-tray
lockstate-gtk
pplog_gui
picom
add gettext to minimal code
/usr/bin/xlock
Code: Select all
#!/bin/bash -x
#xlock original bloquea todo el sistema fusilli
#solución alternativa
export TEXTDOMAIN=xlock-wrapper
export OUTPUT_CHARSET=UTF-8
if ! -f /root/.xlockrc > /dev/null 2>&1 ; then
rxvt -g 36x2 -title "$(gettext 'Create key (password)')" -e xlock-original
fi
/usr/bin/puppy_idtag
Code: Select all
#!/bin/bash
# puppy_idtag v.0.1 by nilsonmorales
# i18n, i10n nilsonmorales 08062014
# usage: edit ~/.bashrc and add this line at the end
# /usr/bin/puppy_idtag
# you can comment the logo that you dont like or create a new.
export TEXTDOMAIN=puppy_idtag
export OUTPUT_CHARSET=UTF-8
name=`uname -s`
arch=`uname -m`
hostname=`hostname`
#OS=`uname -o`
OS=`source /etc/DISTRO_SPECS && echo "$DISTRO_NAME"`
user=`whoami`
ver=`uname -r`
shell=`echo $SHELL`
cpu=$(awk -F':' '/model name/{ print $2 }' /proc/cpuinfo | head -n 1 | tr -s " " | sed 's/^ //');
uptime=`uptime`
Memory=`free -m | awk 'NR==2{printf "%s/%sMB (%.2f%)\n", $3,$2,$3*100/$2 }'`
wm=`wmctrl -m | grep "Name:" | awk '{print $2}'`
disk=`df -h | awk '$NF=="/"{printf "%d/%dGB (%s)\n", $3,$2,$5}'`
icth=`xfconf-query -c xsettings -p /Net/IconThemeName`
gtktheme=`xfconf-query -c xsettings -p /Net/ThemeName`
#icth=`cat "/etc/desktop_icon_theme"`
#gtktheme=`grep '^include "/usr/share/themes/' /root/.gtkrc-2.0 | cut -f 5 -d '/'`
# Change color output variables
var1=`echo -e "\e[1;34m$name\e[0m"`
var2=`echo -e "\e[1;34m$arch\e[0m"`
var3=`echo -e "\e[1;34m$OS\e[0m"`
var4=`echo -e "\e[1;34m$ver\e[0m"`
var5=`echo -e "\e[1;31m$hostname\e[0m"`
var6=`echo -e "\e[1;36m$user\e[0m"`
var7=`echo -e "\e[1;34m$shell\e[0m"`
var8=`echo -e "\e[1;34m$cpu\e[0m"`
var9=`echo -e "\e[1;34m$uptime\e[0m"`
var10=`echo -e "\e[1;34m$Memory\e[0m"`
var11=`echo -e "\e[1;34m$wm\e[0m"`
var12=`echo -e "\e[1;34m$disk\e[0m"`
var13=`echo -e "\e[1;34m$icth\e[0m"`
var14=`echo -e "\e[1;34m$gtktheme\e[0m"`
### LINUX LOGO
echo -e ""
echo -e ""
echo -e "\e[1;30m ##### \e[1;32m$(gettext 'Window Manager:') $var11\e[0m"
echo -e "\e[1;30m ####### \e[1;32m$(gettext 'Memory:') $var10\e[0m"
echo -e "\e[1;30m ##\e[1;33mO\e[1;30m#\e[1;33mO\e[1;30m##\e[1;30m \e[1;32m$(gettext 'System:') $var3\e[0m"
echo -e "\e[1;30m #\e[1;33m#####\e[1;30m# \e[1;32m$(gettext 'Kernel:') $var1\e[0m"
echo -e "\e[1;30m ##\e[1;37m##\e[1;33m###\e[1;37m##\e[1;30m## \e[1;32m$(gettext 'User:') $var6@$var5\e[0m"
echo -e "\e[1;30m #\e[1;37m##########\e[1;30m# \e[1;32m$(gettext 'Version:') $var4\e[0m"
echo -e "\e[1;30m #\e[1;37m############\e[1;30m# \e[1;30m\e[1;33m \e[1;32m$(gettext 'Arch:') $var2\e[0m "
echo -e "\e[1;30m #\e[1;37m############\e[1;30m# \e[1;32mShell: $var7\e[0m"
echo -e "\e[1;30m ##\e[1;30m#\e[1;37m###########\e[1;30m### \e[1;32m CPU: $var8\e[0m"
echo -e "\e[1;33m ######\e[1;30m#\e[1;37m#######\e[1;30m#\e[1;33m######\e[1;32m $(gettext 'Icon theme:') $var13\e[0m"
echo -e "\e[1;33m #######\e[1;30m#\e[1;37m#####\e[1;30m#\e[1;33m#######\e[1;32m $(gettext 'Gtk theme:') $var14\e[0m"
echo -e "\e[1;33m #####\e[1;30m#######\e[1;33m#####"
echo -e "\e[1;37m"
all the .mo goes in /usr/share/locale/es/LC_MESSAGES