mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-01-30 16:45:31 +08:00
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:
parent
a47065f648
commit
9fd20e63cf
10
init/fish.in
10
init/fish.in
|
@ -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
|
||||
|
||||
#
|
||||
|
|
|
@ -95,6 +95,8 @@ void translate_destroy()
|
|||
|
||||
#else
|
||||
|
||||
int _nl_msg_cat_cntr=0;
|
||||
|
||||
const wchar_t *wgettext( const wchar_t *in )
|
||||
{
|
||||
return in;
|
||||
|
|
Loading…
Reference in New Issue
Block a user