From 7414c0e37bf9de7a5e299cc6d5f4f6c7877f89b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Jerna=C5=9B?= Date: Wed, 5 Oct 2011 09:16:47 +0200 Subject: [PATCH] Make plugin descriptions translatable This includes for now only the build infrastructure, the necessary code to actually load the translations has to be written. --- data/plugins/Makefile.am | 19 +++++++++++++------ .../{bitbucket.xml => bitbucket.xml.in} | 6 +++--- data/plugins/{github.xml => github.xml.in} | 6 +++--- .../{gitorious.xml => gitorious.xml.in} | 6 +++--- data/plugins/{gnome.xml => gnome.xml.in} | 6 +++--- .../{own-server.xml => own-server.xml.in} | 6 +++--- data/plugins/{redhat.xml => redhat.xml.in} | 6 +++--- po/POTFILES.in | 6 ++++++ 8 files changed, 37 insertions(+), 24 deletions(-) rename data/plugins/{bitbucket.xml => bitbucket.xml.in} (68%) rename data/plugins/{github.xml => github.xml.in} (65%) rename data/plugins/{gitorious.xml => gitorious.xml.in} (65%) rename data/plugins/{gnome.xml => gnome.xml.in} (67%) rename data/plugins/{own-server.xml => own-server.xml.in} (69%) rename data/plugins/{redhat.xml => redhat.xml.in} (69%) diff --git a/data/plugins/Makefile.am b/data/plugins/Makefile.am index d87282b9..8bf7b4ab 100644 --- a/data/plugins/Makefile.am +++ b/data/plugins/Makefile.am @@ -1,16 +1,23 @@ +dist_plugins_in_files = \ + bitbucket.xml.in \ + github.xml.in \ + gitorious.xml.in \ + gnome.xml.in \ + own-server.xml.in + dist_plugins_DATA = \ - github.xml \ - github.png \ - gitorious.xml \ + $(dist_plugins_in_files:.xml.in=.xml) \ + github.png \ gitorious.png \ - bitbucket.xml \ bitbucket.png \ - gnome.xml \ gnome.png \ - own-server.xml \ own-server.png +@INTLTOOL_XML_RULE@ + pluginsdir = $(pkgdatadir)/plugins/ +EXTRA_DIST=$(xml_in_files) $(xml_DATA) + MAINTAINERCLEANFILES = \ Makefile.in diff --git a/data/plugins/bitbucket.xml b/data/plugins/bitbucket.xml.in similarity index 68% rename from data/plugins/bitbucket.xml rename to data/plugins/bitbucket.xml.in index f889e337..800b8bcb 100644 --- a/data/plugins/bitbucket.xml +++ b/data/plugins/bitbucket.xml.in @@ -2,8 +2,8 @@ - Bitbucket - Free code hosting for Git and Mercurial + <_name>Bitbucket + <_description>Free code hosting for Git and Mercurial bitbucket.png Git @@ -13,7 +13,7 @@ - /username/project + <_example>/username/project diff --git a/data/plugins/github.xml b/data/plugins/github.xml.in similarity index 65% rename from data/plugins/github.xml rename to data/plugins/github.xml.in index 83d371b4..442a7f2b 100644 --- a/data/plugins/github.xml +++ b/data/plugins/github.xml.in @@ -2,8 +2,8 @@ - Github - Free public Git repositories with collaborator management + <_name>Github + <_description>Free public Git repositories with collaborator management github.png Git @@ -13,7 +13,7 @@ - /username/project + <_example>/username/project diff --git a/data/plugins/gitorious.xml b/data/plugins/gitorious.xml.in similarity index 65% rename from data/plugins/gitorious.xml rename to data/plugins/gitorious.xml.in index 2abc3ae8..d581fd10 100644 --- a/data/plugins/gitorious.xml +++ b/data/plugins/gitorious.xml.in @@ -2,8 +2,8 @@ - Gitorious - Open source infrastructure for hosting open source projects + <_name>Gitorious + <_description>Open source infrastructure for hosting open source projects gitorious.png Git @@ -13,7 +13,7 @@ - /project/repository + <_example>/project/repository diff --git a/data/plugins/gnome.xml b/data/plugins/gnome.xml.in similarity index 67% rename from data/plugins/gnome.xml rename to data/plugins/gnome.xml.in index 716cbd10..721b2cae 100644 --- a/data/plugins/gnome.xml +++ b/data/plugins/gnome.xml.in @@ -2,8 +2,8 @@ - The GNOME Project - A free and easy interface for your computer + <_name>The GNOME Project + <_description>A free and easy interface for your computer gnome.png Git @@ -13,7 +13,7 @@ - /project + <_example>/project diff --git a/data/plugins/own-server.xml b/data/plugins/own-server.xml.in similarity index 69% rename from data/plugins/own-server.xml rename to data/plugins/own-server.xml.in index 5c74d131..678cddff 100644 --- a/data/plugins/own-server.xml +++ b/data/plugins/own-server.xml.in @@ -2,8 +2,8 @@ - On my own server - Everything under my control + <_name>On my own server + <_description>Everything under my control own-server.png Git @@ -13,7 +13,7 @@ - /path/to/project + <_example>/path/to/project diff --git a/data/plugins/redhat.xml b/data/plugins/redhat.xml.in similarity index 69% rename from data/plugins/redhat.xml rename to data/plugins/redhat.xml.in index b96493cb..8334a13d 100644 --- a/data/plugins/redhat.xml +++ b/data/plugins/redhat.xml.in @@ -2,8 +2,8 @@ - Red Hat UX Team Hub - Internal server for the UX team + <_name>Red Hat UX Team Hub + <_description>Internal server for the UX team redhat.png Git @@ -13,7 +13,7 @@ - /project + <_example>/project diff --git a/po/POTFILES.in b/po/POTFILES.in index a059d4a7..0d8059da 100755 --- a/po/POTFILES.in +++ b/po/POTFILES.in @@ -2,6 +2,12 @@ # Please keep this file in alphabetical order; run ./sort-potfiles # after adding files here. [encoding: UTF-8] +data/plugins/bitbucket.xml.in +data/plugins/github.xml.in +data/plugins/gitorious.xml.in +data/plugins/gnome.xml.in +data/plugins/own-server.xml.in +data/plugins/redhat.xml.in SparkleShare/Mac/SparkleStatusIcon.cs SparkleShare/Mac/SparkleUI.cs SparkleShare/Nautilus/sparkleshare-nautilus-extension.py.in