diff options
-rw-r--r-- | init/fish.in | 10 | ||||
-rw-r--r-- | translate.c | 2 |
2 files changed, 10 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 # diff --git a/translate.c b/translate.c index 5e4c9df1..29541b91 100644 --- a/translate.c +++ b/translate.c @@ -95,6 +95,8 @@ void translate_destroy() #else +int _nl_msg_cat_cntr=0; + const wchar_t *wgettext( const wchar_t *in ) { return in; |