X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=ioncore%2Fioncore.c;h=cef62df1201338c91f17897c88903e1ea451cab6;hb=df57861c962a50bfbf57f276d288395fe0c6a4b6;hp=0f1744c640636f82f8d828e754197288a56ee147;hpb=1cd244db6df1337d594b9e2456c735cbc28aea6c;p=ion3.git diff --git a/ioncore/ioncore.c b/ioncore/ioncore.c index 0f1744c..cef62df 100644 --- a/ioncore/ioncore.c +++ b/ioncore/ioncore.c @@ -1,7 +1,7 @@ /* * ion/ioncore/ioncore.c * - * Copyright (c) Tuomo Valkonen 1999-2007. + * Copyright (c) Tuomo Valkonen 1999-2008. * * See the included file LICENSE for details. */ @@ -18,6 +18,8 @@ #ifndef CF_NO_LOCALE #include #include +#endif +#ifndef CF_NO_GETTEXT #include #endif @@ -71,18 +73,18 @@ WGlobal ioncore_g; static const char *progname="ion"; static const char ioncore_copy[]= - "Ion " ION_VERSION ", copyright (c) Tuomo Valkonen 1999-2007."; + "Ion " ION_VERSION ", copyright (c) Tuomo Valkonen 1999-2008."; static const char ioncore_license[]=DUMMY_TR( - "This program is free software; you can redistribute it and/or\n" - "modify it under the terms of the GNU Lesser General Public\n" - "License as published by the Free Software Foundation; either\n" - "version 2.1 of the License, or (at your option) any later version.\n" + "This software is licensed under the GNU Lesser General Public License\n" + "(LGPL), version 2.1, extended with terms applying to the use of the name\n" + "of the project, Ion(tm), unless otherwise indicated in components taken\n" + "from elsewhere. For details, see the file LICENSE that you should have\n" + "received with this software.\n" "\n" "This program is distributed in the hope that it will be useful,\n" "but WITHOUT ANY WARRANTY; without even the implied warranty of\n" - "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU\n" - "Lesser General Public License for more details.\n"); + "MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n"); static const char *ioncore_about=NULL; @@ -229,6 +231,10 @@ static bool init_locale() return FALSE; } +#endif + +#ifndef CF_NO_GETTEXT + #define TEXTDOMAIN "ion3" static bool init_messages(const char *localedir) @@ -275,7 +281,6 @@ static bool init_hooks() INIT_HOOK_(ioncore_submap_ungrab_hook); INIT_HOOK_(region_notify_hook); - ADD_HOOK_(region_notify_hook, ioncore_frame_quasiactivation_notify); ADD_HOOK_(region_notify_hook, ioncore_screen_activity_notify); INIT_HOOK(clientwin_do_manage_alt, clientwin_do_manage_default); @@ -384,6 +389,8 @@ bool ioncore_init(const char *prog, int argc, char *argv[], #ifndef CF_NO_LOCALE init_locale(); +#endif +#ifndef CF_NO_GETTEXT init_messages(localedir); #endif