summaryrefslogtreecommitdiff
path: root/engine
diff options
context:
space:
mode:
authorfujiwarat <takao.fujiwara1@gmail.com>2015-03-26 18:16:16 +0900
committerfujiwarat <takao.fujiwara1@gmail.com>2015-03-26 18:37:30 +0900
commit51ff84e0ffce0eb72dd093a890dd4f4cfdbc6c61 (patch)
tree533bdca8908573f58421d7ad912eea2e16de8d96 /engine
parenta9b880226fcc7a22ca84ed1947c047c6c53c8028 (diff)
downloadibus-anthy-51ff84e0ffce0eb72dd093a890dd4f4cfdbc6c61.tar.gz
Added textdomain in default.xml
Diffstat (limited to 'engine')
-rw-r--r--engine/python2/Makefile.am24
-rw-r--r--engine/python2/anthy.xml.in.in10
-rw-r--r--engine/python2/default.xml.in.in5
-rw-r--r--engine/python3/Makefile.am24
-rw-r--r--engine/python3/anthy.xml.in.in10
-rw-r--r--engine/python3/default.xml.in.in5
6 files changed, 30 insertions, 48 deletions
diff --git a/engine/python2/Makefile.am b/engine/python2/Makefile.am
index a96f831..afc9236 100644
--- a/engine/python2/Makefile.am
+++ b/engine/python2/Makefile.am
@@ -3,8 +3,8 @@
# ibus-anthy - The Anthy engine for IBus
#
# Copyright (c) 2007-2008 Peng Huang <shawn.p.huang@gmail.com>
-# Copyright (c) 2010-2013 Takao Fujiwara <takao.fujiwara1@gmail.com>
-# Copyright (c) 2007-2013 Red Hat, Inc.
+# Copyright (c) 2010-2015 Takao Fujiwara <takao.fujiwara1@gmail.com>
+# Copyright (c) 2007-2015 Red Hat, Inc.
#
# 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
@@ -77,21 +77,11 @@ componentdir = $(datadir)/ibus/component
engine_DATA = default.xml
enginedir = $(pkgdatadir)/engine
-anthy.xml: anthy.xml.in
- ( \
- libexecdir=${libexecdir}; \
- pkgdatadir=${pkgdatadir}; \
- s=`cat $<`; \
- eval "echo \"$${s}\""; \
- ) > $@
-
-default.xml: default.xml.in
- ( \
- libexecdir=${libexecdir}; \
- pkgdatadir=${pkgdatadir}; \
- s=`cat $<`; \
- eval "echo \"$${s}\""; \
- ) > $@
+%.xml: %.xml.in
+ sed -e "s|\@libexecdir\@|$(libexecdir)|g" \
+ -e "s|\@pkgdatadir\@|$(pkgdatadir)|g" \
+ -e "s|_description|description|g" \
+ $< > $@
_config.py: _config.py.in
( \
diff --git a/engine/python2/anthy.xml.in.in b/engine/python2/anthy.xml.in.in
index 9a93744..66212cb 100644
--- a/engine/python2/anthy.xml.in.in
+++ b/engine/python2/anthy.xml.in.in
@@ -1,10 +1,10 @@
-<?xml version=\"1.0\" encoding=\"utf-8\"?>
+<?xml version="1.0" encoding="utf-8"?>
<!-- filename: anthy.xml -->
<component>
<name>org.freedesktop.IBus.Anthy</name>
<description>Anthy Component</description>
- <exec>${libexecdir}/ibus-engine-anthy --ibus</exec>
- <version>@VERSION@</version>
+ <exec>@libexecdir@/ibus-engine-anthy --ibus</exec>
+ <version>@PACKAGE_VERSION@</version>
<author>Peng Huang &lt;shawn.p.huang@gmail.com&gt;</author>
<license>GPL</license>
<homepage>http://code.google.com/p/ibus</homepage>
@@ -13,7 +13,7 @@
<!-- for engines -->
<observed-paths>
<path>~/.config/ibus-anthy/engines.xml</path>
- <path>${pkgdatadir}/engine/default.xml</path>
+ <path>@pkgdatadir@/engine/default.xml</path>
</observed-paths>
- <engines exec=\"${libexecdir}/ibus-engine-anthy --xml\" />
+ <engines exec="@libexecdir@/ibus-engine-anthy --xml" />
</component>
diff --git a/engine/python2/default.xml.in.in b/engine/python2/default.xml.in.in
index 27e3c82..3ae5a62 100644
--- a/engine/python2/default.xml.in.in
+++ b/engine/python2/default.xml.in.in
@@ -1,4 +1,4 @@
-<?xml version=\"1.0\" encoding=\"utf-8\"?>
+<?xml version="1.0" encoding="utf-8"?>
<engines>
<engine>
<name>anthy</name>
@@ -10,10 +10,11 @@
<layout_variant></layout_variant>
<layout_option></layout_option>
<longname>Anthy</longname>
- <description>Anthy Input Method</description>
+ <_description>Anthy Input Method</_description>
<rank>99</rank>
@HOTKEYS_XML@
@SYMBOL_XML@
<version>@PACKAGE_VERSION@</version>
+ <textdomain>ibus-anthy</textdomain>
</engine>
</engines>
diff --git a/engine/python3/Makefile.am b/engine/python3/Makefile.am
index a96f831..afc9236 100644
--- a/engine/python3/Makefile.am
+++ b/engine/python3/Makefile.am
@@ -3,8 +3,8 @@
# ibus-anthy - The Anthy engine for IBus
#
# Copyright (c) 2007-2008 Peng Huang <shawn.p.huang@gmail.com>
-# Copyright (c) 2010-2013 Takao Fujiwara <takao.fujiwara1@gmail.com>
-# Copyright (c) 2007-2013 Red Hat, Inc.
+# Copyright (c) 2010-2015 Takao Fujiwara <takao.fujiwara1@gmail.com>
+# Copyright (c) 2007-2015 Red Hat, Inc.
#
# 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
@@ -77,21 +77,11 @@ componentdir = $(datadir)/ibus/component
engine_DATA = default.xml
enginedir = $(pkgdatadir)/engine
-anthy.xml: anthy.xml.in
- ( \
- libexecdir=${libexecdir}; \
- pkgdatadir=${pkgdatadir}; \
- s=`cat $<`; \
- eval "echo \"$${s}\""; \
- ) > $@
-
-default.xml: default.xml.in
- ( \
- libexecdir=${libexecdir}; \
- pkgdatadir=${pkgdatadir}; \
- s=`cat $<`; \
- eval "echo \"$${s}\""; \
- ) > $@
+%.xml: %.xml.in
+ sed -e "s|\@libexecdir\@|$(libexecdir)|g" \
+ -e "s|\@pkgdatadir\@|$(pkgdatadir)|g" \
+ -e "s|_description|description|g" \
+ $< > $@
_config.py: _config.py.in
( \
diff --git a/engine/python3/anthy.xml.in.in b/engine/python3/anthy.xml.in.in
index 9a93744..66212cb 100644
--- a/engine/python3/anthy.xml.in.in
+++ b/engine/python3/anthy.xml.in.in
@@ -1,10 +1,10 @@
-<?xml version=\"1.0\" encoding=\"utf-8\"?>
+<?xml version="1.0" encoding="utf-8"?>
<!-- filename: anthy.xml -->
<component>
<name>org.freedesktop.IBus.Anthy</name>
<description>Anthy Component</description>
- <exec>${libexecdir}/ibus-engine-anthy --ibus</exec>
- <version>@VERSION@</version>
+ <exec>@libexecdir@/ibus-engine-anthy --ibus</exec>
+ <version>@PACKAGE_VERSION@</version>
<author>Peng Huang &lt;shawn.p.huang@gmail.com&gt;</author>
<license>GPL</license>
<homepage>http://code.google.com/p/ibus</homepage>
@@ -13,7 +13,7 @@
<!-- for engines -->
<observed-paths>
<path>~/.config/ibus-anthy/engines.xml</path>
- <path>${pkgdatadir}/engine/default.xml</path>
+ <path>@pkgdatadir@/engine/default.xml</path>
</observed-paths>
- <engines exec=\"${libexecdir}/ibus-engine-anthy --xml\" />
+ <engines exec="@libexecdir@/ibus-engine-anthy --xml" />
</component>
diff --git a/engine/python3/default.xml.in.in b/engine/python3/default.xml.in.in
index 27e3c82..3ae5a62 100644
--- a/engine/python3/default.xml.in.in
+++ b/engine/python3/default.xml.in.in
@@ -1,4 +1,4 @@
-<?xml version=\"1.0\" encoding=\"utf-8\"?>
+<?xml version="1.0" encoding="utf-8"?>
<engines>
<engine>
<name>anthy</name>
@@ -10,10 +10,11 @@
<layout_variant></layout_variant>
<layout_option></layout_option>
<longname>Anthy</longname>
- <description>Anthy Input Method</description>
+ <_description>Anthy Input Method</_description>
<rank>99</rank>
@HOTKEYS_XML@
@SYMBOL_XML@
<version>@PACKAGE_VERSION@</version>
+ <textdomain>ibus-anthy</textdomain>
</engine>
</engines>