Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
robinpalat committed Mar 29, 2016
1 parent aaa29b7 commit b47b0be
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions addons/Dics/cnfg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ function dlg() {
echo -e "$tlng\n$v_dicts" > "$DC_a/dict/.dict"
for r in "$DS_a/Dics/dicts"/*; do > "$disables/$(basename "$r")"; done; fi

txtinf=" $(gettext "Please, select at least one resource (script) for each task")"
txtinf="$(gettext "Please, select at least one script for each task.\n<small>To start, is okay select all, later according to your preferences, you can go testing to disable some.</small>")"
if [ -n "${1}" ]; then text="--text=$txtinf"; n=${1}
else text="--center"; n=6; fi

Expand All @@ -119,7 +119,7 @@ function dlg() {
--column="$(gettext "Language")":TEXT \
--button="$(gettext "Add")":2 \
--button="$(gettext "Cancel")":1 \
--button=OK:0 )"
--button=OK:0)"
ret=$?
if [ $ret -eq 2 ]; then
"$DS_a/Dics/cnfg.sh" add_dlg
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

if [[ "$1" = dlgcnfg ]]; then
source "$DS/ifs/cmns.sh"
msg "$(gettext "Languages"): All
\n$(gettext "Does not need configuration")\n" dialog-information "$4"
msg "$(gettext "Does not need configuration")\n" dialog-information "$4"
else
export LINK="http://translate.google.com/translate_tts?ie=utf-8&total=1&idx=0&client=t&tl=$lgt&q=${word}"
export ex='mp3'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@

if [[ "$1" = dlgcnfg ]]; then
source "$DS/ifs/cmns.sh"
msg "$(gettext "Languages"): All
\n$(gettext "Does not need configuration")\n" dialog-information "$4"
msg "$(gettext "Does not need configuration")\n" dialog-information "$4"
else
useragent='Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:31.0) Gecko/20100101 Firefox/31.0'
result=$(curl -s -i --user-agent "$useragent" -d "sl=$2" -d "tl=$3" --data-urlencode text="${1,}" https://translate.google.com)
Expand Down
4 changes: 2 additions & 2 deletions ifs/upld.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ function upld() {
--always-print-result \
--window-icon=idiomind --buttons-layout=end \
--align=right --center --on-top \
--width=490 --height=440 --borders=12 \
--width=490 --height=450 --borders=12 \
--field=" :LBL" "" \
--field="$(gettext "Category"):CB" "" \
--field="$(gettext "Skill Level"):CB" "" \
Expand All @@ -138,7 +138,7 @@ function upld() {
--always-print-result \
--window-icon=idiomind --buttons-layout=end \
--align=right --center --on-top \
--width=490 --height=440 --borders=12 --field=" :LBL" "" \
--width=490 --height=450 --borders=12 --field=" :LBL" "" \
--field="$(gettext "Category"):CBE" "$_Categories" \
--field="$(gettext "Skill Level"):CB" "$_levels" \
--field="\n$(gettext "Description/Notes"):TXT" "${note}" \
Expand Down

0 comments on commit b47b0be

Please sign in to comment.