From: Jonathan Nieder Date: Wed, 16 Nov 2011 10:33:19 GMT Subject: Re: [PATCH] i18n: add infrastructure for translating Git with gettext Message-ID: <20111116103319.GB30753@elie.hsd1.il.comcast.net> In-Reply-To: Ævar Arnfjörð Bjarmason wrote: > Here's what we do with the sharedir currently: > > * It's used as the gitwebdir already, and is used also as the > localedir with this patch: > > sharedir = $(prefix)/share > gitwebdir = $(sharedir)/gitweb > localedir = $(sharedir)/locale This has $(prefix)/ (e.g., /usr/) at the start. > * Even then I can't find the option that makes gitweb put something > in it, after a "make" with this patch: > > $ find share -type f > share/locale/is/LC_MESSAGES/git.mo This does not. > * It *is* important that we have this under a > $SOMETHING/is/LC_MESSAGES/git.mo structure, since we set > GIT_TEXTDOMAINDIR to $SOMETHING, and the gettext library will only > understand something in this layout. > > But that $SOMETHING doesn't have to be $ROOT/share, it could be > e.g. $ROOT/po/generated, which would make it not conflict with the > gitwebdir. Yeah, makes sense. bin-wrappers/git has to get its locales from somewhere.