Revision 5093,
1.2 KB
checked in by yasumichi, 13 years ago
(diff) |
fixed gettext related.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[5049] | 1 | #! /usr/bin/env python |
---|
| 2 | |
---|
| 3 | # rpminstall |
---|
| 4 | # Copyright (C) Yasumichi Akahoshi 2011 <yasumichi@vinelinux.org> |
---|
| 5 | # |
---|
| 6 | # pygtk-rpminstall is free software: you can redistribute it and/or modify it |
---|
| 7 | # under the terms of the GNU General Public License as published by the |
---|
| 8 | # Free Software Foundation, either version 3 of the License, or |
---|
| 9 | # (at your option) any later version. |
---|
| 10 | # |
---|
| 11 | # pygtk-rpminstall is distributed in the hope that it will be useful, but |
---|
| 12 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
| 13 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
---|
| 14 | # See the GNU General Public License for more details. |
---|
| 15 | # |
---|
| 16 | # You should have received a copy of the GNU General Public License along |
---|
| 17 | # with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
| 18 | |
---|
| 19 | from gi.repository import Gtk |
---|
[5093] | 20 | import locale |
---|
[5049] | 21 | import gettext |
---|
[5093] | 22 | |
---|
| 23 | locale.setlocale(locale.LC_ALL, '') |
---|
[5051] | 24 | gettext.bindtextdomain("rpminstall") |
---|
| 25 | gettext.textdomain("rpminstall") |
---|
[5093] | 26 | gettext.install('rpminstall', unicode=True) |
---|
[5049] | 27 | |
---|
| 28 | # Import from src first so that we can run directly from the source tree for |
---|
| 29 | # development. |
---|
| 30 | try: |
---|
| 31 | from src import rpminstall |
---|
| 32 | except ImportError, e: |
---|
| 33 | from rpminstall import rpminstall |
---|
| 34 | |
---|
| 35 | app = rpminstall.GUI() |
---|
| 36 | Gtk.main() |
---|
| 37 | |
---|
Note: See
TracBrowser
for help on using the repository browser.