Make sure _nl_msg_cat_cntr exists even if libintl doesn't, and use printf command if the gettext command isn't installed. Both of these are needed on systems without gettext support.

darcs-hash:20060120163156-ac50b-4b98e605f297bb435596fc2a66c413f0be5a5751.gz
This commit is contained in:
axel 2006-01-21 02:31:56 +10:00
parent a47065f648
commit 9fd20e63cf
2 changed files with 10 additions and 2 deletions

View File

@ -71,8 +71,14 @@ for i in DISPLAY
end
end
function _ -d "Alias for the gettext command"
gettext fish $argv
if which gettext >/dev/null ^/dev/null
function _ -d "Alias for the gettext command"
gettext fish $argv
end
else
function _ -d "Alias for the gettext command"
printf "%s" $argv
end
end
#

View File

@ -95,6 +95,8 @@ void translate_destroy()
#else
int _nl_msg_cat_cntr=0;
const wchar_t *wgettext( const wchar_t *in )
{
return in;