From 7d7be0d2f469e75447fc29fc9d9c2fae31c56bdf Mon Sep 17 00:00:00 2001 From: Daniel Napora Date: Sat, 12 Sep 2020 16:43:33 +0200 Subject: [PATCH] theme manager spanish translation --- bin/mb-conky-manager | 2 +- bin/mb-obthemes | 69 ++++++++++++++++++++++++++++++++++++-------- 2 files changed, 58 insertions(+), 13 deletions(-) diff --git a/bin/mb-conky-manager b/bin/mb-conky-manager index 51915a6..a6f06df 100755 --- a/bin/mb-conky-manager +++ b/bin/mb-conky-manager @@ -125,7 +125,7 @@ case $LANG in OK="--button=Aceptar:2" APPLY="--button=Aplicar:0" CANCEL="--button=Cancelar:1" - CLOSE="--button=Cerrrar:1" + CLOSE="--button=Cerrar:1" ;; *) TITLE="Conky Manager" diff --git a/bin/mb-obthemes b/bin/mb-obthemes index f8a241e..77bb516 100755 --- a/bin/mb-obthemes +++ b/bin/mb-obthemes @@ -97,16 +97,16 @@ case $LANG in \tTint2\n \ \tTapeta pulpitu\n \ \t+ zrzut ekranu\n\n" - MAIN_TEXT="Aby zastosować wybrany motyw: kliknij podwójnie, lub wciśnij Enter, lub użyj przycisku Przywróć. \n" + MAIN_TEXT="Aby zastosować wybrany motyw: kliknij podwójnie, wciśnij Enter\nlub użyj przycisku Przywróć. \n" RESTORE="Przywróć:0" DELETE="Usuń:2" VIEW_IMG="Zobacz obrazek:4" - ADD="Dodaj nowy:3" - ABOUT="O programie:5" + ADD="Utwórz:3" + ABOUT="Info:5" SAVE_SETTINGS="Zapisz ustawienia:0" VIEW_SAVED="Zobacz zapisane:2" ACTIVE="Aktywny" - NAME="Nazwa konfiguracji" + NAME="Nazwa" SCREEN_SHOT="Zrzut ekranu" CHOOSE_WHAT_TO_SAVE="Wybierz co zapisać..." CHOOSE_ALL="Zaznacz wszystko:2" @@ -130,8 +130,53 @@ case $LANG in PICKOB="Motyw Openbox" PICKGTK="Wystrój GTK" ;; + es*) + TITLE="Gestor de Temas" + CANCEL="--button=Cancelar:1" + EXIT="--button=Salir:1" + CLOSE="--button=Cerrar:1" + TXTINTRO="BunsenLabs\n\nGestor de Configuración Openbox\n\n\n \ +Guardar o Restaurar Ajustes para:\n\n \ +\tTemas Openbox\n \ +\tTemas GTK\n \ +\tRecuadros Conky\n \ +\tPaneles Tint2\n \ +\tFondos de pantalla\n \ +\t+ Captura Pantalla\n\n" + MAIN_TEXT="Haz doble clic, o presionaEnter, o usa el botón de Restaurar para recuperar los ajustes\n" + RESTORE="Restaurar:0" + DELETE="Borrar:2" + VIEW_IMG="Ver imagen:4" + ADD="Agregar uno nuevo:3" + ABOUT="Acerca de:5" + SAVE_SETTINGS="Guardar ajustes:0" + VIEW_SAVED="Vistas guardadas:2" + ACTIVE="Último ajuste" + NAME="Guardar ajuste" + SCREEN_SHOT="Capturar Pantalla" + CHOOSE_WHAT_TO_SAVE="Elige los ajustes a guardar..." + CHOOSE_ALL="Selecciona todos:2" + CHOOSE_SELECT="Seleccionar" + CHOOSE_CONFIG="Elige ajuste" + CHOOSE_SOMETHING="\n Haz una selección...." + FILES_TO_SAVE="Ajustes en Openbox a guardar:\n\n" + RESTORING_CONF="Recuperando ajustes guardados como $DIR\n\n" + CHOOSE_BEFORE_DELETE="Elige un ajuste antes de intentar borrar" + DELETE_FOR_SURE="Elimina ajustes ya guardados $FPATH\nand screenshot?" + SETTINGS_SAVED="Los cambios fueron guardados como" + CHOOSE_IMAGE="Elige una imagen" + COLLECTION_NAME="Nombrar una colección" + SAVED_ON="Guardado:" + WALLSAVEDBYNITOGEN="Fondo de pantalla guardado por Nitrogen" + RUNNING_CONKY="Recuadro(s) ejecutándose:" + RUNNING_TINT2="Panel(es) ejecutándose:" + NO_CONKY_RUNNING="Elegir guardar un recuadro \npero no uno que está ejecutándose" + NO_TINT2_RUNNING="Elegir un panel \npero no uno que está ejecutándose" + PICKBG="Fondos de pantalla" + PICKOB="Temas OB" + PICKGTK="Temas GTK" + ;; *) - TITLE="BLOB Config Manager" CANCEL="--button=Cancel:1" EXIT="--button=Quit:1" @@ -190,7 +235,7 @@ OK="--button=OK:0" IMGCMD="viewnior" # application command to view screenshot MENUMODIFIER="super+space" # keybind for show root-menu MOUSECMD="click 3" # mouse r-click -KEYDOWN=5 # adjust this for where "Preferences" is in the menu +KEYDOWN=9 # adjust this for where "Preferences" is in the menu #### END VARIABLES ##################################################### ### FUNCTIONS ########################################################## @@ -613,7 +658,7 @@ function getScrot(){ menuX=$(( (screenW/20)*1 )) fi appY=$(( (screenH/20)*4 )) - menuY=$(( (screenH/20)*4 )) + menuY=$(( (screenH/20)*2 )) wmctrl -l -x > "$TMPSCROT" # store window list in tempfile wmctrl -k on # hide windows, show desktop @@ -632,13 +677,13 @@ function getScrot(){ sleep 0.5 # get lx window, make sure it loses focus, then move mouse and start root-menu LX=$(xdotool getwindowfocus) - xdotool windowmove --sync $LX $appX $appY && sleep 0.1 && \ - xdotool mousemove --sync --window $LX -- -50 0 && xdotool click 1 - xdotool mousemove --sync $menuX $menuY && xdotool key --clearmodifiers "super+space" + xdotool windowmove --sync "$LX" "$appX" "$appY" && sleep 0.1 && \ + xdotool mousemove --sync --window "$LX" -- -50 0 && xdotool click 1 + xdotool mousemove --sync "$menuX" "$menuY" && xdotool key --clearmodifiers "$MENUMODIFIER" i=1 while (( $i <= $KEYDOWN ));do - xdotool key --delay 50 Down + xdotool key --delay 100 Down i=$(( $i+1 )) done xdotool key --delay 20 Right && sleep 0.3 @@ -909,7 +954,7 @@ function restoreSettings(){ FPATH="" LOOP=1 while [[ $LOOP ]] ;do - CONFIG=$($DIALOGDEC --list --title="$TITLE" \ + CONFIG=$($DIALOGDEC --list --title="$TITLE" --image=preferences-desktop-theme\ --text="$MAIN_TEXT" \ --separator=" " \ --button="$ABOUT" \