Add translation support, thanks to Xubuntu people for the model

ubuntu/bionic
Julien Lavergne 10 years ago
parent 9527474d83
commit de9e703b6f

@ -1,6 +1,6 @@
#!/usr/bin/make -f
#SUBDIRS :=
SUBDIRS := usr/share/applications/po
all: install

@ -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

@ -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

@ -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

@ -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

@ -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

@ -0,0 +1,4 @@
lubuntu-logout.desktop.in
lubuntu-nexus7-identica.desktop.in
lubuntu-nexus7-rotate.desktop.in
lubuntu-screenlock.desktop.in

@ -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 <EMAIL@ADDRESS>, 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 <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"
#: ../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 ""
Loading…
Cancel
Save