Update Spanish translations and fix minor issues.

Issues:
	`gettext -s - "$2"` prints the -, instead of getting the desired effect
	The custom expansion  missed repeated variables in a single string
	Some string fixes
This commit is contained in:
gdrooid 2014-08-30 23:24:12 +02:00
parent 61e6529f6a
commit 118ace28ef
3 changed files with 4 additions and 8 deletions

View File

@ -606,7 +606,7 @@ msgid ""
"key ::3 tomb key::" "key ::3 tomb key::"
msgstr "" msgstr ""
"Tu tumba está preparada en ::1 directorio::/::2 tumba:: y asegurada con la " "Tu tumba está preparada en ::1 directorio::/::2 tumba:: y asegurada con la "
"clave ::1 clave::" "clave ::3 clave::"
#: _message #: _message
msgid "Commanded to reset key for tomb ::1 tomb name::" msgid "Commanded to reset key for tomb ::1 tomb name::"
@ -856,10 +856,6 @@ msgstr ""
msgid "Index command needs 'mlocate' to be installed." msgid "Index command needs 'mlocate' to be installed."
msgstr "" msgstr ""
#: _verbose
msgid "$updatedbver"
msgstr ""
#: _failure #: _failure
msgid "There seems to be no open tomb engraved as [::1::]" msgid "There seems to be no open tomb engraved as [::1::]"
msgstr "Parece que existe una tumba con el grabado [::1::]" msgstr "Parece que existe una tumba con el grabado [::1::]"

2
tomb
View File

@ -491,7 +491,7 @@ option_value() {
# Messaging function with pretty coloring # Messaging function with pretty coloring
function _msg() { function _msg() {
local tmp_msg="$(gettext -s - "$2")" local tmp_msg="$(gettext -s "$2")"
local msg="${(S)${(S)${(S)tmp_msg//::3*::/$5}//::2*::/$4}//::1*::/$3}" local msg="${(S)${(S)${(S)tmp_msg//::3*::/$5}//::2*::/$4}//::1*::/$3}"
local command="print -P" local command="print -P"
local progname="$fg[magenta]${TOMBEXEC##*/}$reset_color" local progname="$fg[magenta]${TOMBEXEC##*/}$reset_color"