diff options
Diffstat (limited to '')
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 20 | ||||
-rwxr-xr-x | aux/workflow/l10n.sh | 109 | ||||
-rw-r--r-- | po/LC_MESSAGES/CHANGELOG.en.md/eo.po | 8 | ||||
-rw-r--r-- | po/LC_MESSAGES/CHANGELOG.en.md/es.po | 8 | ||||
-rw-r--r-- | po/LC_MESSAGES/CHANGELOG.en.md/fr.po | 8 | ||||
-rw-r--r-- | po/LC_MESSAGES/CHANGELOG.en.md/pt.po | 8 | ||||
-rw-r--r-- | po/LC_MESSAGES/README.en.md/eo.po | 128 | ||||
-rw-r--r-- | po/LC_MESSAGES/README.en.md/es.po | 128 | ||||
-rw-r--r-- | po/LC_MESSAGES/README.en.md/fr.po | 128 | ||||
-rw-r--r-- | po/LC_MESSAGES/README.en.md/pt.po | 128 |
11 files changed, 672 insertions, 3 deletions
@@ -1,3 +1,5 @@ /public/ /dependencies.svg /paku.html +/README.*.md +/CHANGELOG.*.md @@ -1,6 +1,9 @@ .POSIX: NAME = package-repository +NAME_UC = EuAndreh's package repository MAILING_LIST = public-inbox +TRANSLATIONS = pt fr eo es +CONTRIBLANGS = guix-sources = \ src/xyz/euandreh/queue.scm \ @@ -26,7 +29,8 @@ dev-check: check sh aux/workflow/assert-readme.sh -n $(NAME) -m $(MAILING_LIST) clean: - rm -rf public/ + rm -rf \ + public/ README.*.md CHANGELOG.*.md messages.mo public/dependencies.svg: dependencies.dot mkdir -p public @@ -36,6 +40,16 @@ public/paku.html: paku.json mkdir -p public sh scripts/paku -l -public: README.md TODOs.md public/dependencies.svg public/paku.html - sh aux/workflow/public.sh -N "EuAndreh's package repository" -n $(NAME) -m $(MAILING_LIST) -o public +README.en.md: README.md + ln -fs $? $@ + +CHANGELOG.en.md: CHANGELOG.md + ln -fs $? $@ + +l10n-gen: README.en.md CHANGELOG.en.md + sh aux/workflow/l10n.sh -l '$(TRANSLATIONS)' -L '$(CONTRIBLANGS)' $? + +public: l10n-gen all TODOs.md public/dependencies.svg public/paku.html + sh aux/workflow/public.sh -l '$(TRANSLATIONS) $(CONTRIBLANGS) en' \ + -N "$(NAME_UC)" -n $(NAME) -m $(MAILING_LIST) -o public cp EuAndreh.key public/ diff --git a/aux/workflow/l10n.sh b/aux/workflow/l10n.sh new file mode 100755 index 0000000..cb132a3 --- /dev/null +++ b/aux/workflow/l10n.sh @@ -0,0 +1,109 @@ +#!/bin/sh +set -eu + +LANGS= +MAX_JOBS=64 +while getopts 'l:L:j:' flag; do + case "$flag" in + l) + LANGS="$OPTARG" + ;; + L) + CONTRIBLANGS="$OPTARG" + ;; + j) + MAX_JOBS="$OPTARG" + ;; + *) + exit 2 + ;; + esac +done +shift $((OPTIND - 1)) + +assert_arg() { + if [ -z "$1" ]; then + echo "Missing $2" >&2 + exit 2 + fi +} + +assert_arg "${LANGS:-}" '-l LANGS' + +PARALLEL_N=0 +parallel_run() { + { + "$@" + } & + PARALLEL_N=$((PARALLEL_N + 1)) + if [ "$PARALLEL_N" = "$MAX_JOBS" ]; then + wait + PARALLEL_N=0 + fi +} + +po_run() { + from_f="$1" + lang="$2" + to_f="$(echo "$from_f" | sed "s/en\./$lang./")" + printf 'Generating %s...\n' "$to_f" >&2 + pofile="po/LC_MESSAGES/$from_f/$lang.po" + mkdir -p "$(dirname "$pofile")" + + case "$from_f" in + *.en.[1-9].in) + po4a-updatepo -f man -m "$from_f" -p "$pofile" + po4a-translate -f man -m "$from_f" \ + -p "$pofile" -l "$to_f" -k 0 -v >&2 + ;; + *.en.html) + po4a-updatepo -f xhtml -m "$from_f" -p "$pofile" + po4a-translate -f xhtml -m "$from_f" \ + -p "$pofile" -l "$to_f" -k 0 -v >&2 + ;; + *.en.md) + touch "$pofile" + md2po --include-codeblocks --quiet --save \ + --po-filepath "$pofile" < "$from_f" + po2md --pofiles "$pofile" --save "$to_f" \ + --quiet --wrapwidth 999 < "$from_f" + ;; + *.en.msg|*.en.txt) + po4a-updatepo -f text -m "$from_f" -p "$pofile" + po4a-translate -f text -m "$from_f" \ + -p "$pofile" -l "$to_f" -k 0 -v >&2 + ;; + *) + echo "Unsupported file format: $from_f" >&2 + exit 2 + ;; + esac +} + +for from_f in "$@"; do + for lang in $LANGS ${CONTRIBLANGS:-}; do + parallel_run po_run "$from_f" "$lang" + done +done + +EXIT_CODE=0 + +end="\033[0m" +yellowb="\033[1;33m" +for lang in $LANGS; do + # shellcheck disable=2044 + for pofile in $(find po/ -type f -name "$lang.po"); do + if ! LANG=POSIX msgfmt --statistics "$pofile" 2>&1 | + grep untranslated; then + continue + fi + # shellcheck disable=2059 + printf "\n ${yellowb}WARNING${end}!" >&2 + printf "\n Missing translations for %s\n\n" "$pofile" >&2 + EXIT_CODE=1 + done +done + +if [ -n "${ASSERT_NO_MISSING_TRANSLATIONS:-}" ]; then + exit "$EXIT_CODE" +fi diff --git a/po/LC_MESSAGES/CHANGELOG.en.md/eo.po b/po/LC_MESSAGES/CHANGELOG.en.md/eo.po new file mode 100644 index 0000000..5795e64 --- /dev/null +++ b/po/LC_MESSAGES/CHANGELOG.en.md/eo.po @@ -0,0 +1,8 @@ +# +msgid "" +msgstr "" + +msgid "" +"Changelog for [package-repository](https://euandreh.xyz/package-" +"repository/en/)." +msgstr "" diff --git a/po/LC_MESSAGES/CHANGELOG.en.md/es.po b/po/LC_MESSAGES/CHANGELOG.en.md/es.po new file mode 100644 index 0000000..5795e64 --- /dev/null +++ b/po/LC_MESSAGES/CHANGELOG.en.md/es.po @@ -0,0 +1,8 @@ +# +msgid "" +msgstr "" + +msgid "" +"Changelog for [package-repository](https://euandreh.xyz/package-" +"repository/en/)." +msgstr "" diff --git a/po/LC_MESSAGES/CHANGELOG.en.md/fr.po b/po/LC_MESSAGES/CHANGELOG.en.md/fr.po new file mode 100644 index 0000000..5795e64 --- /dev/null +++ b/po/LC_MESSAGES/CHANGELOG.en.md/fr.po @@ -0,0 +1,8 @@ +# +msgid "" +msgstr "" + +msgid "" +"Changelog for [package-repository](https://euandreh.xyz/package-" +"repository/en/)." +msgstr "" diff --git a/po/LC_MESSAGES/CHANGELOG.en.md/pt.po b/po/LC_MESSAGES/CHANGELOG.en.md/pt.po new file mode 100644 index 0000000..5795e64 --- /dev/null +++ b/po/LC_MESSAGES/CHANGELOG.en.md/pt.po @@ -0,0 +1,8 @@ +# +msgid "" +msgstr "" + +msgid "" +"Changelog for [package-repository](https://euandreh.xyz/package-" +"repository/en/)." +msgstr "" diff --git a/po/LC_MESSAGES/README.en.md/eo.po b/po/LC_MESSAGES/README.en.md/eo.po new file mode 100644 index 0000000..fa9bb95 --- /dev/null +++ b/po/LC_MESSAGES/README.en.md/eo.po @@ -0,0 +1,128 @@ +# +msgid "" +msgstr "" + +msgid "EuAndreh's package-repository" +msgstr "" + +msgid "" +"Personal package repository for a variety of operating systems, mainly for " +"packaging personal projects of mine and make it available for users and " +"packagers." +msgstr "" + +msgid "See the list of packages [online][online]." +msgstr "" + +msgid "How to add this to different OSes" +msgstr "" + +msgid "Guix" +msgstr "" + +msgid "Add this channel to your `~/.config/guix/channels.scm`:" +msgstr "" + +msgid "" +"(cons*\n" +" (channel\n" +" (name 'xyz-euandreh)\n" +" (url \"git://euandreh.xyz/package-repository\")\n" +" (branch \"main\")\n" +" (introduction\n" +" (make-channel-introduction\n" +" \"d749e053e6db365069cb9b2ef47a78b06f9e7361\"\n" +" (openpgp-fingerprint\n" +" \"5BDA E9B8 B2F6 C6BC BB0D 6CE5 81F9 0EC3 CD35 6060\"))))\n" +" %default-channels)\n" +msgstr "" + +msgid "" +"See also the Guix manual for usage on channels: " +"[https://guix.gnu.org/manual/en/guix.html#Channels](https://guix.gnu.org/manual/en/guix.html#Channels)" +msgstr "" + +msgid "NixOS" +msgstr "" + +msgid "Adding the overlay to your `/etc/nixos/configuration.nix`:" +msgstr "" + +msgid "" +" nixpkgs = {\n" +" overlays = [\n" +" (import (fetchTarball {\n" +" url = \"https://euandreh.xyz/package-repository.git/snapshot/package-repository-main.tar.gz\";\n" +" }) { inherit pkgs; })\n" +" ];\n" +" };\n" +msgstr "" + +msgid "Contributing" +msgstr "" + +msgid "For running the extra development-only checks, run:" +msgstr "" + +msgid "$ make dev-check\n" +msgstr "" + +msgid "and for generating the documentation HTML and website, run:" +msgstr "" + +msgid "$ make public\n" +msgstr "" + +msgid "" +"Send contributions to the [mailing list][mailing list] via [`git send-" +"email`](https://git-send-email.io/)." +msgstr "" + +msgid "Links" +msgstr "" + +msgid "[homepage](https://euandreh.xyz/package-repository/en/)" +msgstr "" + +msgid "[source code](https://euandreh.xyz/package-repository.git/)" +msgstr "" + +msgid "[bug tracking](https://euandreh.xyz/package-repository/TODOs.html)" +msgstr "" + +msgid "[mailing list][mailing list]" +msgstr "" + +msgid "[CI logs](https://euandreh.xyz/package-repository/ci.html)" +msgstr "" + +msgid "[CHANGELOG](https://euandreh.xyz/package-repository/en/CHANGELOG.html)" +msgstr "" + +msgid "License" +msgstr "" + +msgid "" +"The code is licensed under [GNU Affero General Public License v3.0 or " +"later][AGPL-3.0-or-later] (AGPL-3.0-or-later)." +msgstr "" + +#, fuzzy +msgid "[online]: https://euandreh.xyz/package-repository/paku.html" +msgstr "[online]: https://euandreh.xyz/package-repository/paku.html" + +#, fuzzy +msgid "" +"[mailing list]: https://lists.sr.ht/~euandreh/public-" +"inbox?search=%5Bpackage-repository%5D" +msgstr "" +"[mailing list]: https://lists.sr.ht/~euandreh/public-" +"inbox?search=%5Bpackage-repository%5D" + +#, fuzzy +msgid "" +"[AGPL-3.0-or-later]: https://euandreh.xyz/package-" +"repository.git/tree/COPYING" +msgstr "" +"[AGPL-3.0-or-later]: https://euandreh.xyz/package-" +"repository.git/tree/COPYING" diff --git a/po/LC_MESSAGES/README.en.md/es.po b/po/LC_MESSAGES/README.en.md/es.po new file mode 100644 index 0000000..fa9bb95 --- /dev/null +++ b/po/LC_MESSAGES/README.en.md/es.po @@ -0,0 +1,128 @@ +# +msgid "" +msgstr "" + +msgid "EuAndreh's package-repository" +msgstr "" + +msgid "" +"Personal package repository for a variety of operating systems, mainly for " +"packaging personal projects of mine and make it available for users and " +"packagers." +msgstr "" + +msgid "See the list of packages [online][online]." +msgstr "" + +msgid "How to add this to different OSes" +msgstr "" + +msgid "Guix" +msgstr "" + +msgid "Add this channel to your `~/.config/guix/channels.scm`:" +msgstr "" + +msgid "" +"(cons*\n" +" (channel\n" +" (name 'xyz-euandreh)\n" +" (url \"git://euandreh.xyz/package-repository\")\n" +" (branch \"main\")\n" +" (introduction\n" +" (make-channel-introduction\n" +" \"d749e053e6db365069cb9b2ef47a78b06f9e7361\"\n" +" (openpgp-fingerprint\n" +" \"5BDA E9B8 B2F6 C6BC BB0D 6CE5 81F9 0EC3 CD35 6060\"))))\n" +" %default-channels)\n" +msgstr "" + +msgid "" +"See also the Guix manual for usage on channels: " +"[https://guix.gnu.org/manual/en/guix.html#Channels](https://guix.gnu.org/manual/en/guix.html#Channels)" +msgstr "" + +msgid "NixOS" +msgstr "" + +msgid "Adding the overlay to your `/etc/nixos/configuration.nix`:" +msgstr "" + +msgid "" +" nixpkgs = {\n" +" overlays = [\n" +" (import (fetchTarball {\n" +" url = \"https://euandreh.xyz/package-repository.git/snapshot/package-repository-main.tar.gz\";\n" +" }) { inherit pkgs; })\n" +" ];\n" +" };\n" +msgstr "" + +msgid "Contributing" +msgstr "" + +msgid "For running the extra development-only checks, run:" +msgstr "" + +msgid "$ make dev-check\n" +msgstr "" + +msgid "and for generating the documentation HTML and website, run:" +msgstr "" + +msgid "$ make public\n" +msgstr "" + +msgid "" +"Send contributions to the [mailing list][mailing list] via [`git send-" +"email`](https://git-send-email.io/)." +msgstr "" + +msgid "Links" +msgstr "" + +msgid "[homepage](https://euandreh.xyz/package-repository/en/)" +msgstr "" + +msgid "[source code](https://euandreh.xyz/package-repository.git/)" +msgstr "" + +msgid "[bug tracking](https://euandreh.xyz/package-repository/TODOs.html)" +msgstr "" + +msgid "[mailing list][mailing list]" +msgstr "" + +msgid "[CI logs](https://euandreh.xyz/package-repository/ci.html)" +msgstr "" + +msgid "[CHANGELOG](https://euandreh.xyz/package-repository/en/CHANGELOG.html)" +msgstr "" + +msgid "License" +msgstr "" + +msgid "" +"The code is licensed under [GNU Affero General Public License v3.0 or " +"later][AGPL-3.0-or-later] (AGPL-3.0-or-later)." +msgstr "" + +#, fuzzy +msgid "[online]: https://euandreh.xyz/package-repository/paku.html" +msgstr "[online]: https://euandreh.xyz/package-repository/paku.html" + +#, fuzzy +msgid "" +"[mailing list]: https://lists.sr.ht/~euandreh/public-" +"inbox?search=%5Bpackage-repository%5D" +msgstr "" +"[mailing list]: https://lists.sr.ht/~euandreh/public-" +"inbox?search=%5Bpackage-repository%5D" + +#, fuzzy +msgid "" +"[AGPL-3.0-or-later]: https://euandreh.xyz/package-" +"repository.git/tree/COPYING" +msgstr "" +"[AGPL-3.0-or-later]: https://euandreh.xyz/package-" +"repository.git/tree/COPYING" diff --git a/po/LC_MESSAGES/README.en.md/fr.po b/po/LC_MESSAGES/README.en.md/fr.po new file mode 100644 index 0000000..fa9bb95 --- /dev/null +++ b/po/LC_MESSAGES/README.en.md/fr.po @@ -0,0 +1,128 @@ +# +msgid "" +msgstr "" + +msgid "EuAndreh's package-repository" +msgstr "" + +msgid "" +"Personal package repository for a variety of operating systems, mainly for " +"packaging personal projects of mine and make it available for users and " +"packagers." +msgstr "" + +msgid "See the list of packages [online][online]." +msgstr "" + +msgid "How to add this to different OSes" +msgstr "" + +msgid "Guix" +msgstr "" + +msgid "Add this channel to your `~/.config/guix/channels.scm`:" +msgstr "" + +msgid "" +"(cons*\n" +" (channel\n" +" (name 'xyz-euandreh)\n" +" (url \"git://euandreh.xyz/package-repository\")\n" +" (branch \"main\")\n" +" (introduction\n" +" (make-channel-introduction\n" +" \"d749e053e6db365069cb9b2ef47a78b06f9e7361\"\n" +" (openpgp-fingerprint\n" +" \"5BDA E9B8 B2F6 C6BC BB0D 6CE5 81F9 0EC3 CD35 6060\"))))\n" +" %default-channels)\n" +msgstr "" + +msgid "" +"See also the Guix manual for usage on channels: " +"[https://guix.gnu.org/manual/en/guix.html#Channels](https://guix.gnu.org/manual/en/guix.html#Channels)" +msgstr "" + +msgid "NixOS" +msgstr "" + +msgid "Adding the overlay to your `/etc/nixos/configuration.nix`:" +msgstr "" + +msgid "" +" nixpkgs = {\n" +" overlays = [\n" +" (import (fetchTarball {\n" +" url = \"https://euandreh.xyz/package-repository.git/snapshot/package-repository-main.tar.gz\";\n" +" }) { inherit pkgs; })\n" +" ];\n" +" };\n" +msgstr "" + +msgid "Contributing" +msgstr "" + +msgid "For running the extra development-only checks, run:" +msgstr "" + +msgid "$ make dev-check\n" +msgstr "" + +msgid "and for generating the documentation HTML and website, run:" +msgstr "" + +msgid "$ make public\n" +msgstr "" + +msgid "" +"Send contributions to the [mailing list][mailing list] via [`git send-" +"email`](https://git-send-email.io/)." +msgstr "" + +msgid "Links" +msgstr "" + +msgid "[homepage](https://euandreh.xyz/package-repository/en/)" +msgstr "" + +msgid "[source code](https://euandreh.xyz/package-repository.git/)" +msgstr "" + +msgid "[bug tracking](https://euandreh.xyz/package-repository/TODOs.html)" +msgstr "" + +msgid "[mailing list][mailing list]" +msgstr "" + +msgid "[CI logs](https://euandreh.xyz/package-repository/ci.html)" +msgstr "" + +msgid "[CHANGELOG](https://euandreh.xyz/package-repository/en/CHANGELOG.html)" +msgstr "" + +msgid "License" +msgstr "" + +msgid "" +"The code is licensed under [GNU Affero General Public License v3.0 or " +"later][AGPL-3.0-or-later] (AGPL-3.0-or-later)." +msgstr "" + +#, fuzzy +msgid "[online]: https://euandreh.xyz/package-repository/paku.html" +msgstr "[online]: https://euandreh.xyz/package-repository/paku.html" + +#, fuzzy +msgid "" +"[mailing list]: https://lists.sr.ht/~euandreh/public-" +"inbox?search=%5Bpackage-repository%5D" +msgstr "" +"[mailing list]: https://lists.sr.ht/~euandreh/public-" +"inbox?search=%5Bpackage-repository%5D" + +#, fuzzy +msgid "" +"[AGPL-3.0-or-later]: https://euandreh.xyz/package-" +"repository.git/tree/COPYING" +msgstr "" +"[AGPL-3.0-or-later]: https://euandreh.xyz/package-" +"repository.git/tree/COPYING" diff --git a/po/LC_MESSAGES/README.en.md/pt.po b/po/LC_MESSAGES/README.en.md/pt.po new file mode 100644 index 0000000..fa9bb95 --- /dev/null +++ b/po/LC_MESSAGES/README.en.md/pt.po @@ -0,0 +1,128 @@ +# +msgid "" +msgstr "" + +msgid "EuAndreh's package-repository" +msgstr "" + +msgid "" +"Personal package repository for a variety of operating systems, mainly for " +"packaging personal projects of mine and make it available for users and " +"packagers." +msgstr "" + +msgid "See the list of packages [online][online]." +msgstr "" + +msgid "How to add this to different OSes" +msgstr "" + +msgid "Guix" +msgstr "" + +msgid "Add this channel to your `~/.config/guix/channels.scm`:" +msgstr "" + +msgid "" +"(cons*\n" +" (channel\n" +" (name 'xyz-euandreh)\n" +" (url \"git://euandreh.xyz/package-repository\")\n" +" (branch \"main\")\n" +" (introduction\n" +" (make-channel-introduction\n" +" \"d749e053e6db365069cb9b2ef47a78b06f9e7361\"\n" +" (openpgp-fingerprint\n" +" \"5BDA E9B8 B2F6 C6BC BB0D 6CE5 81F9 0EC3 CD35 6060\"))))\n" +" %default-channels)\n" +msgstr "" + +msgid "" +"See also the Guix manual for usage on channels: " +"[https://guix.gnu.org/manual/en/guix.html#Channels](https://guix.gnu.org/manual/en/guix.html#Channels)" +msgstr "" + +msgid "NixOS" +msgstr "" + +msgid "Adding the overlay to your `/etc/nixos/configuration.nix`:" +msgstr "" + +msgid "" +" nixpkgs = {\n" +" overlays = [\n" +" (import (fetchTarball {\n" +" url = \"https://euandreh.xyz/package-repository.git/snapshot/package-repository-main.tar.gz\";\n" +" }) { inherit pkgs; })\n" +" ];\n" +" };\n" +msgstr "" + +msgid "Contributing" +msgstr "" + +msgid "For running the extra development-only checks, run:" +msgstr "" + +msgid "$ make dev-check\n" +msgstr "" + +msgid "and for generating the documentation HTML and website, run:" +msgstr "" + +msgid "$ make public\n" +msgstr "" + +msgid "" +"Send contributions to the [mailing list][mailing list] via [`git send-" +"email`](https://git-send-email.io/)." +msgstr "" + +msgid "Links" +msgstr "" + +msgid "[homepage](https://euandreh.xyz/package-repository/en/)" +msgstr "" + +msgid "[source code](https://euandreh.xyz/package-repository.git/)" +msgstr "" + +msgid "[bug tracking](https://euandreh.xyz/package-repository/TODOs.html)" +msgstr "" + +msgid "[mailing list][mailing list]" +msgstr "" + +msgid "[CI logs](https://euandreh.xyz/package-repository/ci.html)" +msgstr "" + +msgid "[CHANGELOG](https://euandreh.xyz/package-repository/en/CHANGELOG.html)" +msgstr "" + +msgid "License" +msgstr "" + +msgid "" +"The code is licensed under [GNU Affero General Public License v3.0 or " +"later][AGPL-3.0-or-later] (AGPL-3.0-or-later)." +msgstr "" + +#, fuzzy +msgid "[online]: https://euandreh.xyz/package-repository/paku.html" +msgstr "[online]: https://euandreh.xyz/package-repository/paku.html" + +#, fuzzy +msgid "" +"[mailing list]: https://lists.sr.ht/~euandreh/public-" +"inbox?search=%5Bpackage-repository%5D" +msgstr "" +"[mailing list]: https://lists.sr.ht/~euandreh/public-" +"inbox?search=%5Bpackage-repository%5D" + +#, fuzzy +msgid "" +"[AGPL-3.0-or-later]: https://euandreh.xyz/package-" +"repository.git/tree/COPYING" +msgstr "" +"[AGPL-3.0-or-later]: https://euandreh.xyz/package-" +"repository.git/tree/COPYING" |