work also without gettext. versioning

This commit is contained in:
Jaromil 2014-11-15 03:14:03 +01:00
parent 8c8ab3fc5c
commit 249c3cec1d

13
tomb
View File

@ -14,10 +14,10 @@
# #
# Tomb is designed, written and maintained by Denis Roio <jaromil@dyne.org> # Tomb is designed, written and maintained by Denis Roio <jaromil@dyne.org>
# #
# With contributions by Anathema, Boyska and Hellekin O. Wolf. # With contributions by Anathema, Boyska, Hellekin O. Wolf and GDrooid
# #
# Testing and reviews are contributed by Dreamer, Shining, # Testing and reviews are contributed by Dreamer, Shining, Mancausoft,
# Mancausoft, Asbesto Molesto and Nignux. # Asbesto Molesto and Nignux.
# #
# Tomb's artwork is contributed by Jordi aka Mon Mort. # Tomb's artwork is contributed by Jordi aka Mon Mort.
@ -39,8 +39,8 @@
# {{{ Global variables # {{{ Global variables
typeset VERSION="1.7" typeset VERSION="2.0"
typeset DATE="Oct/2014" typeset DATE="Nov/2014"
typeset TOMBEXEC=$0 typeset TOMBEXEC=$0
# Tomb is using some global variables set by the shell: # Tomb is using some global variables set by the shell:
@ -611,7 +611,8 @@ option_value() {
# Messaging function with pretty coloring # Messaging function with pretty coloring
function _msg() { function _msg() {
local msg="$(gettext -s "$2")" local msg="$2"
hash gettext && msg="$(gettext -s "$2")"
for i in $(seq 3 ${#}); for i in $(seq 3 ${#});
do do
msg=${(S)msg//::$(($i - 2))*::/$*[$i]} msg=${(S)msg//::$(($i - 2))*::/$*[$i]}