~ubuntu-branches/debian/sid/sugar-toolkit-gtk3/sid

« back to all changes in this revision

Viewing changes to src/sugar3/__init__.py

  • Committer: Package Import Robot
  • Author(s): Jonas Smedegaard
  • Date: 2015-04-17 10:34:39 UTC
  • mfrom: (4.1.4 experimental)
  • Revision ID: package-import@ubuntu.com-20150417103439-xsqh30o8p0v6bflp
Tags: 0.104.1-5
* Move packaging to Debian Sugar Team.
* Update package relations:
  + Fix depend on python-gi-cairo.
    Thanks to Martin Abente and James Cameron.
* Fix typo in libsugarext-dev short description.
  Closes: bug#747026. Thanks to Anders Jonsson.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2007, Red Hat, Inc.
2
 
# Copyright (C) 2007-2008, One Laptop Per Child
3
 
#
4
 
# This library is free software; you can redistribute it and/or
5
 
# modify it under the terms of the GNU Lesser General Public
6
 
# License as published by the Free Software Foundation; either
7
 
# version 2 of the License, or (at your option) any later version.
8
 
#
9
 
# This library is distributed in the hope that it will be useful,
10
 
# but WITHOUT ANY WARRANTY; without even the implied warranty of
11
 
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12
 
# Lesser General Public License for more details.
13
 
#
14
 
# You should have received a copy of the GNU Lesser General Public
15
 
# License along with this library; if not, write to the
16
 
# Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
 
# Boston, MA 02111-1307, USA.
18
 
 
19
 
import os
20
 
import gettext
21
 
 
22
 
 
23
 
if 'SUGAR_PREFIX' in os.environ:
24
 
    prefix = os.environ['SUGAR_PREFIX']
25
 
else:
26
 
    prefix = '/usr'
27
 
 
28
 
locale_path = os.path.join(prefix, 'share', 'locale')
29
 
 
30
 
gettext.bindtextdomain('sugar-base', locale_path)