From 85c6548b821f79117c68682774baddff0cb536c7 Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Sat, 28 Nov 2020 09:59:57 +0100 Subject: [PATCH] add translation files --- CHANGELOG.md | 2 + Makefile | 4 + README.md | 5 +- Release.md | 64 ++------- translationfiles/templates/radio.pot | 186 +++++++++++++++++++++++++++ 5 files changed, 206 insertions(+), 55 deletions(-) create mode 100644 translationfiles/templates/radio.pot diff --git a/CHANGELOG.md b/CHANGELOG.md index 9042d5b..0d56e38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ [#205](https://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/205) @onny - Besides source, provide prebuild tarball in Gitlab releases [#215](https://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/215) @onny +- Parse and supply changelog to Gitlab release + [#216](https://git.project-insanity.org/onny/nextcloud-app-radio/-/issues/216) @onny ### Fixed - Add AGPL headers diff --git a/Makefile b/Makefile index 41479d7..e684990 100644 --- a/Makefile +++ b/Makefile @@ -55,3 +55,7 @@ clean-dev: release: krankerl package + +translations: + php utils/docker-ci/translations/translationtool/translationtool.phar create-pot-files + php utils/docker-ci/translations/translationtool/translationtool.phar convert-po-files diff --git a/README.md b/README.md index c544f38..0ea7751 100644 --- a/README.md +++ b/README.md @@ -62,10 +62,9 @@ make watch-js Manually generate translations. The following commands will require the dependency packages ``gettext`` and ``php``. ``` -git clone https://github.com/nextcloud/docker-ci.git cd nextcloud-app-radio -php ../docker-ci/translations/translationtool/translationtool.phar create-pot-files -php ../docker-ci/translations/translationtool/translationtool.phar convert-po-files +git clone https://github.com/nextcloud/docker-ci.git utils/docker-ci +make translations ``` Contribute translations via diff --git a/Release.md b/Release.md index 59fdbc0..c7ea30a 100644 --- a/Release.md +++ b/Release.md @@ -1,61 +1,21 @@ +## Publish release on Gitlab + +Before releasing a new version to Gitlab, be sure to note all changes in the +[CHANGELOG.md](CHANGELOG.md)-file. +Commit, tag and push the changes: ``` git commit -am "test release v1.0.0.4" git tag -a 1.0.0.4 -m "" git push --atomic origin master 1.0.0.4 ``` +This will trigger the Gitlab-CI pipeline and publishes a release to the Gitlab +release page, including source, a prebuild tarball and the latest changelog. -Releasing a new version works quite easy with [krankerl](https://github.com/ChristophWurst/krankerl) and [github-release](https://github.com/aktau/github-release) installed: - -1. Run krankerl to build the package +## Nextcloud app store release +The prebuild tarball can be used in the +[Nextcloud Appstore](https://apps.nextcloud.com/developer/apps/releases/new) +page. The signature can be generated with: ``` -krankerl package -``` - -2. Tag the release on GitHub - -``` -# For a prerelease -github-release release -u nextcloud -r deck -t v0.3.1 -p - -# For a regular release -github-release release -u nextcloud -r deck -t v0.3.1 -``` - -3. Upload the release package to GitHub - -``` -github-release upload -u nextcloud -r deck -t v0.3.1 -n deck.tar.gz -f build/artifacts/deck.tar.gz -``` - -4. Run krankerl to release the package to the app store (add `--nightly` for prerelease packages) - -``` -krankerl publish https://github.com/nextcloud/deck/releases/download/v0.3.1/deck.tar.gz -``` - -## Release PR template - -``` -## Backports - -- [ ] ... - -## Translations - -- [ ] ... - -## Release - -- [ ] Set proper Nextcloud versions in info.xml -- [ ] Update changelog -- [ ] Build test release -- [ ] Tested on - - [ ] Nextcloud 13 - - [ ] Nextcloud 14 - - [ ] Nextcloud 15 -- [ ] Merge -- [ ] Build final release -- [ ] Publish release -- [ ] Upload to the app store +openssl dgst -sha512 -sign ~/.nextcloud/certificates/radio.key /path/to/radio.tar.gz | openssl base64 ``` diff --git a/translationfiles/templates/radio.pot b/translationfiles/templates/radio.pot new file mode 100644 index 0000000..0cfe3bb --- /dev/null +++ b/translationfiles/templates/radio.pot @@ -0,0 +1,186 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the Nextcloud package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: Nextcloud 3.14159\n" +"Report-Msgid-Bugs-To: translations\\@example.com\n" +"POT-Creation-Date: 2020-11-28 09:54+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" + +#: /home/onny/projects/nextcloud-app-radio/lib/Dashboard/RadioWidget.php:60 +msgid "Radio stations" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialAppInfoFakeDummyForL10nScript.php:2 +msgid "Radio" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialAppInfoFakeDummyForL10nScript.php:3 +msgid "Radio listening app" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialAppInfoFakeDummyForL10nScript.php:4 +msgid "Listening to your favorite radio stations in Nextcloud" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:1 +msgid "Error fetching favorite stations" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:2 +msgid "No favorites added yet!" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:3 +msgid "Failed to fetch favorite radio stations" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:4 +msgid "No favorites yet" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:5 +msgid "No recent stations yet" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:6 +msgid "No search results" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:7 +msgid "Stations you mark as favorite will show up here" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:8 +msgid "Stations you recently played will show up here" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:9 +msgid "No stations were found matching your search term" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:10 +msgid "No stations here" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:11 +msgid "Could not remove station from favorites" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:12 +msgid "Could not favor station" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:13 +msgid "Lost connection to radio station, retrying ..." +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:14 +msgid "Unable to count play on remote API" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:15 +msgid "Could not add station to recent list" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:16 +msgid "Countries" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:17 +msgid "States" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:18 +msgid "Languages" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:19 +msgid "Tags" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:20 +msgid "Could not fetch stations from remote API" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:21 +msgid "Unable to load favorites" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:22 +msgid "Top" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:23 +msgid "Recent" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:24 +msgid "New" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:25 +msgid "Favorites" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:26 +msgid "Categories" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:27 +msgid "Search" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:28 +msgid "Stream URL" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:29 +msgid "Copy link to clipboard" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:30 +msgid "Homepage" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:31 +msgid "Country & Language" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:32 +msgid "Codec & Bitrate" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:33 +msgid "Link copied to clipboard" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:34 +msgid "Error while copying link to clipboard" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:35 +msgid "Name" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:36 +msgid "Add to favorites" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:37 +msgid "Remove from favorites" +msgstr "" + +#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:38 +msgid "Details" +msgstr ""