From: Jonathan Nieder Date: Sat, 05 Jun 2010 02:57:02 GMT Subject: Re: [PATCH/RFC v7 1/2] Add infrastructure for translating Git with gettext Message-ID: <20100605025702.GA2019@progeny.tock> In-Reply-To: <1275704035-6552-2-git-send-email-avarab@gmail.com> Ævar Arnfjörð Bjarmason wrote: > diff --git a/git.c b/git.c > index 99f0363..d749eab 100644 > --- a/git.c > +++ b/git.c > @@ -3,6 +3,7 @@ > #include "cache.h" > #include "quote.h" > #include "run-command.h" > +#include "gettext.h" > > const char git_usage_string[] = > "git [--version] [--exec-path[=GIT_EXEC_PATH]] [--html-path]\n" > @@ -490,6 +491,8 @@ int main(int argc, const char **argv) > if (!cmd) > cmd = "git-help"; > > + git_setup_gettext(); > + This handles builtins. ‘grep PROGRAM_OBJS Makefile’ reveals nine other source files with their own main() functions. Jonathan