From 8d750ce02f00531871737e8afeb2805af6e221a3 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Sat, 4 Nov 2023 17:42:08 +0000 Subject: Add support for i18n. --- po/Makefile | 32 +++++++++ po/POTFILES.in | 1 + po/qarepo.pot | 202 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 235 insertions(+) create mode 100644 po/Makefile create mode 100644 po/POTFILES.in create mode 100644 po/qarepo.pot (limited to 'po') diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 0000000..d8bc7c9 --- /dev/null +++ b/po/Makefile @@ -0,0 +1,32 @@ +NAME = qarepo + +localedir = ${prefix}/share/locale + +PL_FILE = ../$(NAME) +DT_FILE = ../$(NAME).desktop.in + +POFILES = $(wildcard *.po) +MOFILES = $(POFILES:%.po=%.mo) +LANGS = $(POFILES:%.po=%) + +all: $(NAME).pot $(POFILES) $(MOFILES) + +%.mo: %.po + msgfmt -o $@ $< + +update: $(NAME).pot + +$(NAME).pot: $(PL_FILE) $(DT_FILE) + xgettext --language=perl --keyword=__ --output tmp1.pot $(PL_FILE) + intltool-update --pot --gettext-package tmp2 + msgcat --use-first tmp1.pot tmp2.pot > $@ + @rm -r tmp*.pot + +install: all + for l in $(LANGS); do \ + install -d $(localedir)/$$l/LC_MESSAGES; \ + install -m 644 $$l.mo $(localedir)/$$l/LC_MESSAGES/$(NAME).mo; \ + done + +clean: + @rm -rf *.mo $(POFILES:%=%t) diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..91d6cca --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1 @@ +qarepo.desktop.in diff --git a/po/qarepo.pot b/po/qarepo.pot new file mode 100644 index 0000000..1459480 --- /dev/null +++ b/po/qarepo.pot @@ -0,0 +1,202 @@ +# 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: 2023-11-04 17:40+0000\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" + +#: ../qarepo:40 +msgid "Disabled" +msgstr "" + +#: ../qarepo:41 +msgid "Enabled" +msgstr "" + +#: ../qarepo:42 +msgid "Needs update" +msgstr "" + +#: ../qarepo:43 +msgid "Update failed" +msgstr "" + +#: ../qarepo:89 +msgid "*** application will terminate ***" +msgstr "" + +#: ../qarepo:100 +msgid "Mirror:" +msgstr "" + +#: ../qarepo:103 +msgid "Release:" +msgstr "" + +#: ../qarepo:106 +msgid "QA Repo:" +msgstr "" + +#: ../qarepo:109 +msgid "Arch:" +msgstr "" + +#: ../qarepo:112 +msgid "RPMs:" +msgstr "" + +#: ../qarepo:117 +msgid "Status:" +msgstr "" + +#: ../qarepo:120 +msgid "Quit" +msgstr "" + +#: ../qarepo:121 +msgid "Disable" +msgstr "" + +#: ../qarepo:122 ../qarepo:417 +msgid "Enable" +msgstr "" + +#: ../qarepo:123 +msgid "Clear" +msgstr "" + +#: ../qarepo:124 ../qarepo:734 +msgid "Downgrade" +msgstr "" + +#: ../qarepo:130 +msgid "" +"fuzzy\n" +"version" +msgstr "" + +#: ../qarepo:131 +msgid "" +"add\n" +"deps" +msgstr "" + +#: ../qarepo:252 +msgid "Dismiss" +msgstr "" + +#: ../qarepo:329 +msgid "This may enable unwanted packages to be installed." +msgstr "" + +#: ../qarepo:356 +msgid "This may stop some packages from being downgraded." +msgstr "" + +#: ../qarepo:381 +msgid "Some updates_testing media are enabled." +msgstr "" + +#: ../qarepo:382 +msgid "Please disable these media and try again." +msgstr "" + +#: ../qarepo:415 +msgid "Update" +msgstr "" + +#: ../qarepo:468 +msgid "couldn't disable the local repository ['" +msgstr "" + +#: ../qarepo:479 +msgid "couldn't enable the local repository ['" +msgstr "" + +#: ../qarepo:489 +msgid "couldn't update the local repository ['" +msgstr "" + +#: ../qarepo:501 +msgid "couldn't delete existing RPMs in the local repository" +msgstr "" + +#: ../qarepo:511 +msgid "Updating" +msgstr "" + +#: ../qarepo:522 +msgid "unsupported mirror URL type" +msgstr "" + +#: ../qarepo:571 +msgid "couldn't delete the downloaded synthesis file [" +msgstr "" + +#: ../qarepo:591 +msgid " was not found in the remote repository" +msgstr "" + +#: ../qarepo:617 +msgid "couldn't delete the old pubkey in the local repository" +msgstr "" + +#: ../qarepo:642 +msgid "failed to download all the files" +msgstr "" + +#: ../qarepo:645 +msgid "failed to update hdlist" +msgstr "" + +#: ../qarepo:658 ../qarepo:665 +msgid "fetching " +msgstr "" + +#: ../qarepo:660 ../qarepo:673 +msgid "failed to download file [" +msgstr "" + +#: ../qarepo:679 +msgid "failed to link to file [" +msgstr "" + +#: ../qarepo:692 +msgid "no synthesis file found in the local repository" +msgstr "" + +#: ../qarepo:713 +msgid "none of the listed packages are installed" +msgstr "" + +#: ../qarepo:735 +msgid "The following command may be used to downgrade the listed packages:" +msgstr "" + +#: ../qarepo:742 +msgid "Error" +msgstr "" + +#: ../qarepo:743 +msgid "The following error(s) occurred:" +msgstr "" + +#: ../qarepo:751 +msgid "ERROR: " +msgstr "" + +#: ../qarepo.desktop.in.h:1 +msgid "Tool for creating a local testing repository" +msgstr "" -- cgit v1.2.1