diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..213c97f --- /dev/null +++ b/Makefile @@ -0,0 +1,13 @@ +#!/usr/bin/make -f + +SUBDIRS := lubuntu/po/ + +all: install + +install: + for i in $(SUBDIRS); do \ + make -C $$i; \ + find $$i/../ -type f -iname "*.in" | xargs rm -f + done + +# vim:ts=4 diff --git a/debian/rules b/debian/rules index 2d33f6a..5942f9c 100755 --- a/debian/rules +++ b/debian/rules @@ -2,3 +2,7 @@ %: dh $@ + +override_dh_auto_build: + $(MAKE) + dh_auto_build diff --git a/lubuntu/calamares.desktop b/lubuntu/calamares.desktop.in similarity index 62% rename from lubuntu/calamares.desktop rename to lubuntu/calamares.desktop.in index a9796fe..a843194 100755 --- a/lubuntu/calamares.desktop +++ b/lubuntu/calamares.desktop.in @@ -2,10 +2,10 @@ [Desktop Entry] Type=Application Version=1.0 -Name=Install Lubuntu 18.10 -GenericName=Install Lubuntu +_Name=Install Lubuntu 18.10 +_GenericName=Install Lubuntu Exec=sudo calamares -Comment=Calamares — System Installer +_Comment=Calamares — System Installer Icon=calamares Terminal=false StartupNotify=true diff --git a/lubuntu/po/Makefile b/lubuntu/po/Makefile new file mode 100755 index 0000000..2138b4a --- /dev/null +++ b/lubuntu/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=calamares-settings-lubuntu + +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=calamares-settings-lubuntu --dist $$code; \ + done + +# vim:ts=4 diff --git a/lubuntu/po/POTFILES.in b/lubuntu/po/POTFILES.in new file mode 100644 index 0000000..d9c38b7 --- /dev/null +++ b/lubuntu/po/POTFILES.in @@ -0,0 +1 @@ +calamares.desktop.in diff --git a/lubuntu/po/calamares-settings-lubuntu.pot b/lubuntu/po/calamares-settings-lubuntu.pot new file mode 100644 index 0000000..ad677cb --- /dev/null +++ b/lubuntu/po/calamares-settings-lubuntu.pot @@ -0,0 +1,30 @@ +# Base translation file for Lubuntu's Calamares settings +# Copyright (C) 2018 Lubuntu Developers +# This file is distributed under the same license as the package. +# Simon Quigley , 2018. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-07-10 02:36-0500\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=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: ../calamares.desktop.in.h:1 +msgid "Install Lubuntu 18.10" +msgstr "" + +#: ../calamares.desktop.in.h:2 +msgid "Install Lubuntu" +msgstr "" + +#: ../calamares.desktop.in.h:3 +msgid "Calamares — System Installer" +msgstr ""