diff --git a/Makefile b/Makefile index 96e2b6c..2322409 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ #!/usr/bin/make -f -#SUBDIRS := +SUBDIRS := usr/share/applications/po all: install diff --git a/src/usr/share/applications/lubuntu-logout.desktop b/src/usr/share/applications/lubuntu-logout.desktop.in similarity index 63% rename from src/usr/share/applications/lubuntu-logout.desktop rename to src/usr/share/applications/lubuntu-logout.desktop.in index 29fc6b6..aa422cb 100644 --- a/src/usr/share/applications/lubuntu-logout.desktop +++ b/src/usr/share/applications/lubuntu-logout.desktop.in @@ -1,7 +1,6 @@ [Desktop Entry] -Name=Shutdown -Name[zh_TW]=關機 -Comment=Shutdown or Reboot +_Name=Shutdown +_Comment=Shutdown or Reboot Icon=system-shutdown-panel Exec=lxsession-default quit Type=Application diff --git a/src/usr/share/applications/lubuntu-nexus7-identica.desktop b/src/usr/share/applications/lubuntu-nexus7-identica.desktop.in similarity index 76% rename from src/usr/share/applications/lubuntu-nexus7-identica.desktop rename to src/usr/share/applications/lubuntu-nexus7-identica.desktop.in index fd29ec7..45c9b6f 100644 --- a/src/usr/share/applications/lubuntu-nexus7-identica.desktop +++ b/src/usr/share/applications/lubuntu-nexus7-identica.desktop.in @@ -1,6 +1,6 @@ [Desktop Entry] -Name=identi.ca -Comment=Launching identi.ca +_Name=identi.ca +_Comment=Launching identi.ca Icon=internet-web-browser Exec=chromium-browser --app=https://identi.ca/ Type=Application diff --git a/src/usr/share/applications/lubuntu-nexus7-rotate.desktop b/src/usr/share/applications/lubuntu-nexus7-rotate.desktop.in similarity index 51% rename from src/usr/share/applications/lubuntu-nexus7-rotate.desktop rename to src/usr/share/applications/lubuntu-nexus7-rotate.desktop.in index 70b2621..6b6a45b 100644 --- a/src/usr/share/applications/lubuntu-nexus7-rotate.desktop +++ b/src/usr/share/applications/lubuntu-nexus7-rotate.desktop.in @@ -1,6 +1,6 @@ [Desktop Entry] -Name=Rotate your screen -Comment=Rotate your screen using xrotate +_Name=Rotate your screen +_Comment=Rotate your screen using xrotate Icon=object-rotate-left Exec=xrotate Type=Application diff --git a/src/usr/share/applications/lubuntu-screenlock.desktop b/src/usr/share/applications/lubuntu-screenlock.desktop.in similarity index 56% rename from src/usr/share/applications/lubuntu-screenlock.desktop rename to src/usr/share/applications/lubuntu-screenlock.desktop.in index 5872d97..b85c1f1 100644 --- a/src/usr/share/applications/lubuntu-screenlock.desktop +++ b/src/usr/share/applications/lubuntu-screenlock.desktop.in @@ -1,7 +1,6 @@ [Desktop Entry] -Name=ScreenLock -Name[zh_TW]=鎖住螢幕 -Comment=Lock your screen +_Name=ScreenLock +_Comment=Lock your screen Icon=system-lock-screen Exec=lxlock NoDisplay=true diff --git a/src/usr/share/applications/po/Makefile b/src/usr/share/applications/po/Makefile new file mode 100644 index 0000000..146bee2 --- /dev/null +++ b/src/usr/share/applications/po/Makefile @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +POTFILES := $(shell cat POTFILES.in) + +all: generate-po-files + +generate-pot: POTFILES.in + intltool-update --pot --gettext-package=lubuntu-default-settings-files + +generate-po-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=lubuntu-default-settings-files --dist $$code; \ + done + +# vim:ts=4 diff --git a/src/usr/share/applications/po/POTFILES.in b/src/usr/share/applications/po/POTFILES.in new file mode 100644 index 0000000..43d0a3d --- /dev/null +++ b/src/usr/share/applications/po/POTFILES.in @@ -0,0 +1,4 @@ +lubuntu-logout.desktop.in +lubuntu-nexus7-identica.desktop.in +lubuntu-nexus7-rotate.desktop.in +lubuntu-screenlock.desktop.in diff --git a/src/usr/share/applications/po/lubuntu-default-settings-files.pot b/src/usr/share/applications/po/lubuntu-default-settings-files.pot new file mode 100644 index 0000000..7588776 --- /dev/null +++ b/src/usr/share/applications/po/lubuntu-default-settings-files.pot @@ -0,0 +1,50 @@ +# 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 , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2014-10-27 18:02+0100\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=CHARSET\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../lubuntu-logout.desktop.in.h:1 +msgid "Shutdown" +msgstr "" + +#: ../lubuntu-logout.desktop.in.h:2 +msgid "Shutdown or Reboot" +msgstr "" + +#: ../lubuntu-nexus7-identica.desktop.in.h:1 +msgid "identi.ca" +msgstr "" + +#: ../lubuntu-nexus7-identica.desktop.in.h:2 +msgid "Launching identi.ca" +msgstr "" + +#: ../lubuntu-nexus7-rotate.desktop.in.h:1 +msgid "Rotate your screen" +msgstr "" + +#: ../lubuntu-nexus7-rotate.desktop.in.h:2 +msgid "Rotate your screen using xrotate" +msgstr "" + +#: ../lubuntu-screenlock.desktop.in.h:1 +msgid "ScreenLock" +msgstr "" + +#: ../lubuntu-screenlock.desktop.in.h:2 +msgid "Lock your screen" +msgstr ""