add license
This commit is contained in:
parent
edfc75e6fa
commit
6876d2b053
|
@ -22,9 +22,9 @@ const List<String> bad = [
|
|||
"freespeechextremist.com"
|
||||
];
|
||||
|
||||
const List<Locale> availableLocales = [Locale("en"), Locale("de")];
|
||||
const List<Locale> availableLocales = [Locale("en", "US"), Locale("de")];
|
||||
|
||||
Settings? settings;
|
||||
|
||||
const String legalese =
|
||||
r"loris is licensed under the GNU Affero General Public License v3. to find out more visist www.gnu.org/licenses/agpl-3.0.html";
|
||||
"loris is licensed under the GNU Affero General Public License v3. to find out more visist www.gnu.org/licenses/agpl-3.0.html";
|
||||
|
|
|
@ -1,55 +0,0 @@
|
|||
{
|
||||
"greeting": "hello! welcome to loris",
|
||||
"instance-url": "instance url",
|
||||
"instance-url-example": "example.com",
|
||||
"authorize-in-browser": "authorize in browser",
|
||||
"login-failed-snackbar-text": "login failed!",
|
||||
"back-button": "back",
|
||||
"confirm-button": "confirm",
|
||||
"timeline" : "timeline",
|
||||
"chat": "chat",
|
||||
"notifications": "notifications",
|
||||
"settings": "settings",
|
||||
"show": "show",
|
||||
"hide": "hide",
|
||||
"media-not-supported": "media type not supported",
|
||||
"show-about-page": "show about page",
|
||||
"about": "about",
|
||||
"account-settings": "account settings",
|
||||
"logout": "log out",
|
||||
"show-in-browser": "show in browser",
|
||||
"post-options": "post options",
|
||||
"reblogged-by": "reblogged by:",
|
||||
"post-batch-size": "post batch size",
|
||||
"post-batch-size-description": "how many posts to load at a time\nfor slower internet or if you're not sure what to do use a low value (the default in most places is 20)",
|
||||
"app-settings": "app settings",
|
||||
"local-timeline": "local",
|
||||
"home-timeline": "home",
|
||||
"public-timeline": "federated",
|
||||
"content-width-percentage-label": "content width",
|
||||
"content-width-percentage-description": "determines what the regular width of content should be in percent (requires reloading the timeline)",
|
||||
"max-content-width-label": "max content width",
|
||||
"content-max-width-description": "determines what the maximum width of content should be, values below 375 get ignored because they would be too small (requires reloading the timeline)",
|
||||
"liked-your-post": "liked your post",
|
||||
"mentioned-you": "mentioned you",
|
||||
"reblogged-your-post": "reblogged your post",
|
||||
"followed-you": "followed you",
|
||||
"requested-to-folow-you": "requested to follow you",
|
||||
"made-a-status": "made a post",
|
||||
"poll-has-ended": "poll has ended",
|
||||
"interacted-with-you": "interacted with you",
|
||||
"on-remote-instance": "on remote instance",
|
||||
"reblog": "reblog",
|
||||
"like": "like",
|
||||
"load-older-notifications": "load older notifications",
|
||||
"copied-post-by": "copied link to post by:",
|
||||
"copy-url-to-clipboard": "copy url to clipboard",
|
||||
"unlisted-visibility": "unlisted",
|
||||
"public-visibility": "public",
|
||||
"private-visibility": "private",
|
||||
"direct-visibility": "dm",
|
||||
"make-reply": "make reply",
|
||||
"make-post": "make post",
|
||||
"content-warning": "content warning"
|
||||
}
|
||||
|
|
@ -1,3 +1,55 @@
|
|||
{
|
||||
"greeting": "hello! welcome to loris",
|
||||
"instance-url": "instance url",
|
||||
"instance-url-example": "example.com",
|
||||
"authorize-in-browser": "authorize in browser",
|
||||
"login-failed-snackbar-text": "login failed!",
|
||||
"back-button": "back",
|
||||
"confirm-button": "confirm",
|
||||
"timeline" : "timeline",
|
||||
"chat": "chat",
|
||||
"notifications": "notifications",
|
||||
"settings": "settings",
|
||||
"show": "show",
|
||||
"hide": "hide",
|
||||
"media-not-supported": "media type not supported",
|
||||
"show-about-page": "show about page",
|
||||
"about": "about",
|
||||
"account-settings": "account settings",
|
||||
"logout": "log out",
|
||||
"show-in-browser": "show in browser",
|
||||
"post-options": "post options",
|
||||
"reblogged-by": "reblogged by:",
|
||||
"post-batch-size": "post batch size",
|
||||
"post-batch-size-description": "how many posts to load at a time\nfor slower internet or if you're not sure what to do use a low value (the default in most places is 20)",
|
||||
"app-settings": "app settings",
|
||||
"local-timeline": "local",
|
||||
"home-timeline": "home",
|
||||
"public-timeline": "federated",
|
||||
"content-width-percentage-label": "content width",
|
||||
"content-width-percentage-description": "determines what the regular width of content should be in percent (requires reloading the timeline)",
|
||||
"max-content-width-label": "max content width",
|
||||
"content-max-width-description": "determines what the maximum width of content should be, values below 375 get ignored because they would be too small (requires reloading the timeline)",
|
||||
"liked-your-post": "liked your post",
|
||||
"mentioned-you": "mentioned you",
|
||||
"reblogged-your-post": "reblogged your post",
|
||||
"followed-you": "followed you",
|
||||
"requested-to-folow-you": "requested to follow you",
|
||||
"made-a-status": "made a post",
|
||||
"poll-has-ended": "poll has ended",
|
||||
"interacted-with-you": "interacted with you",
|
||||
"on-remote-instance": "on remote instance",
|
||||
"reblog": "reblog",
|
||||
"like": "like",
|
||||
"load-older-notifications": "load older notifications",
|
||||
"copied-post-by": "copied link to post by:",
|
||||
"copy-url-to-clipboard": "copy url to clipboard",
|
||||
"unlisted-visibility": "unlisted",
|
||||
"public-visibility": "public",
|
||||
"private-visibility": "private",
|
||||
"direct-visibility": "dm",
|
||||
"make-reply": "make reply",
|
||||
"make-post": "make post",
|
||||
"content-warning": "content warning"
|
||||
}
|
||||
|
|
@ -9,10 +9,10 @@ import 'themes/themes.dart' as themes;
|
|||
import 'global.dart' as global;
|
||||
|
||||
ThemeData theme = themes.getTheme(themes.available[0]);
|
||||
Locale activeLocale = const Locale("en");
|
||||
Locale activeLocale = const Locale("en_US");
|
||||
|
||||
void main() async {
|
||||
Intl.defaultLocale = "en";
|
||||
Intl.defaultLocale = "en_US";
|
||||
global.settings = await settings.Settings.create();
|
||||
activeLocale = global.settings!.locale;
|
||||
|
||||
|
|
Loading…
Reference in New Issue