Re: [PATCH v2 13/22] i18n: git-sh-setup.sh: mark strings for translation

2016-05-27 Thread Vasco Almeida
Às 22:46 de 26-05-2016, Junio C Hamano escreveu: > Vasco Almeida writes: > >> > require_work_tree_exists () { >> > + program_name=$0 >> >if test "z$(git rev-parse --is-bare-repository)" != zfalse >> >then >> > - die "fatal: $0 cannot be used without a working tree." >> > +

Re: [PATCH v2 13/22] i18n: git-sh-setup.sh: mark strings for translation

2016-05-26 Thread Junio C Hamano
Vasco Almeida writes: > require_work_tree_exists () { > + program_name=$0 > if test "z$(git rev-parse --is-bare-repository)" != zfalse > then > - die "fatal: $0 cannot be used without a working tree." > + die "$(gettext "fatal: \$program_name cannot be use

[PATCH v2 13/22] i18n: git-sh-setup.sh: mark strings for translation

2016-05-23 Thread Vasco Almeida
Positional arguments, such as $0, $1, etc, need to be stored on shell variables for use in translatable strings, according to gettext manual. Add git-sh-setup.sh to LOCALIZED_SH variable in Makefile to enable extraction of string marked for translation by xgettext. Although git-sh-setup.sh is a s