diff --git a/SparkleShare/Defines.cs.in b/SparkleShare/Defines.cs.in new file mode 100644 index 00000000..567c76fd --- /dev/null +++ b/SparkleShare/Defines.cs.in @@ -0,0 +1,28 @@ +// SparkleShare, an instant update workflow to Git. +// Copyright (C) 2010 Hylke Bons +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with this program. If not, see . + +using System; + +namespace SparkleShare +{ + public class Defines + { + public const string VERSION = "@VERSION@"; + public const string LOCALE_DIR = "@prefix@/share/locale"; + public const string GETTEXT_PACKAGE = "@GETTEXT_PACKAGE@"; + public const string PREFIX = "@prefix@"; + } +} diff --git a/SparkleShare/Makefile.am b/SparkleShare/Makefile.am index c53b5c77..2165fbd7 100644 --- a/SparkleShare/Makefile.am +++ b/SparkleShare/Makefile.am @@ -5,6 +5,7 @@ LINK = $(REF_SPARKLESHARE) SOURCES = \ +Defines.cs \ SparkleBubble.cs \ SparkleDialog.cs \ SparkleHelpers.cs \ diff --git a/SparkleShare/SparkleShare.cs b/SparkleShare/SparkleShare.cs index 636e23ea..0dd0126e 100644 --- a/SparkleShare/SparkleShare.cs +++ b/SparkleShare/SparkleShare.cs @@ -35,7 +35,7 @@ namespace SparkleShare { public static void Main (string [] args) { // Use translations - Catalog.Init ("i18n", "locale"); + Catalog.Init (Defines.GETTEXT_PACKAGE, Defines.LOCALE_DIR); // Check if git is installed Process Process = new Process (); diff --git a/configure.ac b/configure.ac index d986515a..b8763374 100644 --- a/configure.ac +++ b/configure.ac @@ -83,6 +83,7 @@ build/Makefile build/m4/Makefile notify-sharp/Makefile SparkleShare/sparkleshare +SparkleShare/Defines.cs SparkleShare/AssemblyInfo.cs SparkleShare/Makefile po/Makefile.in