Use intltool to translate desktop files LXDE.desktop and lxde-logout.desktop.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sat, 18 Oct 2014 20:13:02 +0000 (23:13 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sat, 18 Oct 2014 20:13:02 +0000 (23:13 +0300)
16 files changed:
LXDE.desktop.in [deleted file]
LXDE.desktop.in.in [new file with mode: 0644]
Makefile.am
autogen.sh
configure.ac
lxde-logout.desktop.in
po/POTFILES.in [new file with mode: 0644]
po/POTFILES.skip [new file with mode: 0644]
po/de.po [new file with mode: 0644]
po/fi.po [new file with mode: 0644]
po/ja.po [new file with mode: 0644]
po/lxde-common.pot [new file with mode: 0644]
po/pt.po [new file with mode: 0644]
po/ru.po [new file with mode: 0644]
po/uk.po [new file with mode: 0644]
po/zh_TW.po [new file with mode: 0644]

diff --git a/LXDE.desktop.in b/LXDE.desktop.in
deleted file mode 100644 (file)
index 4fafacb..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-[Desktop Entry]
-Encoding=UTF-8
-# The names/descriptions should really be better
-Name=LXDE
-Comment=LXDE - Lightweight X11 desktop environment
-Comment[de]=LXDE - Leichtgewichtige X11 Desktop-Umgebung
-Comment[fi]=LXDE - kevyt X11-työpöytäympäristö
-Comment[ja]=LXDE - 軽量な X11 デスクトップ環境
-Comment[pt]=LXDE - Ambiente de trabalho X11 leve
-Comment[zh_TW]=LXDE - 輕量級的 X11 桌面環境
-Exec=@prefix@/bin/startlxde
-# Icon=
-Type=Application
diff --git a/LXDE.desktop.in.in b/LXDE.desktop.in.in
new file mode 100644 (file)
index 0000000..fb71b99
--- /dev/null
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Encoding=UTF-8
+# The names/descriptions should really be better
+Name=LXDE
+_Comment=LXDE - Lightweight X11 desktop environment
+Exec=@prefix@/bin/startlxde
+# Icon=
+Type=Application
index ce6e785..d978ee4 100644 (file)
@@ -1,4 +1,4 @@
-SUBDIRS = man
+SUBDIRS = man po
 
 bin_SCRIPTS = startlxde lxde-logout openbox-lxde
 
@@ -9,8 +9,10 @@ xsession_DATA = LXDE.desktop
 defaultsdir=$(sysconfdir)/xdg/lxsession/LXDE
 defaults_DATA = autostart desktop.conf
 
-lxlogoutdir=$(datadir)/applications/
-lxlogout_DATA=lxde-logout.desktop
+desktopdir=$(datadir)/applications
+desktop_in_files = lxde-logout.desktop
+desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
+@INTLTOOL_DESKTOP_RULE@
 
 wallpapersdir=$(datadir)/lxde/wallpapers
 wallpapers_DATA= \
@@ -41,7 +43,8 @@ pcmanfm_DATA= \
 EXTRA_DIST = \
        autostart \
        desktop.conf \
-       LXDE.desktop.in \
+       LXDE.desktop.in.in \
+       lxde-logout.desktop.in \
        startlxde.in \
        $(wallpapers_DATA) \
        $(images_DATA) \
@@ -52,5 +55,5 @@ EXTRA_DIST = \
        $(lxpanel_DATA) \
        lxpanel/panel.in
 
-CLEANFILES = $(bin_SCRIPTS)
+CLEANFILES = $(bin_SCRIPTS) LXDE.desktop lxde-logout.desktop
 
index c78145f..ef6c8c5 100755 (executable)
@@ -23,6 +23,7 @@ if [ "x${ACLOCAL_DIR}" != "x" ]; then
 fi
 
 ${ACLOCAL:-aclocal$AM_VERSION} ${ACLOCAL_ARG}
+AUTOMAKE=$AUTOMAKE intltoolize -c --automake --force
 $AUTOMAKE --add-missing --copy --include-deps
 ${AUTOCONF:-autoconf$AC_VERSION}
 
index a77b20c..aaaf049 100644 (file)
@@ -45,17 +45,39 @@ then
     sysconfdir=/etc
 fi
 
+GETTEXT_PACKAGE=lxde-common
+AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of default gettext domain])
+AC_SUBST(GETTEXT_PACKAGE)
+
+# Generate po/LINGUAS on the fly rather than relying on translators
+# to maintain it manually. This also overcome the problem that Transifex
+# cannot add a language to po/LINGUAS if a new po file is submitted.
+rm -f $srcdir/po/LINGUAS
+for po_file in `ls $srcdir/po/*.po | sort`;
+do
+    lang=`echo "$po_file" | sed "s|.*/po/\(.*\)\.po|\1|g"`
+    echo $lang >> $srcdir/po/LINGUAS
+done
+
+AM_GLIB_GNU_GETTEXT
+
+IT_PROG_INTLTOOL([0.40.0])
+
+dnl dirty hack used to prevent the installation of useless mo files.
+USE_NLS=no
+AC_SUBST(USE_NLS)
+
 AC_OUTPUT([
   Makefile
   startlxde
   lxde-logout
-  LXDE.desktop
-  lxde-logout.desktop
+  LXDE.desktop.in
   lxpanel/panel
   openbox/rc.xml
   openbox-lxde
   pcmanfm/pcmanfm.conf
   man/Makefile
+  po/Makefile.in
 ])
 
 if test x"$sysconfdir" != x'/etc'; then
index 5745ff8..4340ec8 100644 (file)
@@ -1,16 +1,8 @@
 [Desktop Entry]
 Encoding=UTF-8
 Type=Application
-Name=Logout
-Name[de]=Abmelden
-Name[fi]=Kirjaudu ulos
-Name[pt]=Terminar sessão
-Name[zh_TW]=登出
-Comment=Logout, shutdown or reboot
-Comment[de]=Abmelden, herunterfahren oder neu starten
-Comment[fi]=Kirjaudu ulos, sammuta tai käynnistä tietokone uudelleen
-Comment[pt]=Terminar sessão, desligar ou reiniciar
-Comment[zh_TW]=登出、關機、或重新開機
+_Name=Logout
+_Comment=Logout, shutdown or reboot
 Icon=gnome-logout
 Exec=lxde-logout
 NoDisplay=true
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644 (file)
index 0000000..e7c78d0
--- /dev/null
@@ -0,0 +1,2 @@
+lxde-logout.desktop.in
+LXDE.desktop.in.in
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
new file mode 100644 (file)
index 0000000..42a95ea
--- /dev/null
@@ -0,0 +1,2 @@
+# Generated file
+LXDE.desktop.in
diff --git a/po/de.po b/po/de.po
new file mode 100644 (file)
index 0000000..8219dde
--- /dev/null
+++ b/po/de.po
@@ -0,0 +1,30 @@
+# 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: 2014-10-18 22:46+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../lxde-logout.desktop.in.h:1
+msgid "Logout"
+msgstr "Abmelden"
+
+#: ../lxde-logout.desktop.in.h:2
+msgid "Logout, shutdown or reboot"
+msgstr "Abmelden, herunterfahren oder neu starten"
+
+#: ../LXDE.desktop.in.h:1
+msgid "LXDE - Lightweight X11 desktop environment"
+msgstr "LXDE - Leichtgewichtige X11 Desktop-Umgebung"
diff --git a/po/fi.po b/po/fi.po
new file mode 100644 (file)
index 0000000..53b8133
--- /dev/null
+++ b/po/fi.po
@@ -0,0 +1,30 @@
+# 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: 2014-10-18 22:46+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../lxde-logout.desktop.in.h:1
+msgid "Logout"
+msgstr "Kirjaudu ulos"
+
+#: ../lxde-logout.desktop.in.h:2
+msgid "Logout, shutdown or reboot"
+msgstr "Kirjaudu ulos, sammuta tai käynnistä tietokone uudelleen"
+
+#: ../LXDE.desktop.in.h:1
+msgid "LXDE - Lightweight X11 desktop environment"
+msgstr "LXDE - kevyt X11-työpöytäympäristö"
diff --git a/po/ja.po b/po/ja.po
new file mode 100644 (file)
index 0000000..7fcb9fe
--- /dev/null
+++ b/po/ja.po
@@ -0,0 +1,30 @@
+# 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: 2014-10-18 22:46+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../lxde-logout.desktop.in.h:1
+msgid "Logout"
+msgstr ""
+
+#: ../lxde-logout.desktop.in.h:2
+msgid "Logout, shutdown or reboot"
+msgstr ""
+
+#: ../LXDE.desktop.in.h:1
+msgid "LXDE - Lightweight X11 desktop environment"
+msgstr "LXDE - 軽量な X11 デスクトップ環境"
diff --git a/po/lxde-common.pot b/po/lxde-common.pot
new file mode 100644 (file)
index 0000000..f0a6ecf
--- /dev/null
@@ -0,0 +1,30 @@
+# 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: 2014-10-18 22:59+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=CHARSET\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../lxde-logout.desktop.in.h:1
+msgid "Logout"
+msgstr ""
+
+#: ../lxde-logout.desktop.in.h:2
+msgid "Logout, shutdown or reboot"
+msgstr ""
+
+#: ../LXDE.desktop.in.h:1
+msgid "LXDE - Lightweight X11 desktop environment"
+msgstr ""
diff --git a/po/pt.po b/po/pt.po
new file mode 100644 (file)
index 0000000..fa084f0
--- /dev/null
+++ b/po/pt.po
@@ -0,0 +1,30 @@
+# 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: 2014-10-18 22:46+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../lxde-logout.desktop.in.h:1
+msgid "Logout"
+msgstr "Terminar sessão"
+
+#: ../lxde-logout.desktop.in.h:2
+msgid "Logout, shutdown or reboot"
+msgstr "Terminar sessão, desligar ou reiniciar"
+
+#: ../LXDE.desktop.in.h:1
+msgid "LXDE - Lightweight X11 desktop environment"
+msgstr "LXDE - Ambiente de trabalho X11 leve"
diff --git a/po/ru.po b/po/ru.po
new file mode 100644 (file)
index 0000000..55fbdfa
--- /dev/null
+++ b/po/ru.po
@@ -0,0 +1,28 @@
+# 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.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: lxde-common\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-10-18 22:46+0300\n"
+"PO-Revision-Date: 2014-10-18 22:55+0300\n"
+"Last-Translator: Andriy Grytsenko <andrej@rep.kiev.ua>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../lxde-logout.desktop.in.h:1
+msgid "Logout"
+msgstr "Виход"
+
+#: ../lxde-logout.desktop.in.h:2
+msgid "Logout, shutdown or reboot"
+msgstr "Выйти, выключить или перезапустить"
+
+#: ../LXDE.desktop.in.h:1
+msgid "LXDE - Lightweight X11 desktop environment"
+msgstr "LXDE - Легковесное окружение рабочего стола X11"
diff --git a/po/uk.po b/po/uk.po
new file mode 100644 (file)
index 0000000..e2747de
--- /dev/null
+++ b/po/uk.po
@@ -0,0 +1,28 @@
+# 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.
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: lxde-common\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-10-18 22:46+0300\n"
+"PO-Revision-Date: 2014-10-18 22:54+0300\n"
+"Last-Translator: Andriy Grytsenko <andrej@rep.kiev.ua>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../lxde-logout.desktop.in.h:1
+msgid "Logout"
+msgstr "Вихід"
+
+#: ../lxde-logout.desktop.in.h:2
+msgid "Logout, shutdown or reboot"
+msgstr "Вийти, вимкнути або перезавантажити"
+
+#: ../LXDE.desktop.in.h:1
+msgid "LXDE - Lightweight X11 desktop environment"
+msgstr "LXDE - Легке середовище стільниці X11"
diff --git a/po/zh_TW.po b/po/zh_TW.po
new file mode 100644 (file)
index 0000000..5fd6bd8
--- /dev/null
@@ -0,0 +1,30 @@
+# 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: 2014-10-18 22:46+0300\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
+"Language-Team: LANGUAGE <LL@li.org>\n"
+"Language: \n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../lxde-logout.desktop.in.h:1
+msgid "Logout"
+msgstr "登出"
+
+#: ../lxde-logout.desktop.in.h:2
+msgid "Logout, shutdown or reboot"
+msgstr "登出、關機、或重新開機"
+
+#: ../LXDE.desktop.in.h:1
+msgid "LXDE - Lightweight X11 desktop environment"
+msgstr "LXDE - 輕量級的 X11 桌面環境"