diff options
Diffstat (limited to 'src/gtk-redshift')
-rw-r--r-- | src/gtk-redshift/defs.py.in | 21 | ||||
-rwxr-xr-x | src/gtk-redshift/gtk-redshift.py (renamed from src/gtk-redshift/gtk-redshift) | 6 |
2 files changed, 25 insertions, 2 deletions
diff --git a/src/gtk-redshift/defs.py.in b/src/gtk-redshift/defs.py.in new file mode 100644 index 0000000..91eccf9 --- /dev/null +++ b/src/gtk-redshift/defs.py.in @@ -0,0 +1,21 @@ +#!/usr/bin/env python +# defs.py -- GTK+ redshift local definitions +# This file is part of Redshift. + +# Redshift 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. + +# Redshift 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 Redshift. If not, see <http://www.gnu.org/licenses/>. + +# Copyright (c) 2010 Jon Lund Steffensen <jonlst@gmail.com> + + +LOCALEDIR = '@localedir@' diff --git a/src/gtk-redshift/gtk-redshift b/src/gtk-redshift/gtk-redshift.py index cdb4ebe..a737154 100755 --- a/src/gtk-redshift/gtk-redshift +++ b/src/gtk-redshift/gtk-redshift.py @@ -27,11 +27,13 @@ pygtk.require("2.0") import gtk, glib +import defs + if __name__ == '__main__': # Internationalisation - gettext.bindtextdomain('gtk-redshift') - gettext.textdomain('gtk-redshift') + gettext.bindtextdomain('redshift', defs.LOCALEDIR) + gettext.textdomain('redshift') _ = gettext.gettext # Start redshift with arguments from the command line |