From 6876d2b0534515b2bbdcd6c01c4678532e791227 Mon Sep 17 00:00:00 2001 From: zoe Date: Mon, 29 Aug 2022 23:38:14 +0200 Subject: [PATCH] add license --- lib/global.dart | 4 ++-- lib/i18n/en.json | 55 --------------------------------------------- lib/i18n/en_US.json | 52 ++++++++++++++++++++++++++++++++++++++++++ lib/main.dart | 4 ++-- 4 files changed, 56 insertions(+), 59 deletions(-) delete mode 100644 lib/i18n/en.json diff --git a/lib/global.dart b/lib/global.dart index 88f45a6..9074fab 100644 --- a/lib/global.dart +++ b/lib/global.dart @@ -22,9 +22,9 @@ const List bad = [ "freespeechextremist.com" ]; -const List availableLocales = [Locale("en"), Locale("de")]; +const List 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"; diff --git a/lib/i18n/en.json b/lib/i18n/en.json deleted file mode 100644 index 789d1e2..0000000 --- a/lib/i18n/en.json +++ /dev/null @@ -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" -} - \ No newline at end of file diff --git a/lib/i18n/en_US.json b/lib/i18n/en_US.json index 146fbcd..789d1e2 100644 --- a/lib/i18n/en_US.json +++ b/lib/i18n/en_US.json @@ -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" } \ No newline at end of file diff --git a/lib/main.dart b/lib/main.dart index d7087e9..cc1985c 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -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;