add make translations to CI, fix test errors
This commit is contained in:
parent
b31e4bb484
commit
914fdea53c
@ -12,6 +12,7 @@ compiling:
|
|||||||
script:
|
script:
|
||||||
- npm install
|
- npm install
|
||||||
- make build-js
|
- make build-js
|
||||||
|
- make translations
|
||||||
artifacts:
|
artifacts:
|
||||||
paths:
|
paths:
|
||||||
- ./l10n/*
|
- ./l10n/*
|
||||||
|
3
Makefile
3
Makefile
@ -57,6 +57,9 @@ release:
|
|||||||
krankerl package
|
krankerl package
|
||||||
|
|
||||||
translations:
|
translations:
|
||||||
|
if [ ! -d "utils/docker-ci" ]; then \
|
||||||
|
git clone https://github.com/nextcloud/docker-ci.git utils/docker-ci; \
|
||||||
|
fi
|
||||||
php utils/docker-ci/translations/translationtool/translationtool.phar create-pot-files
|
php utils/docker-ci/translations/translationtool/translationtool.phar create-pot-files
|
||||||
php utils/docker-ci/translations/translationtool/translationtool.phar convert-po-files
|
php utils/docker-ci/translations/translationtool/translationtool.phar convert-po-files
|
||||||
|
|
||||||
|
0
l10n/.gitkeep
Normal file
0
l10n/.gitkeep
Normal file
@ -30,10 +30,12 @@ use OCP\AppFramework\Http\JSONResponse;
|
|||||||
use OCP\IConfig;
|
use OCP\IConfig;
|
||||||
use OCP\IL10N;
|
use OCP\IL10N;
|
||||||
use OCP\IRequest;
|
use OCP\IRequest;
|
||||||
use OCP\Util;
|
use OCP\ILogger;
|
||||||
|
|
||||||
class SettingsController extends ApiController {
|
class SettingsController extends ApiController {
|
||||||
|
|
||||||
|
/** @var ILogger */
|
||||||
|
private $logger;
|
||||||
/** @var IConfig */
|
/** @var IConfig */
|
||||||
private $config;
|
private $config;
|
||||||
|
|
||||||
@ -48,13 +50,15 @@ class SettingsController extends ApiController {
|
|||||||
* @param string $appName
|
* @param string $appName
|
||||||
* @param IRequest $request
|
* @param IRequest $request
|
||||||
* @param string $userId
|
* @param string $userId
|
||||||
|
* @param ILogger $logger
|
||||||
* @param IConfig $config
|
* @param IConfig $config
|
||||||
* @param IL10N $l
|
* @param IL10N $l
|
||||||
*/
|
*/
|
||||||
public function __construct(
|
public function __construct(
|
||||||
$appName, $request, $userId, IConfig $config, IL10N $l
|
$appName, $request, $userId, ILogger $logger, IConfig $config, IL10N $l
|
||||||
) {
|
) {
|
||||||
parent::__construct($appName, $request);
|
parent::__construct($appName, $request);
|
||||||
|
$this->logger = $logger;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
$this->userId = $userId;
|
$this->userId = $userId;
|
||||||
$this->l = $l;
|
$this->l = $l;
|
||||||
@ -69,7 +73,7 @@ class SettingsController extends ApiController {
|
|||||||
$default
|
$default
|
||||||
);
|
);
|
||||||
} catch (Exception $e) {
|
} catch (Exception $e) {
|
||||||
Util::writeLog('radio', $e->getMessage(), Util::ERROR);
|
$this->logger->error($e->getMessage());
|
||||||
return new JSONResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
|
return new JSONResponse([], Http::STATUS_INTERNAL_SERVER_ERROR);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,7 +104,7 @@ class SettingsController extends ApiController {
|
|||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
*/
|
*/
|
||||||
public function setMenuState($menuState = ""): JSONResponse {
|
public function setMenuState($menuState = ""): JSONResponse {
|
||||||
if ($menuState == 'SEARCH') {
|
if ($menuState = 'SEARCH') {
|
||||||
return new JSONResponse(['status' => 'success'], Http::STATUS_OK);
|
return new JSONResponse(['status' => 'success'], Http::STATUS_OK);
|
||||||
};
|
};
|
||||||
$legalArguments = ['TOP', 'RECENT', 'NEW', 'FAVORITES', 'CATEGORIES'];
|
$legalArguments = ['TOP', 'RECENT', 'NEW', 'FAVORITES', 'CATEGORIES'];
|
||||||
|
@ -8,13 +8,13 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: Nextcloud 3.14159\n"
|
"Project-Id-Version: Nextcloud 3.14159\n"
|
||||||
"Report-Msgid-Bugs-To: translations\\@example.com\n"
|
"Report-Msgid-Bugs-To: translations\\@example.com\n"
|
||||||
"POT-Creation-Date: 2020-11-28 10:13+0100\n"
|
"POT-Creation-Date: 2020-12-03 10:58+0100\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
"Language: \n"
|
"Language: \n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=CHARSET\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/lib/Dashboard/RadioWidget.php:60
|
#: /home/onny/projects/nextcloud-app-radio/lib/Dashboard/RadioWidget.php:60
|
||||||
@ -26,161 +26,176 @@ msgid "Radio"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialAppInfoFakeDummyForL10nScript.php:3
|
#: /home/onny/projects/nextcloud-app-radio/specialAppInfoFakeDummyForL10nScript.php:3
|
||||||
msgid "Radio listening app"
|
msgid "Listen to your favorite radio stations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialAppInfoFakeDummyForL10nScript.php:4
|
#: /home/onny/projects/nextcloud-app-radio/specialAppInfoFakeDummyForL10nScript.php:4
|
||||||
msgid "Listening to your favorite radio stations in Nextcloud"
|
msgid ""
|
||||||
|
"Listening to your favorite radio stations in Nextcloud! This\n"
|
||||||
|
"app uses radio-browser.info database as a backend.\n"
|
||||||
|
"\n"
|
||||||
|
"\n"
|
||||||
|
"- 🔊 Listen to radio stations directly in Nextcloud\n"
|
||||||
|
"- 🔍 Browse thousands of stations worldwide\n"
|
||||||
|
"- ⭐ Create your own list of favorite stations\n"
|
||||||
|
"- ⭕ Dashboard widget support\n"
|
||||||
|
"- ⚡ Keep track of recent played stations\n"
|
||||||
|
"- 📁 Browse stations by language, country, etc.\n"
|
||||||
|
"- 👂 Smoth audio playback and transitions"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:1
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:1
|
||||||
msgid "Error fetching favorite stations"
|
msgid "stations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:2
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:2
|
||||||
msgid "No favorites added yet!"
|
msgid "Error fetching favorite stations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:3
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:3
|
||||||
msgid "Failed to fetch favorite radio stations"
|
msgid "No favorites added yet!"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:4
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:4
|
||||||
msgid "No favorites yet"
|
msgid "Failed to fetch favorite radio stations"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:5
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:5
|
||||||
msgid "No recent stations yet"
|
msgid "No favorites yet"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:6
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:6
|
||||||
msgid "No search results"
|
msgid "No recent stations yet"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:7
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:7
|
||||||
msgid "Stations you mark as favorite will show up here"
|
msgid "No search results"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:8
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:8
|
||||||
msgid "Stations you recently played will show up here"
|
msgid "Stations you mark as favorite will show up here"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:9
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:9
|
||||||
msgid "No stations were found matching your search term"
|
msgid "Stations you recently played will show up here"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:10
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:10
|
||||||
msgid "No stations here"
|
msgid "No stations were found matching your search term"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:11
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:11
|
||||||
msgid "Could not remove station from favorites"
|
msgid "No stations here"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:12
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:12
|
||||||
msgid "Could not favor station"
|
msgid "Could not remove station from favorites"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:13
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:13
|
||||||
msgid "Lost connection to radio station, retrying ..."
|
msgid "Could not favor station"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:14
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:14
|
||||||
msgid "Unable to count play on remote API"
|
msgid "Lost connection to radio station, retrying ..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:15
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:15
|
||||||
msgid "Could not add station to recent list"
|
msgid "Unable to count play on remote API"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:16
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:16
|
||||||
msgid "Countries"
|
msgid "Could not add station to recent list"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:17
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:17
|
||||||
msgid "States"
|
msgid "Countries"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:18
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:18
|
||||||
msgid "Languages"
|
msgid "States"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:19
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:19
|
||||||
msgid "Tags"
|
msgid "Languages"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:20
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:20
|
||||||
msgid "Could not fetch stations from remote API"
|
msgid "Tags"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:21
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:21
|
||||||
msgid "Unable to load favorites"
|
msgid "Could not fetch stations from remote API"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:22
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:22
|
||||||
msgid "Top"
|
msgid "Unable to load favorites"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:23
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:23
|
||||||
msgid "Recent"
|
msgid "Top"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:24
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:24
|
||||||
msgid "New"
|
msgid "Recent"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:25
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:25
|
||||||
msgid "Favorites"
|
msgid "New"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:26
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:26
|
||||||
msgid "Categories"
|
msgid "Favorites"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:27
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:27
|
||||||
msgid "Search"
|
msgid "Categories"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:28
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:28
|
||||||
msgid "Stream URL"
|
msgid "Search"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:29
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:29
|
||||||
msgid "Copy link to clipboard"
|
msgid "Stream URL"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:30
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:30
|
||||||
msgid "Homepage"
|
msgid "Copy link to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:31
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:31
|
||||||
msgid "Country & Language"
|
msgid "Homepage"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:32
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:32
|
||||||
msgid "Codec & Bitrate"
|
msgid "Country & Language"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:33
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:33
|
||||||
msgid "Link copied to clipboard"
|
msgid "Codec & Bitrate"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:34
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:34
|
||||||
msgid "Error while copying link to clipboard"
|
msgid "Link copied to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:35
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:35
|
||||||
msgid "Name"
|
msgid "Error while copying link to clipboard"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:36
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:36
|
||||||
msgid "Add to favorites"
|
msgid "Name"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:37
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:37
|
||||||
msgid "Remove from favorites"
|
msgid "Add to favorites"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:38
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:38
|
||||||
|
msgid "Remove from favorites"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: /home/onny/projects/nextcloud-app-radio/specialVueFakeDummyForL10nScript.js:39
|
||||||
msgid "Details"
|
msgid "Details"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
Loading…
Reference in New Issue
Block a user