From 11b191511af158fe7b9c9d35cc9a390078244097 Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sat, 11 Jun 2022 12:57:39 +0200 Subject: [PATCH] PL translation started --- bin/colorizer | 38 +++++++++++++++++++++++++++++++------- 1 file changed, 31 insertions(+), 7 deletions(-) diff --git a/bin/colorizer b/bin/colorizer index 4cb6d8f..adf2eb0 100755 --- a/bin/colorizer +++ b/bin/colorizer @@ -1,20 +1,44 @@ #!/bin/bash +case "$LANG" in + pl*) + OBTHEME="Motyw Openbox" + MENUPANELS="Menu i Panele" + TERMINALTHEME="Motyw terminala" + OTHERTOOLS="Inne narzędzia" + WALLPAPER="Tapety" + HELP="Pomoc" + ;; + *) + OBTHEME="Openbox Theme" + MENUPANELS="Menus/Panels" + TERMINALTHEME="Terminal color scheme" + OTHERTOOLS="Other tools" + WALLPAPER="Wallpaper" + HELP="About and Help" + ;; +esac + out+=("^sep(Mabox Colorizer)") -out+=("Openbox Theme,^pipe(colorizer-ob)") -out+=("Menus/Panels,^pipe(colorizer-menus)") +out+=("$OBTHEME,^pipe(colorizer-ob)") +out+=("$MENUPANELS,^pipe(colorizer-menus)") #out+=("TINT2,^pipe(colorizer-tint2)") out+=("Conky,^pipe(colorizer-conky)") #out+=("Systray HW monitor,^pipe(colorizer-phwmon)") -out+=("Terminal color scheme,^term(theme.sh -i2;/bin/bash)") +out+=("$TERMINALTHEME,^term(theme.sh -i2;/bin/bash)") #out+=("GTKTHEME,^pipe(colorizer-gtktheme)") -out+=("^sep(Other tools)") +out+=("^sep($OTHERTOOLS)") out+=("Tint2 Menu,^pipe(jgtint2-pipe)") -out+=("Wallpaper,^pipe(jgwallpaperchanger)") -out+=("Color Menu,mbxcolors") +out+=("$WALLPAPER,^pipe(jgwallpaperchanger)") +out+=("Color Menu,colormenu") out+=("^sep()") #out+=("PREFERENCES") -out+=("About and Help,yhtml /usr/share/mabox-colorizer/help/en.html 'Mabox Colorizer'") +LNG=${LANG:0:2} +if [[ -f "/usr/share/mabox-colorizer/help/$LNG.html" ]];then +out+=("$HELP,yhtml /usr/share/mabox-colorizer/help/$LNG.html 'Mabox Help - Colorizer'") +else +out+=("$HELP,yhtml /usr/share/mabox-colorizer/help/en.html 'Mabox Help - Colorizer'") +fi ### RUN if [[ "$1" == "-s" ]]; then