Subject: Re: [PATCH/RFC v7 1/2] Add infrastructure for translating Git with gettext

From: Jonathan Nieder <[email-masked]>
Date: Fri, 4 Jun 2010 21:57:02 -0500

Æ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