aboutsummaryrefslogtreecommitdiffhomepage
path: root/init
diff options
context:
space:
mode:
authorGravatar axel <axel@liljencrantz.se>2006-01-21 02:31:56 +1000
committerGravatar axel <axel@liljencrantz.se>2006-01-21 02:31:56 +1000
commit9fd20e63cfb9c57ce48bad7fbdb4a15464a2929b (patch)
tree3be3107ce3dc521be4f436fd5f9be28772ac0020 /init
parenta47065f6481a412c2a69ab248b21d6f739361438 (diff)
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
Diffstat (limited to 'init')
-rw-r--r--init/fish.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/init/fish.in b/init/fish.in
index 7cc3c865..0c1844ec 100644
--- a/init/fish.in
+++ b/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
#