[meld] build_helpers: More i18n building
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld] build_helpers: More i18n building
- Date: Sat, 9 Nov 2013 21:59:52 +0000 (UTC)
commit 8be78a61f76fdce2b852090ec3d987187518db6e
Author: Kai Willadsen <kai willadsen gmail com>
Date: Fri Nov 8 05:50:11 2013 +1000
build_helpers: More i18n building
meld/build_helpers.py | 29 +++++++++++------------------
1 files changed, 11 insertions(+), 18 deletions(-)
---
diff --git a/meld/build_helpers.py b/meld/build_helpers.py
index 997da4b..c915840 100644
--- a/meld/build_helpers.py
+++ b/meld/build_helpers.py
@@ -108,30 +108,23 @@ class build_icons(distutils.cmd.Command):
class build_i18n(distutils.cmd.Command):
- user_options = [('desktop-files=', None, '.desktop.in files that '
- 'should be merged'),
- ('xml-files=', None, '.xml.in files that should be '
- 'merged'),
- ('schemas-files=', None, '.schemas.in files that '
- 'should be merged'),
- ('key-files=', None, '.key.in files that should be '
- 'merged'),
- ('merge-po', 'm', 'merge po files against template'),
- ('bug-contact=', None, 'contact address for msgid bugs')]
-
- boolean_options = ['merge-po']
-
+ bug_contact = None
domain = "meld"
po_dir = "po"
+ merge_po = False
+ # FIXME: It's ridiculous to specify these here, but I know of no other
+ # way except magically extracting them from self.distribution.data_files
desktop_files = [('share/applications', glob.glob("data/*.desktop.in"))]
- xml_files = [('share/appdata', glob.glob("data/*.appdata.xml.in"))]
+ xml_files = [
+ ('share/appdata', glob.glob("data/*.appdata.xml.in")),
+ ('share/mime/packages', glob.glob("data/mime/*.xml.in"))
+ ]
+ schemas_files = []
+ key_files = []
def initialize_options(self):
- self.key_files = []
- self.schemas_files = []
- self.merge_po = False
- self.bug_contact = None
+ pass
def finalize_options(self):
pass
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]