2020-05-09 06:27:05 +02:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:intl/intl.dart';
|
|
|
|
import 'intl/messages_all.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// Generator: Flutter Intl IDE plugin
|
|
|
|
// Made by Localizely
|
|
|
|
// **************************************************************************
|
|
|
|
|
2020-06-10 09:42:40 +02:00
|
|
|
// ignore_for_file: non_constant_identifier_names, lines_longer_than_80_chars
|
|
|
|
|
2020-05-09 06:27:05 +02:00
|
|
|
class S {
|
|
|
|
S();
|
|
|
|
|
2020-06-10 09:42:40 +02:00
|
|
|
static S current;
|
|
|
|
|
2020-05-09 06:27:05 +02:00
|
|
|
static const AppLocalizationDelegate delegate =
|
|
|
|
AppLocalizationDelegate();
|
|
|
|
|
|
|
|
static Future<S> load(Locale locale) {
|
2020-05-16 05:14:32 +02:00
|
|
|
final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString();
|
|
|
|
final localeName = Intl.canonicalizedLocale(name);
|
2020-05-09 06:27:05 +02:00
|
|
|
return initializeMessages(localeName).then((_) {
|
|
|
|
Intl.defaultLocale = localeName;
|
2020-06-10 09:42:40 +02:00
|
|
|
S.current = S();
|
|
|
|
|
|
|
|
return S.current;
|
2020-05-09 06:27:05 +02:00
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
static S of(BuildContext context) {
|
|
|
|
return Localizations.of<S>(context, S);
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `All`
|
|
|
|
String get all {
|
2020-06-29 14:13:42 +02:00
|
|
|
return Intl.message(
|
2020-07-02 14:58:55 +02:00
|
|
|
'All',
|
|
|
|
name: 'all',
|
2020-06-29 14:13:42 +02:00
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `Cancel`
|
|
|
|
String get cancel {
|
2020-06-29 14:13:42 +02:00
|
|
|
return Intl.message(
|
2020-07-02 14:58:55 +02:00
|
|
|
'Cancel',
|
|
|
|
name: 'cancel',
|
2020-06-29 14:13:42 +02:00
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `Choose a`
|
|
|
|
String get chooseA {
|
2020-06-29 14:13:42 +02:00
|
|
|
return Intl.message(
|
2020-07-02 14:58:55 +02:00
|
|
|
'Choose a',
|
|
|
|
name: 'chooseA',
|
2020-06-29 14:13:42 +02:00
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `color`
|
|
|
|
String get color {
|
2020-06-29 14:13:42 +02:00
|
|
|
return Intl.message(
|
2020-07-02 14:58:55 +02:00
|
|
|
'color',
|
|
|
|
name: 'color',
|
2020-06-29 14:13:42 +02:00
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `Confirm`
|
|
|
|
String get confirm {
|
2020-06-29 14:13:42 +02:00
|
|
|
return Intl.message(
|
2020-07-02 14:58:55 +02:00
|
|
|
'Confirm',
|
|
|
|
name: 'confirm',
|
2020-06-29 14:13:42 +02:00
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `Dark mode`
|
|
|
|
String get darkMode {
|
2020-06-29 14:13:42 +02:00
|
|
|
return Intl.message(
|
2020-07-02 14:58:55 +02:00
|
|
|
'Dark mode',
|
|
|
|
name: 'darkMode',
|
2020-06-29 14:13:42 +02:00
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `Delete`
|
|
|
|
String get delete {
|
2020-06-29 14:13:42 +02:00
|
|
|
return Intl.message(
|
2020-07-02 14:58:55 +02:00
|
|
|
'Delete',
|
|
|
|
name: 'delete',
|
2020-06-29 14:13:42 +02:00
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Download`
|
2020-07-02 14:58:55 +02:00
|
|
|
String get download {
|
2020-06-29 14:13:42 +02:00
|
|
|
return Intl.message(
|
|
|
|
'Download',
|
2020-07-02 14:58:55 +02:00
|
|
|
name: 'download',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Edit name`
|
|
|
|
String get editName {
|
|
|
|
return Intl.message(
|
|
|
|
'Edit name',
|
|
|
|
name: 'editName',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `End of Episode`
|
|
|
|
String get endOfEpisode {
|
|
|
|
return Intl.message(
|
|
|
|
'End of Episode',
|
|
|
|
name: 'endOfEpisode',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Write to me`
|
|
|
|
String get feedbackEmail {
|
|
|
|
return Intl.message(
|
|
|
|
'Write to me',
|
|
|
|
name: 'feedbackEmail',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Submit issue`
|
|
|
|
String get feedbackGithub {
|
|
|
|
return Intl.message(
|
|
|
|
'Submit issue',
|
|
|
|
name: 'feedbackGithub',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Rate on Play`
|
|
|
|
String get feedbackPlay {
|
|
|
|
return Intl.message(
|
|
|
|
'Rate on Play',
|
|
|
|
name: 'feedbackPlay',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Join group`
|
|
|
|
String get feedbackTelegram {
|
|
|
|
return Intl.message(
|
|
|
|
'Join group',
|
|
|
|
name: 'feedbackTelegram',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `From`
|
|
|
|
String get from {
|
|
|
|
return Intl.message(
|
|
|
|
'From',
|
|
|
|
name: 'from',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Groups`
|
|
|
|
String get groups {
|
|
|
|
return Intl.message(
|
|
|
|
'Groups',
|
|
|
|
name: 'groups',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `See All`
|
|
|
|
String get homeGroupsSeeAll {
|
|
|
|
return Intl.message(
|
|
|
|
'See All',
|
|
|
|
name: 'homeGroupsSeeAll',
|
2020-06-29 14:13:42 +02:00
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Playlist`
|
|
|
|
String get homeMenuPlaylist {
|
|
|
|
return Intl.message(
|
|
|
|
'Playlist',
|
|
|
|
name: 'homeMenuPlaylist',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `Downloaded`
|
|
|
|
String get homeSubMenuDownloaded {
|
|
|
|
return Intl.message(
|
|
|
|
'Downloaded',
|
|
|
|
name: 'homeSubMenuDownloaded',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Like Date`
|
|
|
|
String get homeSubMenuLikeData {
|
|
|
|
return Intl.message(
|
|
|
|
'Like Date',
|
|
|
|
name: 'homeSubMenuLikeData',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-06-29 14:13:42 +02:00
|
|
|
/// `Sort by`
|
|
|
|
String get homeSubMenuSortBy {
|
|
|
|
return Intl.message(
|
|
|
|
'Sort by',
|
|
|
|
name: 'homeSubMenuSortBy',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `Update Date`
|
2020-06-29 14:13:42 +02:00
|
|
|
String get homeSubMenuUpdateDate {
|
|
|
|
return Intl.message(
|
2020-07-02 14:58:55 +02:00
|
|
|
'Update Date',
|
2020-06-29 14:13:42 +02:00
|
|
|
name: 'homeSubMenuUpdateDate',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
2020-05-09 06:27:05 +02:00
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `Favorite`
|
|
|
|
String get homeTabMenuFavotite {
|
2020-06-29 14:13:42 +02:00
|
|
|
return Intl.message(
|
2020-07-02 14:58:55 +02:00
|
|
|
'Favorite',
|
|
|
|
name: 'homeTabMenuFavotite',
|
2020-06-29 14:13:42 +02:00
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2020-07-02 14:58:55 +02:00
|
|
|
/// `Recent`
|
|
|
|
String get homeTabMenuRecent {
|
2020-06-29 14:13:42 +02:00
|
|
|
return Intl.message(
|
2020-07-02 14:58:55 +02:00
|
|
|
'Recent',
|
|
|
|
name: 'homeTabMenuRecent',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `About`
|
|
|
|
String get homeToprightMenuAbout {
|
|
|
|
return Intl.message(
|
|
|
|
'About',
|
|
|
|
name: 'homeToprightMenuAbout',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Import OMPL`
|
|
|
|
String get homeToprightMenuImportOMPL {
|
|
|
|
return Intl.message(
|
|
|
|
'Import OMPL',
|
|
|
|
name: 'homeToprightMenuImportOMPL',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Refresh all`
|
|
|
|
String get homeToprightMenuRefreshAll {
|
|
|
|
return Intl.message(
|
|
|
|
'Refresh all',
|
|
|
|
name: 'homeToprightMenuRefreshAll',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Settings`
|
|
|
|
String get homeToprightMenuSettings {
|
|
|
|
return Intl.message(
|
|
|
|
'Settings',
|
|
|
|
name: 'homeToprightMenuSettings',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Later`
|
|
|
|
String get later {
|
|
|
|
return Intl.message(
|
|
|
|
'Later',
|
|
|
|
name: 'later',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Light mode`
|
|
|
|
String get lightMode {
|
|
|
|
return Intl.message(
|
|
|
|
'Light mode',
|
|
|
|
name: 'lightMode',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Like`
|
|
|
|
String get like {
|
|
|
|
return Intl.message(
|
|
|
|
'Like',
|
|
|
|
name: 'like',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Liked`
|
|
|
|
String get liked {
|
|
|
|
return Intl.message(
|
|
|
|
'Liked',
|
|
|
|
name: 'liked',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Listen`
|
|
|
|
String get listen {
|
|
|
|
return Intl.message(
|
|
|
|
'Listen',
|
|
|
|
name: 'listen',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Listened`
|
|
|
|
String get listened {
|
|
|
|
return Intl.message(
|
|
|
|
'Listened',
|
|
|
|
name: 'listened',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Mark listened`
|
|
|
|
String get markListened {
|
|
|
|
return Intl.message(
|
|
|
|
'Mark listened',
|
|
|
|
name: 'markListened',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Menu`
|
|
|
|
String get menu {
|
|
|
|
return Intl.message(
|
|
|
|
'Menu',
|
|
|
|
name: 'menu',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `All podcasts`
|
|
|
|
String get menuAllPodcasts {
|
|
|
|
return Intl.message(
|
|
|
|
'All podcasts',
|
|
|
|
name: 'menuAllPodcasts',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Mark All Listened`
|
|
|
|
String get menuMarkAllListened {
|
|
|
|
return Intl.message(
|
|
|
|
'Mark All Listened',
|
|
|
|
name: 'menuMarkAllListened',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Mark Listened`
|
|
|
|
String get menuMarkListened {
|
|
|
|
return Intl.message(
|
|
|
|
'Mark Listened',
|
|
|
|
name: 'menuMarkListened',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Visit RSS Feed`
|
|
|
|
String get menuViewRSS {
|
|
|
|
return Intl.message(
|
|
|
|
'Visit RSS Feed',
|
|
|
|
name: 'menuViewRSS',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Visit Site`
|
|
|
|
String get menuVisitSite {
|
|
|
|
return Intl.message(
|
|
|
|
'Visit Site',
|
|
|
|
name: 'menuVisitSite',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Network`
|
|
|
|
String get network {
|
|
|
|
return Intl.message(
|
|
|
|
'Network',
|
|
|
|
name: 'network',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Create new group`
|
|
|
|
String get newGroup {
|
|
|
|
return Intl.message(
|
|
|
|
'Create new group',
|
|
|
|
name: 'newGroup',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Play`
|
|
|
|
String get play {
|
|
|
|
return Intl.message(
|
|
|
|
'Play',
|
|
|
|
name: 'play',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Download episode`
|
|
|
|
String get popupMenuDownloadDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Download episode',
|
|
|
|
name: 'popupMenuDownloadDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Add episode to playlist`
|
|
|
|
String get popupMenuLaterDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Add episode to playlist',
|
|
|
|
name: 'popupMenuLaterDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Add episode to favorite`
|
|
|
|
String get popupMenuLikeDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Add episode to favorite',
|
|
|
|
name: 'popupMenuLikeDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Mark episode as listened`
|
|
|
|
String get popupMenuMarkDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Mark episode as listened',
|
|
|
|
name: 'popupMenuMarkDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Play the episode`
|
|
|
|
String get popupMenuPlayDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Play the episode',
|
|
|
|
name: 'popupMenuPlayDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Remove`
|
|
|
|
String get remove {
|
|
|
|
return Intl.message(
|
|
|
|
'Remove',
|
|
|
|
name: 'remove',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Schedule`
|
|
|
|
String get schedule {
|
|
|
|
return Intl.message(
|
|
|
|
'Schedule',
|
|
|
|
name: 'schedule',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Search podcast`
|
|
|
|
String get searchPodcast {
|
|
|
|
return Intl.message(
|
|
|
|
'Search podcast',
|
|
|
|
name: 'searchPodcast',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Accent color`
|
|
|
|
String get settingsAccentColor {
|
|
|
|
return Intl.message(
|
|
|
|
'Accent color',
|
|
|
|
name: 'settingsAccentColor',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Include the ovelay color`
|
|
|
|
String get settingsAccentColorDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Include the ovelay color',
|
|
|
|
name: 'settingsAccentColorDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Appearance`
|
|
|
|
String get settingsAppearance {
|
|
|
|
return Intl.message(
|
|
|
|
'Appearance',
|
|
|
|
name: 'settingsAppearance',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Colors and themes`
|
|
|
|
String get settingsAppearanceDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Colors and themes',
|
|
|
|
name: 'settingsAppearanceDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `App Intro`
|
|
|
|
String get settingsAppIntro {
|
|
|
|
return Intl.message(
|
|
|
|
'App Intro',
|
|
|
|
name: 'settingsAppIntro',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Audio cache`
|
|
|
|
String get settingsAudioCache {
|
|
|
|
return Intl.message(
|
|
|
|
'Audio cache',
|
|
|
|
name: 'settingsAudioCache',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Audio cache max size`
|
|
|
|
String get settingsAudioCacheDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Audio cache max size',
|
|
|
|
name: 'settingsAudioCacheDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Auto delete downloads after`
|
|
|
|
String get settingsAutoDelete {
|
|
|
|
return Intl.message(
|
|
|
|
'Auto delete downloads after',
|
|
|
|
name: 'settingsAutoDelete',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Default 30 days`
|
|
|
|
String get settingsAutoDeleteDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Default 30 days',
|
|
|
|
name: 'settingsAutoDeleteDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Auto play next episode in playlist`
|
|
|
|
String get settingsAutoPlayDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Auto play next episode in playlist',
|
|
|
|
name: 'settingsAutoPlayDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Default grid view`
|
|
|
|
String get settingsDefaultGrid {
|
|
|
|
return Intl.message(
|
|
|
|
'Default grid view',
|
|
|
|
name: 'settingsDefaultGrid',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Download tab`
|
|
|
|
String get settingsDefaultGridDownload {
|
|
|
|
return Intl.message(
|
|
|
|
'Download tab',
|
|
|
|
name: 'settingsDefaultGridDownload',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Favorite tab`
|
|
|
|
String get settingsDefaultGridFavorite {
|
|
|
|
return Intl.message(
|
|
|
|
'Favorite tab',
|
|
|
|
name: 'settingsDefaultGridFavorite',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Podcast page`
|
|
|
|
String get settingsDefaultGridPodcast {
|
|
|
|
return Intl.message(
|
|
|
|
'Podcast page',
|
|
|
|
name: 'settingsDefaultGridPodcast',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Recent tab`
|
|
|
|
String get settingsDefaultGridRecent {
|
|
|
|
return Intl.message(
|
|
|
|
'Recent tab',
|
|
|
|
name: 'settingsDefaultGridRecent',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Discovery Features Again`
|
|
|
|
String get settingsDiscovery {
|
|
|
|
return Intl.message(
|
|
|
|
'Discovery Features Again',
|
|
|
|
name: 'settingsDiscovery',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Enable Syncing`
|
|
|
|
String get settingsEnableSyncing {
|
|
|
|
return Intl.message(
|
|
|
|
'Enable Syncing',
|
|
|
|
name: 'settingsEnableSyncing',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Refresh all podcasts in the background to get leatest episodes`
|
|
|
|
String get settingsEnableSyncingDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Refresh all podcasts in the background to get leatest episodes',
|
|
|
|
name: 'settingsEnableSyncingDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Export`
|
|
|
|
String get settingsExport {
|
|
|
|
return Intl.message(
|
|
|
|
'Export',
|
|
|
|
name: 'settingsExport',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Export OMPL file of all podcasts`
|
|
|
|
String get settingsExportDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Export OMPL file of all podcasts',
|
|
|
|
name: 'settingsExportDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Feedback`
|
|
|
|
String get settingsFeedback {
|
|
|
|
return Intl.message(
|
|
|
|
'Feedback',
|
|
|
|
name: 'settingsFeedback',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Bugs and feature request`
|
|
|
|
String get settingsFeedbackDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Bugs and feature request',
|
|
|
|
name: 'settingsFeedbackDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `History`
|
|
|
|
String get settingsHistory {
|
|
|
|
return Intl.message(
|
|
|
|
'History',
|
|
|
|
name: 'settingsHistory',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Listen date`
|
|
|
|
String get settingsHistoryDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Listen date',
|
|
|
|
name: 'settingsHistoryDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Info`
|
|
|
|
String get settingsInfo {
|
|
|
|
return Intl.message(
|
|
|
|
'Info',
|
|
|
|
name: 'settingsInfo',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Interface`
|
|
|
|
String get settingsInterface {
|
|
|
|
return Intl.message(
|
|
|
|
'Interface',
|
|
|
|
name: 'settingsInterface',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Layout`
|
|
|
|
String get settingsLayout {
|
|
|
|
return Intl.message(
|
|
|
|
'Layout',
|
|
|
|
name: 'settingsLayout',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `App layout`
|
|
|
|
String get settingsLayoutDes {
|
|
|
|
return Intl.message(
|
|
|
|
'App layout',
|
|
|
|
name: 'settingsLayoutDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Libraries`
|
|
|
|
String get settingsLibraries {
|
|
|
|
return Intl.message(
|
|
|
|
'Libraries',
|
|
|
|
name: 'settingsLibraries',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Open source libraries used in app`
|
|
|
|
String get settingsLibrariesDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Open source libraries used in app',
|
|
|
|
name: 'settingsLibrariesDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Manage download`
|
|
|
|
String get settingsManageDownload {
|
|
|
|
return Intl.message(
|
|
|
|
'Manage download',
|
|
|
|
name: 'settingsManageDownload',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Manage downloaded audio files`
|
|
|
|
String get settingsManageDownloadDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Manage downloaded audio files',
|
|
|
|
name: 'settingsManageDownloadDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Auto play next`
|
|
|
|
String get settingsMenuAutoPlay {
|
|
|
|
return Intl.message(
|
|
|
|
'Auto play next',
|
|
|
|
name: 'settingsMenuAutoPlay',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Ask before using cellular data`
|
|
|
|
String get settingsNetworkCellular {
|
|
|
|
return Intl.message(
|
|
|
|
'Ask before using cellular data',
|
|
|
|
name: 'settingsNetworkCellular',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Auto download using cellular data`
|
|
|
|
String get settingsNetworkCellularAuto {
|
|
|
|
return Intl.message(
|
|
|
|
'Auto download using cellular data',
|
|
|
|
name: 'settingsNetworkCellularAuto',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `You can set podcast auto download in group manage page`
|
|
|
|
String get settingsNetworkCellularAutoDes {
|
|
|
|
return Intl.message(
|
|
|
|
'You can set podcast auto download in group manage page',
|
|
|
|
name: 'settingsNetworkCellularAutoDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Ask to confirm when using cellulae data to download episodes`
|
|
|
|
String get settingsNetworkCellularDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Ask to confirm when using cellulae data to download episodes',
|
|
|
|
name: 'settingsNetworkCellularDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Playlist and player`
|
|
|
|
String get settingsPlayDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Playlist and player',
|
|
|
|
name: 'settingsPlayDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Episodes popup menu`
|
|
|
|
String get settingsPopupMenu {
|
|
|
|
return Intl.message(
|
|
|
|
'Episodes popup menu',
|
|
|
|
name: 'settingsPopupMenu',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Change the popup menu of episode`
|
|
|
|
String get settingsPopupMenuDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Change the popup menu of episode',
|
|
|
|
name: 'settingsPopupMenuDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Prefrence`
|
|
|
|
String get settingsPrefrence {
|
|
|
|
return Intl.message(
|
|
|
|
'Prefrence',
|
|
|
|
name: 'settingsPrefrence',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Real dark`
|
|
|
|
String get settingsRealDark {
|
|
|
|
return Intl.message(
|
|
|
|
'Real dark',
|
|
|
|
name: 'settingsRealDark',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Turn on if you think the night is not dark enough`
|
|
|
|
String get settingsRealDarkDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Turn on if you think the night is not dark enough',
|
|
|
|
name: 'settingsRealDarkDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Auto turn on sleep timer`
|
|
|
|
String get settingsSTAuto {
|
|
|
|
return Intl.message(
|
|
|
|
'Auto turn on sleep timer',
|
|
|
|
name: 'settingsSTAuto',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Auto start sleep timer at scheduled time`
|
|
|
|
String get settingsSTAutoDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Auto start sleep timer at scheduled time',
|
|
|
|
name: 'settingsSTAutoDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Default time`
|
|
|
|
String get settingsSTDefaultTime {
|
|
|
|
return Intl.message(
|
|
|
|
'Default time',
|
|
|
|
name: 'settingsSTDefaultTime',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Default time for sleep timer`
|
|
|
|
String get settingsSTDefautTimeDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Default time for sleep timer',
|
|
|
|
name: 'settingsSTDefautTimeDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Auto sleep timer mode`
|
|
|
|
String get settingsSTMode {
|
|
|
|
return Intl.message(
|
|
|
|
'Auto sleep timer mode',
|
|
|
|
name: 'settingsSTMode',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Manange cache and download storage`
|
|
|
|
String get settingsStorageDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Manange cache and download storage',
|
|
|
|
name: 'settingsStorageDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Syncing`
|
|
|
|
String get settingsSyncing {
|
|
|
|
return Intl.message(
|
|
|
|
'Syncing',
|
|
|
|
name: 'settingsSyncing',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Refresh podcasts in the background`
|
|
|
|
String get settingsSyncingDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Refresh podcasts in the background',
|
|
|
|
name: 'settingsSyncingDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Theme`
|
|
|
|
String get settingsTheme {
|
|
|
|
return Intl.message(
|
|
|
|
'Theme',
|
|
|
|
name: 'settingsTheme',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Storage`
|
|
|
|
String get settingStorage {
|
|
|
|
return Intl.message(
|
|
|
|
'Storage',
|
|
|
|
name: 'settingStorage',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Update interval`
|
|
|
|
String get settingsUpdateInterval {
|
|
|
|
return Intl.message(
|
|
|
|
'Update interval',
|
|
|
|
name: 'settingsUpdateInterval',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Default 24 hours`
|
|
|
|
String get settingsUpdateIntervalDes {
|
|
|
|
return Intl.message(
|
|
|
|
'Default 24 hours',
|
|
|
|
name: 'settingsUpdateIntervalDes',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Sleep timer`
|
|
|
|
String get sleepTimer {
|
|
|
|
return Intl.message(
|
|
|
|
'Sleep timer',
|
|
|
|
name: 'sleepTimer',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Subscribe`
|
|
|
|
String get subscribe {
|
|
|
|
return Intl.message(
|
|
|
|
'Subscribe',
|
|
|
|
name: 'subscribe',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `System default`
|
|
|
|
String get systemDefault {
|
|
|
|
return Intl.message(
|
|
|
|
'System default',
|
|
|
|
name: 'systemDefault',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `To`
|
|
|
|
String get to {
|
|
|
|
return Intl.message(
|
|
|
|
'To',
|
|
|
|
name: 'to',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Added to playlist`
|
|
|
|
String get toastAddPlaylist {
|
|
|
|
return Intl.message(
|
|
|
|
'Added to playlist',
|
|
|
|
name: 'toastAddPlaylist',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Discovery feature reopened, pleast restart the app`
|
|
|
|
String get toastDescovery {
|
|
|
|
return Intl.message(
|
|
|
|
'Discovery feature reopened, pleast restart the app',
|
|
|
|
name: 'toastDescovery',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `File error, Subscribe failed`
|
|
|
|
String get toastFileError {
|
|
|
|
return Intl.message(
|
|
|
|
'File error, Subscribe failed',
|
|
|
|
name: 'toastFileError',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `File not vilid`
|
|
|
|
String get toastFileNotVilid {
|
|
|
|
return Intl.message(
|
|
|
|
'File not vilid',
|
|
|
|
name: 'toastFileNotVilid',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Read file successfully`
|
|
|
|
String get toastReadFile {
|
|
|
|
return Intl.message(
|
|
|
|
'Read file successfully',
|
|
|
|
name: 'toastReadFile',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Removed from playlist`
|
|
|
|
String get toastRemovePlaylist {
|
|
|
|
return Intl.message(
|
|
|
|
'Removed from playlist',
|
|
|
|
name: 'toastRemovePlaylist',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Unlike`
|
|
|
|
String get unlike {
|
|
|
|
return Intl.message(
|
|
|
|
'Unlike',
|
|
|
|
name: 'unlike',
|
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// `Unliked`
|
|
|
|
String get unliked {
|
|
|
|
return Intl.message(
|
|
|
|
'Unliked',
|
|
|
|
name: 'unliked',
|
2020-06-29 14:13:42 +02:00
|
|
|
desc: '',
|
|
|
|
args: [],
|
|
|
|
);
|
|
|
|
}
|
2020-05-09 06:27:05 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
class AppLocalizationDelegate extends LocalizationsDelegate<S> {
|
|
|
|
const AppLocalizationDelegate();
|
|
|
|
|
|
|
|
List<Locale> get supportedLocales {
|
|
|
|
return const <Locale>[
|
|
|
|
Locale.fromSubtags(languageCode: 'en'),
|
2020-07-02 14:58:55 +02:00
|
|
|
Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hans'),
|
2020-05-09 06:27:05 +02:00
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool isSupported(Locale locale) => _isSupported(locale);
|
|
|
|
@override
|
|
|
|
Future<S> load(Locale locale) => S.load(locale);
|
|
|
|
@override
|
|
|
|
bool shouldReload(AppLocalizationDelegate old) => false;
|
|
|
|
|
|
|
|
bool _isSupported(Locale locale) {
|
|
|
|
if (locale != null) {
|
2020-05-16 05:14:32 +02:00
|
|
|
for (var supportedLocale in supportedLocales) {
|
2020-05-09 06:27:05 +02:00
|
|
|
if (supportedLocale.languageCode == locale.languageCode) {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|