← Back to team overview

xubuntu-dev team mailing list archive

[Branch ~xubuntu-dev/xubuntu-default-settings/trunk] Rev 408: Set up translations for the two desktop files

 

------------------------------------------------------------
revno: 408
committer: Lionel Le Folgoc <mrpouit@xxxxxxxxxx>
branch nick: xubuntu-default-settings
timestamp: Sat 2013-03-09 16:14:15 +0100
message:
  Set up translations for the two desktop files
added:
  usr/share/xubuntu/applications/po/
  usr/share/xubuntu/applications/po/Makefile
  usr/share/xubuntu/applications/po/POTFILES.in
  usr/share/xubuntu/applications/po/xds-desktop-files.pot
renamed:
  usr/share/xubuntu/applications/xubuntu-contribute.desktop => usr/share/xubuntu/applications/xubuntu-contribute.desktop.in
  usr/share/xubuntu/applications/xubuntu-website.desktop => usr/share/xubuntu/applications/xubuntu-website.desktop.in
modified:
  Makefile
  usr/share/xubuntu/applications/xubuntu-contribute.desktop.in
  usr/share/xubuntu/applications/xubuntu-website.desktop.in


--
lp:xubuntu-default-settings
https://code.launchpad.net/~xubuntu-dev/xubuntu-default-settings/trunk

Your team Xubuntu Team is subscribed to branch lp:xubuntu-default-settings.
To unsubscribe from this branch go to https://code.launchpad.net/~xubuntu-dev/xubuntu-default-settings/trunk/+edit-subscription
=== modified file 'Makefile'
--- Makefile	2011-07-02 13:25:35 +0000
+++ Makefile	2013-03-09 15:14:15 +0000
@@ -1,6 +1,6 @@
 #!/usr/bin/make -f
 
-SUBDIRS := etc/xdg/xdg-xubuntu/Thunar/po
+SUBDIRS := etc/xdg/xdg-xubuntu/Thunar/po usr/share/xubuntu/applications/po
 
 all:
 	@echo "Nothing to build, call 'make install' instead."

=== added directory 'usr/share/xubuntu/applications/po'
=== added file 'usr/share/xubuntu/applications/po/Makefile'
--- usr/share/xubuntu/applications/po/Makefile	1970-01-01 00:00:00 +0000
+++ usr/share/xubuntu/applications/po/Makefile	2013-03-09 15:14:15 +0000
@@ -0,0 +1,22 @@
+#!/usr/bin/make -f
+
+POTFILES := $(shell cat POTFILES.in)
+
+all: generate-xds-desktop-files
+
+generate-pot: POTFILES.in
+	intltool-update --pot --gettext-package=xds-desktop-files
+
+generate-xds-desktop-files:
+	for i in $(POTFILES); do \
+		f=$$(echo $$i | sed 's/\.in//'); \
+		intltool-merge -d . ../$$i ../$$f; \
+	done
+
+update-po:
+	for i in *.po; do \
+		code=$$(echo $$i | sed 's/.po//'); \
+		intltool-update --gettext-package=xds-desktop-files --dist $$code; \
+	done
+
+# vim:ts=4

=== added file 'usr/share/xubuntu/applications/po/POTFILES.in'
--- usr/share/xubuntu/applications/po/POTFILES.in	1970-01-01 00:00:00 +0000
+++ usr/share/xubuntu/applications/po/POTFILES.in	2013-03-09 15:14:15 +0000
@@ -0,0 +1,2 @@
+xubuntu-contribute.desktop.in
+xubuntu-website.desktop.in

=== added file 'usr/share/xubuntu/applications/po/xds-desktop-files.pot'
--- usr/share/xubuntu/applications/po/xds-desktop-files.pot	1970-01-01 00:00:00 +0000
+++ usr/share/xubuntu/applications/po/xds-desktop-files.pot	2013-03-09 15:14:15 +0000
@@ -0,0 +1,34 @@
+# SOME DESCRIPTIVE TITLE.
+# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
+# This file is distributed under the same license as the PACKAGE package.
+# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
+#
+#, fuzzy
+msgid ""
+msgstr ""
+"Project-Id-Version: PACKAGE VERSION\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-03-09 15:56+0100\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@xxxxxx>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../xubuntu-contribute.desktop.in.h:1
+msgid "Contribute to Xubuntu"
+msgstr ""
+
+#: ../xubuntu-contribute.desktop.in.h:2
+msgid "Read how you can make Xubuntu better!"
+msgstr ""
+
+#: ../xubuntu-website.desktop.in.h:1
+msgid "Xubuntu Website"
+msgstr ""
+
+#: ../xubuntu-website.desktop.in.h:2
+msgid "Learn more about Xubuntu on our website."
+msgstr ""

=== renamed file 'usr/share/xubuntu/applications/xubuntu-contribute.desktop' => 'usr/share/xubuntu/applications/xubuntu-contribute.desktop.in'
--- usr/share/xubuntu/applications/xubuntu-contribute.desktop	2013-03-03 22:38:47 +0000
+++ usr/share/xubuntu/applications/xubuntu-contribute.desktop.in	2013-03-09 15:14:15 +0000
@@ -7,5 +7,5 @@
 Terminal=false
 Categories=X-XFCE;X-Xfce-Toplevel;
 OnlyShowIn=XFCE;
-Name=Contribute to Xubuntu
-Comment=Read how you can make Xubuntu better!
+_Name=Contribute to Xubuntu
+_Comment=Read how you can make Xubuntu better!

=== renamed file 'usr/share/xubuntu/applications/xubuntu-website.desktop' => 'usr/share/xubuntu/applications/xubuntu-website.desktop.in'
--- usr/share/xubuntu/applications/xubuntu-website.desktop	2013-03-03 22:38:47 +0000
+++ usr/share/xubuntu/applications/xubuntu-website.desktop.in	2013-03-09 15:14:15 +0000
@@ -7,5 +7,5 @@
 Terminal=false
 Categories=X-XFCE;X-Xfce-Toplevel;
 OnlyShowIn=XFCE;
-Name=Xubuntu Website
-Comment=Learn more about Xubuntu on our website.
+_Name=Xubuntu Website
+_Comment=Learn more about Xubuntu on our website.