git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Use system_path to find 'po'-dir to resolve relative paths

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 6, 2012, 18:28 UTC
Message-ID
<7v7gvkmh0b.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1338987675-7388-1-git-send-email-vfr@lyx.org>
Vincent van Ravesteijn <vfr@lyx.org> writes:
Show 5 quoted lines
> If the specified path for the 'po'-files is a relative path and if
> RUNTIME_PREFIX is set, system_path must be used to resolve the directory relative to the executable.
>
> Signed-off-by: Vincent van Ravesteijn <vfr@lyx.org>
> ---

Hrm, I'd prefer to see anything that involves RUNTIME_PREFIX first tested in msysgit tree and then fed to me through them.

Thanks.
Show 24 quoted lines
>  gettext.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/gettext.c b/gettext.c
> index f75bca7..632ccf8 100644
> --- a/gettext.c
> +++ b/gettext.c
> @@ -4,6 +4,7 @@
>  
>  #include "git-compat-util.h"
>  #include "gettext.h"
> +#include "exec_cmd.h"
>  
>  #ifndef NO_GETTEXT
>  #	include <locale.h>
> @@ -123,7 +124,7 @@ void git_setup_gettext(void)
>  
>  	if (!podir)
>  		podir = GIT_LOCALE_PATH;
> -	bindtextdomain("git", podir);
> +	bindtextdomain("git", system_path(podir));
>  	setlocale(LC_MESSAGES, "");
>  	init_gettext_charset("git");
>  	textdomain("git");
Previous: Vincent van Ravesteijn
Message 3 of 3 in “Use system_path to find 'po'-dir to resolve relative paths”
  1. Use system_path to find 'po'-dir to resolve relative pathsVincent van Ravesteijn, Jun 6, 2012
  2. git-upload-pack: Setup exec_path before gettextVincent van Ravesteijn, Jun 6, 2012
  3. Junio C HamanoJun 6, 2012

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.