All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/48] i18n: mark core shell programs for translation
@ 2011-05-21 18:43 Ævar Arnfjörð Bjarmason
  2011-05-21 18:43 ` [PATCH v2 01/48] i18n: git-am add git-sh-i18n Ævar Arnfjörð Bjarmason
                   ` (48 more replies)
  0 siblings, 49 replies; 51+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2011-05-21 18:43 UTC (permalink / raw)
  To: git
  Cc: Junio C Hamano, Jonathan Nieder, Ævar Arnfjörð Bjarmason

This is v2 of the patch series that marks strings in our core shell
programs for translation. I did not have time to fix everything for
this iteration, help welcome. The way my schedule is going this
weekend I probably won't get to this before next weekend, if then.

Stuff fixed:

 * Changed stuff like:

    echo >&2 "$(gettext "hello there")"
  
   to:

    (
        gettext "hello there" &&
        echo
    ) >&2

   It was mentioned that something like:

    gettext_nl "hello_there" >&2

   Would me more elegant. I agree, but didn't have time to change it
   (or care that much about the style). If someone wants to change
   this to whatever is the consensus that would be great.

 * Better TRANSLATORS comment for git-stash.sh

   As pointed out by Motiejus Jakštys. Actually someone going through
   this and adding *more* comments would improve things a lot. But
   it's not strictly needed, just nice to have.

What I *didn't* fix:

 * Change the eval_gettext variable names to work on win32.
    
       This means, to quote a previous E-Mail of mine:
    
    I'm now mostly done solving all the bugs noted in this series, aside
    from the case insensitive env vars on win32 issue.
    
    I know how to fix these, but some people may have issues with my style
    of doing so, so I'd like to ask in advance to save me extra work.
    
    Basically for code like this:
    
           while [ $# -gt 0 ]; do
               arg="$1"
               case "$arg" in
               --)
                   shift
                   break
                   ;;
               *)
                   rev=$(git rev-parse -q --verify "$arg^{commit}") || {
                       test $has_double_dash -eq 1 &&
                           die "$(eval_gettext "'\$arg' does not appear
    to be a valid revision")"
                       break
    
    I was thinking of just doing:
    
       WHATEVER_arg=$arg
       die "$(eval_gettext "'\$WHATEVER_arg' does not appear to be a
    valid revision")"
    
    Where WHATEVER is a sufficiently unique prefix. E.g.:
    
       WINDOWS_ME_HARDER
       GIT_I18N_VARIABLE
       YOUR_MOM
       DUDE_WHERES_MY_POSIX_COMPLIANCE

This series can be retrieved from:

    git://github.com/avar/git.git ab/i18n-sh-only

As explained above I didn't have time to fix all the blockers. Help
would be *great* and very appreciated.

(quickly hits "send" before having to run off)

Ævar Arnfjörð Bjarmason (48):
  i18n: git-am add git-sh-i18n
  i18n: git-am one-line gettext $msg; echo
  i18n: git-am multi-line getttext $msg; echo
  i18n: git-am eval_gettext messages
  i18n: git-am gettext + gettext to stderr message
  i18n: git-am die messages
  i18n: git-am cannot_fallback messages
  i18n: git-am clean_abort messages
  i18n: git-am "Apply?" message
  i18n: git-am "Falling back" say message
  i18n: git-am core say messages
  i18n: git-am printf(1) message to eval_gettext
  i18n: git-pull add git-sh-i18n
  i18n: git-pull die messages
  i18n: git-pull eval_gettext + die message
  i18n: git-pull eval_gettext + warning message
  i18n: git-submodule add git-sh-i18n
  i18n: git-submodule echo + eval_gettext messages
  i18n: git-submodule say + eval_gettext messages
  i18n: git-submodule die + eval_gettext messages
  i18n: git-submodule $update_module say + die messages
  i18n: git-submodule "cached cannot be used" message
  i18n: git-submodule "Submodule change[...]" messages
  i18n: git-submodule $errmsg messages
  i18n: git-submodule "Entering [...]" message
  i18n: git-submodule "[...] path is ignored" message
  i18n: git-submodule "path not initialized" message
  i18n: git-submodule "blob" and "submodule" messages
  i18n: git-stash add git-sh-i18n
  i18n: git-stash echo + gettext message
  i18n: git-stash say + gettext messages
  i18n: git-stash die + gettext messages
  i18n: git-stash die + eval_gettext messages
  i18n: git-stash die + eval_gettext $* messages
  i18n: git-stash die + eval_gettext $1 messages
  i18n: git-stash "unknown option" message
  i18n: git-stash drop_stash say/die messages
  i18n: git-bisect add git-sh-i18n
  i18n: git-bisect gettext + echo message
  i18n: git-bisect echo + gettext messages
  i18n: git-bisect echo + eval_gettext message
  i18n: git-bisect die + gettext messages
  i18n: git-bisect die + eval_gettext messages
  i18n: git-bisect bisect_run + $@ messages
  i18n: git-bisect bisect_reset + $1 messages
  i18n: git-bisect bisect_replay + $1 messages
  i18n: git-bisect [Y/n] messages
  i18n: git-bisect bisect_next_check "You need to" message

 git-am.sh                    |   77 ++++++++++++++++-------------
 git-bisect.sh                |  113 +++++++++++++++++++++++++++---------------
 git-pull.sh                  |   34 +++++++------
 git-stash.sh                 |   81 ++++++++++++++++++++----------
 git-submodule.sh             |   98 ++++++++++++++++++++-----------------
 t/t4150-am.sh                |    2 +-
 t/t4151-am-abort.sh          |    5 +-
 t/t7400-submodule-basic.sh   |    4 +-
 t/t7401-submodule-summary.sh |   12 ++--
 t/t7406-submodule-update.sh  |    2 +-
 t/t7407-submodule-foreach.sh |    4 +-
 11 files changed, 255 insertions(+), 177 deletions(-)

-- 
1.7.5.1

^ permalink raw reply	[flat|nested] 51+ messages in thread

end of thread, other threads:[~2011-05-22  7:46 UTC | newest]

Thread overview: 51+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-21 18:43 [PATCH v2 00/48] i18n: mark core shell programs for translation Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 01/48] i18n: git-am add git-sh-i18n Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 02/48] i18n: git-am one-line gettext $msg; echo Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 03/48] i18n: git-am multi-line getttext " Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 04/48] i18n: git-am eval_gettext messages Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 05/48] i18n: git-am gettext + gettext to stderr message Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 06/48] i18n: git-am die messages Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 07/48] i18n: git-am cannot_fallback messages Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 08/48] i18n: git-am clean_abort messages Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 09/48] i18n: git-am "Apply?" message Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 10/48] i18n: git-am "Falling back" say message Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 11/48] i18n: git-am core say messages Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 12/48] i18n: git-am printf(1) message to eval_gettext Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 13/48] i18n: git-pull add git-sh-i18n Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 14/48] i18n: git-pull die messages Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 15/48] i18n: git-pull eval_gettext + die message Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 16/48] i18n: git-pull eval_gettext + warning message Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 17/48] i18n: git-submodule add git-sh-i18n Ævar Arnfjörð Bjarmason
2011-05-21 18:43 ` [PATCH v2 18/48] i18n: git-submodule echo + eval_gettext messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 19/48] i18n: git-submodule say " Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 20/48] i18n: git-submodule die " Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 21/48] i18n: git-submodule $update_module say + die messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 22/48] i18n: git-submodule "cached cannot be used" message Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 23/48] i18n: git-submodule "Submodule change[...]" messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 24/48] i18n: git-submodule $errmsg messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 25/48] i18n: git-submodule "Entering [...]" message Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 26/48] i18n: git-submodule "[...] path is ignored" message Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 27/48] i18n: git-submodule "path not initialized" message Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 28/48] i18n: git-submodule "blob" and "submodule" messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 29/48] i18n: git-stash add git-sh-i18n Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 30/48] i18n: git-stash echo + gettext message Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 31/48] i18n: git-stash say + gettext messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 32/48] i18n: git-stash die " Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 33/48] i18n: git-stash die + eval_gettext messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 34/48] i18n: git-stash die + eval_gettext $* messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 35/48] i18n: git-stash die + eval_gettext $1 messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 36/48] i18n: git-stash "unknown option" message Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 37/48] i18n: git-stash drop_stash say/die messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 38/48] i18n: git-bisect add git-sh-i18n Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 39/48] i18n: git-bisect gettext + echo message Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 40/48] i18n: git-bisect echo + gettext messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 41/48] i18n: git-bisect echo + eval_gettext message Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 42/48] i18n: git-bisect die + gettext messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 43/48] i18n: git-bisect die + eval_gettext messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 44/48] i18n: git-bisect bisect_run + $@ messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 45/48] i18n: git-bisect bisect_reset + $1 messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 46/48] i18n: git-bisect bisect_replay " Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 47/48] i18n: git-bisect [Y/n] messages Ævar Arnfjörð Bjarmason
2011-05-21 18:44 ` [PATCH v2 48/48] i18n: git-bisect bisect_next_check "You need to" message Ævar Arnfjörð Bjarmason
2011-05-21 18:56 ` [PATCH v2 00/48] i18n: mark core shell programs for translation Junio C Hamano
2011-05-22  7:46   ` Ævar Arnfjörð Bjarmason

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.