462 lines
19 KiB
Dart
462 lines
19 KiB
Dart
// FILE GENERATED AUTOMATICALLY, TO NOT EDIT BY HAND
|
|
// ignore_for_file: constant_identifier_names
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'gen/l10n.dart';
|
|
|
|
abstract class L10nStrings {
|
|
static const settings = 'settings';
|
|
static const password = 'password';
|
|
static const email_or_username = 'email_or_username';
|
|
static const posts = 'posts';
|
|
static const comments = 'comments';
|
|
static const modlog = 'modlog';
|
|
static const community = 'community';
|
|
static const url = 'url';
|
|
static const title = 'title';
|
|
static const body = 'body';
|
|
static const nsfw = 'nsfw';
|
|
static const post = 'post';
|
|
static const save = 'save';
|
|
static const subscribed = 'subscribed';
|
|
static const local = 'local';
|
|
static const all = 'all';
|
|
static const replies = 'replies';
|
|
static const mentions = 'mentions';
|
|
static const from = 'from';
|
|
static const to = 'to';
|
|
static const deleted_by_creator = 'deleted_by_creator';
|
|
static const more = 'more';
|
|
static const mark_as_read = 'mark_as_read';
|
|
static const mark_as_unread = 'mark_as_unread';
|
|
static const reply = 'reply';
|
|
static const edit = 'edit';
|
|
static const delete = 'delete';
|
|
static const restore = 'restore';
|
|
static const yes = 'yes';
|
|
static const no = 'no';
|
|
static const avatar = 'avatar';
|
|
static const banner = 'banner';
|
|
static const display_name = 'display_name';
|
|
static const bio = 'bio';
|
|
static const email = 'email';
|
|
static const matrix_user = 'matrix_user';
|
|
static const sort_type = 'sort_type';
|
|
static const type = 'type';
|
|
static const show_nsfw = 'show_nsfw';
|
|
static const send_notifications_to_email = 'send_notifications_to_email';
|
|
static const delete_account = 'delete_account';
|
|
static const saved = 'saved';
|
|
static const communities = 'communities';
|
|
static const users = 'users';
|
|
static const theme = 'theme';
|
|
static const language = 'language';
|
|
static const hot = 'hot';
|
|
static const new_ = 'new_';
|
|
static const old = 'old';
|
|
static const top = 'top';
|
|
static const chat = 'chat';
|
|
static const admin = 'admin';
|
|
static const by = 'by';
|
|
static const not_a_mod_or_admin = 'not_a_mod_or_admin';
|
|
static const not_an_admin = 'not_an_admin';
|
|
static const couldnt_find_post = 'couldnt_find_post';
|
|
static const not_logged_in = 'not_logged_in';
|
|
static const site_ban = 'site_ban';
|
|
static const community_ban = 'community_ban';
|
|
static const downvotes_disabled = 'downvotes_disabled';
|
|
static const invalid_url = 'invalid_url';
|
|
static const locked = 'locked';
|
|
static const couldnt_create_comment = 'couldnt_create_comment';
|
|
static const couldnt_like_comment = 'couldnt_like_comment';
|
|
static const couldnt_update_comment = 'couldnt_update_comment';
|
|
static const no_comment_edit_allowed = 'no_comment_edit_allowed';
|
|
static const couldnt_save_comment = 'couldnt_save_comment';
|
|
static const couldnt_get_comments = 'couldnt_get_comments';
|
|
static const report_reason_required = 'report_reason_required';
|
|
static const report_too_long = 'report_too_long';
|
|
static const couldnt_create_report = 'couldnt_create_report';
|
|
static const couldnt_resolve_report = 'couldnt_resolve_report';
|
|
static const invalid_post_title = 'invalid_post_title';
|
|
static const couldnt_create_post = 'couldnt_create_post';
|
|
static const couldnt_like_post = 'couldnt_like_post';
|
|
static const couldnt_find_community = 'couldnt_find_community';
|
|
static const couldnt_get_posts = 'couldnt_get_posts';
|
|
static const no_post_edit_allowed = 'no_post_edit_allowed';
|
|
static const couldnt_save_post = 'couldnt_save_post';
|
|
static const site_already_exists = 'site_already_exists';
|
|
static const couldnt_update_site = 'couldnt_update_site';
|
|
static const invalid_community_name = 'invalid_community_name';
|
|
static const community_already_exists = 'community_already_exists';
|
|
static const community_moderator_already_exists =
|
|
'community_moderator_already_exists';
|
|
static const community_follower_already_exists =
|
|
'community_follower_already_exists';
|
|
static const not_a_moderator = 'not_a_moderator';
|
|
static const couldnt_update_community = 'couldnt_update_community';
|
|
static const no_community_edit_allowed = 'no_community_edit_allowed';
|
|
static const system_err_login = 'system_err_login';
|
|
static const community_user_already_banned = 'community_user_already_banned';
|
|
static const couldnt_find_that_username_or_email =
|
|
'couldnt_find_that_username_or_email';
|
|
static const password_incorrect = 'password_incorrect';
|
|
static const registration_closed = 'registration_closed';
|
|
static const invalid_password = 'invalid_password';
|
|
static const passwords_dont_match = 'passwords_dont_match';
|
|
static const captcha_incorrect = 'captcha_incorrect';
|
|
static const invalid_username = 'invalid_username';
|
|
static const bio_length_overflow = 'bio_length_overflow';
|
|
static const couldnt_update_user = 'couldnt_update_user';
|
|
static const couldnt_update_private_message =
|
|
'couldnt_update_private_message';
|
|
static const couldnt_update_post = 'couldnt_update_post';
|
|
static const couldnt_create_private_message =
|
|
'couldnt_create_private_message';
|
|
static const no_private_message_edit_allowed =
|
|
'no_private_message_edit_allowed';
|
|
static const post_title_too_long = 'post_title_too_long';
|
|
static const email_already_exists = 'email_already_exists';
|
|
static const user_already_exists = 'user_already_exists';
|
|
static const number_of_users_online = 'number_of_users_online';
|
|
static const number_of_comments = 'number_of_comments';
|
|
static const number_of_posts = 'number_of_posts';
|
|
static const number_of_subscribers = 'number_of_subscribers';
|
|
static const number_of_users = 'number_of_users';
|
|
static const number_of_communities = 'number_of_communities';
|
|
static const unsubscribe = 'unsubscribe';
|
|
static const subscribe = 'subscribe';
|
|
static const messages = 'messages';
|
|
static const banned_users = 'banned_users';
|
|
static const delete_account_confirm = 'delete_account_confirm';
|
|
static const new_password = 'new_password';
|
|
static const verify_password = 'verify_password';
|
|
static const old_password = 'old_password';
|
|
static const show_avatars = 'show_avatars';
|
|
static const search = 'search';
|
|
static const send_message = 'send_message';
|
|
static const top_day = 'top_day';
|
|
static const top_week = 'top_week';
|
|
static const top_month = 'top_month';
|
|
static const top_year = 'top_year';
|
|
static const top_all = 'top_all';
|
|
static const most_comments = 'most_comments';
|
|
static const new_comments = 'new_comments';
|
|
static const active = 'active';
|
|
static const bot_account = 'bot_account';
|
|
static const show_bot_accounts = 'show_bot_accounts';
|
|
static const show_read_posts = 'show_read_posts';
|
|
static const site_not_set_up = 'site_not_set_up';
|
|
static const nerd_stuff = 'nerd_stuff';
|
|
static const open_in_browser = 'open_in_browser';
|
|
static const cannot_open_in_browser = 'cannot_open_in_browser';
|
|
static const about = 'about';
|
|
static const see_all = 'see_all';
|
|
static const admins = 'admins';
|
|
static const trending_communities = 'trending_communities';
|
|
static const communities_of_instance = 'communities_of_instance';
|
|
static const day = 'day';
|
|
static const week = 'week';
|
|
static const month = 'month';
|
|
static const six_months = 'six_months';
|
|
static const required_field = 'required_field';
|
|
static const no_communities_found = 'no_communities_found';
|
|
static const network_error = 'network_error';
|
|
}
|
|
|
|
extension L10nFromString on String {
|
|
String tr(BuildContext context) {
|
|
switch (this) {
|
|
case L10nStrings.settings:
|
|
return L10n.of(context).settings;
|
|
case L10nStrings.password:
|
|
return L10n.of(context).password;
|
|
case L10nStrings.email_or_username:
|
|
return L10n.of(context).email_or_username;
|
|
case L10nStrings.posts:
|
|
return L10n.of(context).posts;
|
|
case L10nStrings.comments:
|
|
return L10n.of(context).comments;
|
|
case L10nStrings.modlog:
|
|
return L10n.of(context).modlog;
|
|
case L10nStrings.community:
|
|
return L10n.of(context).community;
|
|
case L10nStrings.url:
|
|
return L10n.of(context).url;
|
|
case L10nStrings.title:
|
|
return L10n.of(context).title;
|
|
case L10nStrings.body:
|
|
return L10n.of(context).body;
|
|
case L10nStrings.nsfw:
|
|
return L10n.of(context).nsfw;
|
|
case L10nStrings.post:
|
|
return L10n.of(context).post;
|
|
case L10nStrings.save:
|
|
return L10n.of(context).save;
|
|
case L10nStrings.subscribed:
|
|
return L10n.of(context).subscribed;
|
|
case L10nStrings.local:
|
|
return L10n.of(context).local;
|
|
case L10nStrings.all:
|
|
return L10n.of(context).all;
|
|
case L10nStrings.replies:
|
|
return L10n.of(context).replies;
|
|
case L10nStrings.mentions:
|
|
return L10n.of(context).mentions;
|
|
case L10nStrings.from:
|
|
return L10n.of(context).from;
|
|
case L10nStrings.to:
|
|
return L10n.of(context).to;
|
|
case L10nStrings.deleted_by_creator:
|
|
return L10n.of(context).deleted_by_creator;
|
|
case L10nStrings.more:
|
|
return L10n.of(context).more;
|
|
case L10nStrings.mark_as_read:
|
|
return L10n.of(context).mark_as_read;
|
|
case L10nStrings.mark_as_unread:
|
|
return L10n.of(context).mark_as_unread;
|
|
case L10nStrings.reply:
|
|
return L10n.of(context).reply;
|
|
case L10nStrings.edit:
|
|
return L10n.of(context).edit;
|
|
case L10nStrings.delete:
|
|
return L10n.of(context).delete;
|
|
case L10nStrings.restore:
|
|
return L10n.of(context).restore;
|
|
case L10nStrings.yes:
|
|
return L10n.of(context).yes;
|
|
case L10nStrings.no:
|
|
return L10n.of(context).no;
|
|
case L10nStrings.avatar:
|
|
return L10n.of(context).avatar;
|
|
case L10nStrings.banner:
|
|
return L10n.of(context).banner;
|
|
case L10nStrings.display_name:
|
|
return L10n.of(context).display_name;
|
|
case L10nStrings.bio:
|
|
return L10n.of(context).bio;
|
|
case L10nStrings.email:
|
|
return L10n.of(context).email;
|
|
case L10nStrings.matrix_user:
|
|
return L10n.of(context).matrix_user;
|
|
case L10nStrings.sort_type:
|
|
return L10n.of(context).sort_type;
|
|
case L10nStrings.type:
|
|
return L10n.of(context).type;
|
|
case L10nStrings.show_nsfw:
|
|
return L10n.of(context).show_nsfw;
|
|
case L10nStrings.send_notifications_to_email:
|
|
return L10n.of(context).send_notifications_to_email;
|
|
case L10nStrings.delete_account:
|
|
return L10n.of(context).delete_account;
|
|
case L10nStrings.saved:
|
|
return L10n.of(context).saved;
|
|
case L10nStrings.communities:
|
|
return L10n.of(context).communities;
|
|
case L10nStrings.users:
|
|
return L10n.of(context).users;
|
|
case L10nStrings.theme:
|
|
return L10n.of(context).theme;
|
|
case L10nStrings.language:
|
|
return L10n.of(context).language;
|
|
case L10nStrings.hot:
|
|
return L10n.of(context).hot;
|
|
case L10nStrings.new_:
|
|
return L10n.of(context).new_;
|
|
case L10nStrings.old:
|
|
return L10n.of(context).old;
|
|
case L10nStrings.top:
|
|
return L10n.of(context).top;
|
|
case L10nStrings.chat:
|
|
return L10n.of(context).chat;
|
|
case L10nStrings.admin:
|
|
return L10n.of(context).admin;
|
|
case L10nStrings.by:
|
|
return L10n.of(context).by;
|
|
case L10nStrings.not_a_mod_or_admin:
|
|
return L10n.of(context).not_a_mod_or_admin;
|
|
case L10nStrings.not_an_admin:
|
|
return L10n.of(context).not_an_admin;
|
|
case L10nStrings.couldnt_find_post:
|
|
return L10n.of(context).couldnt_find_post;
|
|
case L10nStrings.not_logged_in:
|
|
return L10n.of(context).not_logged_in;
|
|
case L10nStrings.site_ban:
|
|
return L10n.of(context).site_ban;
|
|
case L10nStrings.community_ban:
|
|
return L10n.of(context).community_ban;
|
|
case L10nStrings.downvotes_disabled:
|
|
return L10n.of(context).downvotes_disabled;
|
|
case L10nStrings.invalid_url:
|
|
return L10n.of(context).invalid_url;
|
|
case L10nStrings.locked:
|
|
return L10n.of(context).locked;
|
|
case L10nStrings.couldnt_create_comment:
|
|
return L10n.of(context).couldnt_create_comment;
|
|
case L10nStrings.couldnt_like_comment:
|
|
return L10n.of(context).couldnt_like_comment;
|
|
case L10nStrings.couldnt_update_comment:
|
|
return L10n.of(context).couldnt_update_comment;
|
|
case L10nStrings.no_comment_edit_allowed:
|
|
return L10n.of(context).no_comment_edit_allowed;
|
|
case L10nStrings.couldnt_save_comment:
|
|
return L10n.of(context).couldnt_save_comment;
|
|
case L10nStrings.couldnt_get_comments:
|
|
return L10n.of(context).couldnt_get_comments;
|
|
case L10nStrings.report_reason_required:
|
|
return L10n.of(context).report_reason_required;
|
|
case L10nStrings.report_too_long:
|
|
return L10n.of(context).report_too_long;
|
|
case L10nStrings.couldnt_create_report:
|
|
return L10n.of(context).couldnt_create_report;
|
|
case L10nStrings.couldnt_resolve_report:
|
|
return L10n.of(context).couldnt_resolve_report;
|
|
case L10nStrings.invalid_post_title:
|
|
return L10n.of(context).invalid_post_title;
|
|
case L10nStrings.couldnt_create_post:
|
|
return L10n.of(context).couldnt_create_post;
|
|
case L10nStrings.couldnt_like_post:
|
|
return L10n.of(context).couldnt_like_post;
|
|
case L10nStrings.couldnt_find_community:
|
|
return L10n.of(context).couldnt_find_community;
|
|
case L10nStrings.couldnt_get_posts:
|
|
return L10n.of(context).couldnt_get_posts;
|
|
case L10nStrings.no_post_edit_allowed:
|
|
return L10n.of(context).no_post_edit_allowed;
|
|
case L10nStrings.couldnt_save_post:
|
|
return L10n.of(context).couldnt_save_post;
|
|
case L10nStrings.site_already_exists:
|
|
return L10n.of(context).site_already_exists;
|
|
case L10nStrings.couldnt_update_site:
|
|
return L10n.of(context).couldnt_update_site;
|
|
case L10nStrings.invalid_community_name:
|
|
return L10n.of(context).invalid_community_name;
|
|
case L10nStrings.community_already_exists:
|
|
return L10n.of(context).community_already_exists;
|
|
case L10nStrings.community_moderator_already_exists:
|
|
return L10n.of(context).community_moderator_already_exists;
|
|
case L10nStrings.community_follower_already_exists:
|
|
return L10n.of(context).community_follower_already_exists;
|
|
case L10nStrings.not_a_moderator:
|
|
return L10n.of(context).not_a_moderator;
|
|
case L10nStrings.couldnt_update_community:
|
|
return L10n.of(context).couldnt_update_community;
|
|
case L10nStrings.no_community_edit_allowed:
|
|
return L10n.of(context).no_community_edit_allowed;
|
|
case L10nStrings.system_err_login:
|
|
return L10n.of(context).system_err_login;
|
|
case L10nStrings.community_user_already_banned:
|
|
return L10n.of(context).community_user_already_banned;
|
|
case L10nStrings.couldnt_find_that_username_or_email:
|
|
return L10n.of(context).couldnt_find_that_username_or_email;
|
|
case L10nStrings.password_incorrect:
|
|
return L10n.of(context).password_incorrect;
|
|
case L10nStrings.registration_closed:
|
|
return L10n.of(context).registration_closed;
|
|
case L10nStrings.invalid_password:
|
|
return L10n.of(context).invalid_password;
|
|
case L10nStrings.passwords_dont_match:
|
|
return L10n.of(context).passwords_dont_match;
|
|
case L10nStrings.captcha_incorrect:
|
|
return L10n.of(context).captcha_incorrect;
|
|
case L10nStrings.invalid_username:
|
|
return L10n.of(context).invalid_username;
|
|
case L10nStrings.bio_length_overflow:
|
|
return L10n.of(context).bio_length_overflow;
|
|
case L10nStrings.couldnt_update_user:
|
|
return L10n.of(context).couldnt_update_user;
|
|
case L10nStrings.couldnt_update_private_message:
|
|
return L10n.of(context).couldnt_update_private_message;
|
|
case L10nStrings.couldnt_update_post:
|
|
return L10n.of(context).couldnt_update_post;
|
|
case L10nStrings.couldnt_create_private_message:
|
|
return L10n.of(context).couldnt_create_private_message;
|
|
case L10nStrings.no_private_message_edit_allowed:
|
|
return L10n.of(context).no_private_message_edit_allowed;
|
|
case L10nStrings.post_title_too_long:
|
|
return L10n.of(context).post_title_too_long;
|
|
case L10nStrings.email_already_exists:
|
|
return L10n.of(context).email_already_exists;
|
|
case L10nStrings.user_already_exists:
|
|
return L10n.of(context).user_already_exists;
|
|
case L10nStrings.unsubscribe:
|
|
return L10n.of(context).unsubscribe;
|
|
case L10nStrings.subscribe:
|
|
return L10n.of(context).subscribe;
|
|
case L10nStrings.messages:
|
|
return L10n.of(context).messages;
|
|
case L10nStrings.banned_users:
|
|
return L10n.of(context).banned_users;
|
|
case L10nStrings.delete_account_confirm:
|
|
return L10n.of(context).delete_account_confirm;
|
|
case L10nStrings.new_password:
|
|
return L10n.of(context).new_password;
|
|
case L10nStrings.verify_password:
|
|
return L10n.of(context).verify_password;
|
|
case L10nStrings.old_password:
|
|
return L10n.of(context).old_password;
|
|
case L10nStrings.show_avatars:
|
|
return L10n.of(context).show_avatars;
|
|
case L10nStrings.search:
|
|
return L10n.of(context).search;
|
|
case L10nStrings.send_message:
|
|
return L10n.of(context).send_message;
|
|
case L10nStrings.top_day:
|
|
return L10n.of(context).top_day;
|
|
case L10nStrings.top_week:
|
|
return L10n.of(context).top_week;
|
|
case L10nStrings.top_month:
|
|
return L10n.of(context).top_month;
|
|
case L10nStrings.top_year:
|
|
return L10n.of(context).top_year;
|
|
case L10nStrings.top_all:
|
|
return L10n.of(context).top_all;
|
|
case L10nStrings.most_comments:
|
|
return L10n.of(context).most_comments;
|
|
case L10nStrings.new_comments:
|
|
return L10n.of(context).new_comments;
|
|
case L10nStrings.active:
|
|
return L10n.of(context).active;
|
|
case L10nStrings.bot_account:
|
|
return L10n.of(context).bot_account;
|
|
case L10nStrings.show_bot_accounts:
|
|
return L10n.of(context).show_bot_accounts;
|
|
case L10nStrings.show_read_posts:
|
|
return L10n.of(context).show_read_posts;
|
|
case L10nStrings.site_not_set_up:
|
|
return L10n.of(context).site_not_set_up;
|
|
case L10nStrings.nerd_stuff:
|
|
return L10n.of(context).nerd_stuff;
|
|
case L10nStrings.open_in_browser:
|
|
return L10n.of(context).open_in_browser;
|
|
case L10nStrings.cannot_open_in_browser:
|
|
return L10n.of(context).cannot_open_in_browser;
|
|
case L10nStrings.about:
|
|
return L10n.of(context).about;
|
|
case L10nStrings.see_all:
|
|
return L10n.of(context).see_all;
|
|
case L10nStrings.admins:
|
|
return L10n.of(context).admins;
|
|
case L10nStrings.trending_communities:
|
|
return L10n.of(context).trending_communities;
|
|
case L10nStrings.day:
|
|
return L10n.of(context).day;
|
|
case L10nStrings.week:
|
|
return L10n.of(context).week;
|
|
case L10nStrings.month:
|
|
return L10n.of(context).month;
|
|
case L10nStrings.six_months:
|
|
return L10n.of(context).six_months;
|
|
case L10nStrings.required_field:
|
|
return L10n.of(context).required_field;
|
|
case L10nStrings.no_communities_found:
|
|
return L10n.of(context).no_communities_found;
|
|
case L10nStrings.network_error:
|
|
return L10n.of(context).network_error;
|
|
|
|
default:
|
|
return this;
|
|
}
|
|
}
|
|
}
|