978 lines
25 KiB
Dart
978 lines
25 KiB
Dart
import 'dart:async';
|
||
|
||
import 'package:flutter/foundation.dart';
|
||
import 'package:flutter/widgets.dart';
|
||
import 'package:flutter_localizations/flutter_localizations.dart';
|
||
import 'package:intl/intl.dart' as intl;
|
||
|
||
import 'app_localizations_de.dart';
|
||
import 'app_localizations_en.dart';
|
||
import 'app_localizations_fr.dart';
|
||
|
||
// ignore_for_file: type=lint
|
||
|
||
/// Callers can lookup localized strings with an instance of AppLocalizations
|
||
/// returned by `AppLocalizations.of(context)`.
|
||
///
|
||
/// Applications need to include `AppLocalizations.delegate()` in their app's
|
||
/// `localizationDelegates` list, and the locales they support in the app's
|
||
/// `supportedLocales` list. For example:
|
||
///
|
||
/// ```dart
|
||
/// import 'gen_l10n/app_localizations.dart';
|
||
///
|
||
/// return MaterialApp(
|
||
/// localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||
/// supportedLocales: AppLocalizations.supportedLocales,
|
||
/// home: MyApplicationHome(),
|
||
/// );
|
||
/// ```
|
||
///
|
||
/// ## Update pubspec.yaml
|
||
///
|
||
/// Please make sure to update your pubspec.yaml to include the following
|
||
/// packages:
|
||
///
|
||
/// ```yaml
|
||
/// dependencies:
|
||
/// # Internationalization support.
|
||
/// flutter_localizations:
|
||
/// sdk: flutter
|
||
/// intl: any # Use the pinned version from flutter_localizations
|
||
///
|
||
/// # Rest of dependencies
|
||
/// ```
|
||
///
|
||
/// ## iOS Applications
|
||
///
|
||
/// iOS applications define key application metadata, including supported
|
||
/// locales, in an Info.plist file that is built into the application bundle.
|
||
/// To configure the locales supported by your app, you’ll need to edit this
|
||
/// file.
|
||
///
|
||
/// First, open your project’s ios/Runner.xcworkspace Xcode workspace file.
|
||
/// Then, in the Project Navigator, open the Info.plist file under the Runner
|
||
/// project’s Runner folder.
|
||
///
|
||
/// Next, select the Information Property List item, select Add Item from the
|
||
/// Editor menu, then select Localizations from the pop-up menu.
|
||
///
|
||
/// Select and expand the newly-created Localizations item then, for each
|
||
/// locale your application supports, add a new item and select the locale
|
||
/// you wish to add from the pop-up menu in the Value field. This list should
|
||
/// be consistent with the languages listed in the AppLocalizations.supportedLocales
|
||
/// property.
|
||
abstract class AppLocalizations {
|
||
AppLocalizations(String locale)
|
||
: localeName = intl.Intl.canonicalizedLocale(locale.toString());
|
||
|
||
final String localeName;
|
||
|
||
static AppLocalizations? of(BuildContext context) {
|
||
return Localizations.of<AppLocalizations>(context, AppLocalizations);
|
||
}
|
||
|
||
static const LocalizationsDelegate<AppLocalizations> delegate =
|
||
_AppLocalizationsDelegate();
|
||
|
||
/// A list of this localizations delegate along with the default localizations
|
||
/// delegates.
|
||
///
|
||
/// Returns a list of localizations delegates containing this delegate along with
|
||
/// GlobalMaterialLocalizations.delegate, GlobalCupertinoLocalizations.delegate,
|
||
/// and GlobalWidgetsLocalizations.delegate.
|
||
///
|
||
/// Additional delegates can be added by appending to this list in
|
||
/// MaterialApp. This list does not have to be used at all if a custom list
|
||
/// of delegates is preferred or required.
|
||
static const List<LocalizationsDelegate<dynamic>> localizationsDelegates =
|
||
<LocalizationsDelegate<dynamic>>[
|
||
delegate,
|
||
GlobalMaterialLocalizations.delegate,
|
||
GlobalCupertinoLocalizations.delegate,
|
||
GlobalWidgetsLocalizations.delegate,
|
||
];
|
||
|
||
/// A list of this localizations delegate's supported locales.
|
||
static const List<Locale> supportedLocales = <Locale>[
|
||
Locale('de'),
|
||
Locale('en'),
|
||
Locale('fr')
|
||
];
|
||
|
||
/// No description provided for @menu_list.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Event list menu'**
|
||
String get menu_list;
|
||
|
||
/// No description provided for @language.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Language'**
|
||
String get language;
|
||
|
||
/// No description provided for @home.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Home'**
|
||
String get home;
|
||
|
||
/// No description provided for @settings.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Settings'**
|
||
String get settings;
|
||
|
||
/// No description provided for @update_profile.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Update profile'**
|
||
String get update_profile;
|
||
|
||
/// No description provided for @about.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'About'**
|
||
String get about;
|
||
|
||
/// No description provided for @log_out.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Log out'**
|
||
String get log_out;
|
||
|
||
/// No description provided for @french.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'French'**
|
||
String get french;
|
||
|
||
/// No description provided for @english.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'English'**
|
||
String get english;
|
||
|
||
/// No description provided for @german.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'German'**
|
||
String get german;
|
||
|
||
/// No description provided for @select_language.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Select language'**
|
||
String get select_language;
|
||
|
||
/// No description provided for @search_item.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Search by item'**
|
||
String get search_item;
|
||
|
||
/// No description provided for @search_tag.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Search by tags'**
|
||
String get search_tag;
|
||
|
||
/// No description provided for @search_geographical.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Search by geographical zone'**
|
||
String get search_geographical;
|
||
|
||
/// No description provided for @show_date_field.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Show Date Fields'**
|
||
String get show_date_field;
|
||
|
||
/// No description provided for @hide_date_field.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Hide Date Fields'**
|
||
String get hide_date_field;
|
||
|
||
/// No description provided for @no_data.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'No data available'**
|
||
String get no_data;
|
||
|
||
/// No description provided for @search.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Search'**
|
||
String get search;
|
||
|
||
/// No description provided for @no_events.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'No events available for this location.'**
|
||
String get no_events;
|
||
|
||
/// No description provided for @start_date.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Start date'**
|
||
String get start_date;
|
||
|
||
/// No description provided for @end_date.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'End date'**
|
||
String get end_date;
|
||
|
||
/// No description provided for @failed_suggestions.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Failed to load suggestions'**
|
||
String get failed_suggestions;
|
||
|
||
/// No description provided for @error.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Error'**
|
||
String get error;
|
||
|
||
/// No description provided for @password_different.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Must write a different password'**
|
||
String get password_different;
|
||
|
||
/// No description provided for @create.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Creation'**
|
||
String get create;
|
||
|
||
/// No description provided for @user_create.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Your user created'**
|
||
String get user_create;
|
||
|
||
/// No description provided for @user_update.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Your user updated'**
|
||
String get user_update;
|
||
|
||
/// No description provided for @request_error.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Poorly constructed query'**
|
||
String get request_error;
|
||
|
||
/// No description provided for @incorrect_password.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Incorrect password'**
|
||
String get incorrect_password;
|
||
|
||
/// No description provided for @unknown_user.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Unknown user'**
|
||
String get unknown_user;
|
||
|
||
/// No description provided for @disabled_user.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'User disabled'**
|
||
String get disabled_user;
|
||
|
||
/// No description provided for @invalid_token.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Invalid token'**
|
||
String get invalid_token;
|
||
|
||
/// No description provided for @internal_error_server.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Internal error server'**
|
||
String get internal_error_server;
|
||
|
||
/// No description provided for @unknown_error_auth.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Unknown error authentification'**
|
||
String get unknown_error_auth;
|
||
|
||
/// No description provided for @required_input.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Required input'**
|
||
String get required_input;
|
||
|
||
/// No description provided for @create_profile.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Create profile'**
|
||
String get create_profile;
|
||
|
||
/// No description provided for @edit_pseudo.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit pseudo'**
|
||
String get edit_pseudo;
|
||
|
||
/// No description provided for @password.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Password'**
|
||
String get password;
|
||
|
||
/// No description provided for @enter_password.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter the passord'**
|
||
String get enter_password;
|
||
|
||
/// No description provided for @password_confirmed.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Password confirmed'**
|
||
String get password_confirmed;
|
||
|
||
/// No description provided for @last_name.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Last name'**
|
||
String get last_name;
|
||
|
||
/// No description provided for @first_name.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'First name'**
|
||
String get first_name;
|
||
|
||
/// No description provided for @email.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Mail'**
|
||
String get email;
|
||
|
||
/// No description provided for @edit_last_name.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit name'**
|
||
String get edit_last_name;
|
||
|
||
/// No description provided for @edit_first_name.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit first name'**
|
||
String get edit_first_name;
|
||
|
||
/// No description provided for @edit_email.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit email address'**
|
||
String get edit_email;
|
||
|
||
/// No description provided for @birth_date.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Birth date'**
|
||
String get birth_date;
|
||
|
||
/// No description provided for @edit_birth.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit birth date'**
|
||
String get edit_birth;
|
||
|
||
/// No description provided for @create_profile_button.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Create profile'**
|
||
String get create_profile_button;
|
||
|
||
/// No description provided for @take_picture.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Take a picture'**
|
||
String get take_picture;
|
||
|
||
/// No description provided for @error_ia.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Google AI failed to analyze picture. Retry with another one'**
|
||
String get error_ia;
|
||
|
||
/// No description provided for @no_data_geo.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'No geographical data'**
|
||
String get no_data_geo;
|
||
|
||
/// No description provided for @response_status_update.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'response status code update'**
|
||
String get response_status_update;
|
||
|
||
/// No description provided for @error_token.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Token error'**
|
||
String get error_token;
|
||
|
||
/// No description provided for @error_format.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Data format error given by AI'**
|
||
String get error_format;
|
||
|
||
/// No description provided for @display_picture.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Display the Picture'**
|
||
String get display_picture;
|
||
|
||
/// No description provided for @analyze_image.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Image Analyze in progress'**
|
||
String get analyze_image;
|
||
|
||
/// No description provided for @loading_progress.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Loading progress'**
|
||
String get loading_progress;
|
||
|
||
/// No description provided for @error_event.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Event error'**
|
||
String get error_event;
|
||
|
||
/// No description provided for @no_future_event.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'No future event'**
|
||
String get no_future_event;
|
||
|
||
/// No description provided for @error_user.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Error user'**
|
||
String get error_user;
|
||
|
||
/// No description provided for @empty_input.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Empty input'**
|
||
String get empty_input;
|
||
|
||
/// No description provided for @info_event.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Event info'**
|
||
String get info_event;
|
||
|
||
/// No description provided for @event_already.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Event already exists'**
|
||
String get event_already;
|
||
|
||
/// No description provided for @picture_error.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Picture error'**
|
||
String get picture_error;
|
||
|
||
/// No description provided for @no_picture_published.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'No picture published'**
|
||
String get no_picture_published;
|
||
|
||
/// No description provided for @event_update.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Event updated'**
|
||
String get event_update;
|
||
|
||
/// No description provided for @location.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Location'**
|
||
String get location;
|
||
|
||
/// No description provided for @add_event.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Add or Update a event'**
|
||
String get add_event;
|
||
|
||
/// No description provided for @edit_image.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit pictures'**
|
||
String get edit_image;
|
||
|
||
/// No description provided for @name.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Name'**
|
||
String get name;
|
||
|
||
/// No description provided for @edit_event_name.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit event name'**
|
||
String get edit_event_name;
|
||
|
||
/// No description provided for @start_time.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Start time'**
|
||
String get start_time;
|
||
|
||
/// No description provided for @end_time.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'End time'**
|
||
String get end_time;
|
||
|
||
/// No description provided for @select_date.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Click to select a date'**
|
||
String get select_date;
|
||
|
||
/// No description provided for @select_time.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Click to select a time'**
|
||
String get select_time;
|
||
|
||
/// No description provided for @tag.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Tags'**
|
||
String get tag;
|
||
|
||
/// No description provided for @already_tag.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'You have already this tags'**
|
||
String get already_tag;
|
||
|
||
/// No description provided for @enter_tag.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter a tag'**
|
||
String get enter_tag;
|
||
|
||
/// No description provided for @organizer.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Organizer'**
|
||
String get organizer;
|
||
|
||
/// No description provided for @already_organiser.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'You have already a organizer'**
|
||
String get already_organiser;
|
||
|
||
/// No description provided for @enter_organizer.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter a organizer'**
|
||
String get enter_organizer;
|
||
|
||
/// No description provided for @description.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Description'**
|
||
String get description;
|
||
|
||
/// No description provided for @describe_event.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Describe event'**
|
||
String get describe_event;
|
||
|
||
/// No description provided for @add.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Add'**
|
||
String get add;
|
||
|
||
/// No description provided for @different_password_error.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Different password'**
|
||
String get different_password_error;
|
||
|
||
/// No description provided for @update.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Update'**
|
||
String get update;
|
||
|
||
/// No description provided for @updated.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Updated'**
|
||
String get updated;
|
||
|
||
/// No description provided for @settings_updated.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Settings updated'**
|
||
String get settings_updated;
|
||
|
||
/// No description provided for @define_kilometer.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Define Kilometer'**
|
||
String get define_kilometer;
|
||
|
||
/// No description provided for @email_sent.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Email has been sent'**
|
||
String get email_sent;
|
||
|
||
/// No description provided for @forgot_password.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Forgot password'**
|
||
String get forgot_password;
|
||
|
||
/// No description provided for @enter_email.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter the email'**
|
||
String get enter_email;
|
||
|
||
/// No description provided for @send_email.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Send email'**
|
||
String get send_email;
|
||
|
||
/// No description provided for @invalid_cache.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Invalid cache'**
|
||
String get invalid_cache;
|
||
|
||
/// No description provided for @item_date.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Date : '**
|
||
String get item_date;
|
||
|
||
/// No description provided for @item_maps.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Maps : '**
|
||
String get item_maps;
|
||
|
||
/// No description provided for @item_organizer.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Organizer : '**
|
||
String get item_organizer;
|
||
|
||
/// No description provided for @item_description.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Description : '**
|
||
String get item_description;
|
||
|
||
/// No description provided for @item_tags.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Tags : '**
|
||
String get item_tags;
|
||
|
||
/// No description provided for @failed_auth.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Authentification failed'**
|
||
String get failed_auth;
|
||
|
||
/// No description provided for @login_page.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Login page'**
|
||
String get login_page;
|
||
|
||
/// No description provided for @pseudo.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Pseudo'**
|
||
String get pseudo;
|
||
|
||
/// No description provided for @enter_existing_pseudo.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Enter a existing pseudo'**
|
||
String get enter_existing_pseudo;
|
||
|
||
/// No description provided for @remembr_me.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Remember me'**
|
||
String get remembr_me;
|
||
|
||
/// No description provided for @new_user.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'New User? Create Account'**
|
||
String get new_user;
|
||
|
||
/// No description provided for @sign_in.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Sign in'**
|
||
String get sign_in;
|
||
|
||
/// No description provided for @map_token.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Mapbox Access Token is not available'**
|
||
String get map_token;
|
||
|
||
/// No description provided for @geo_disabled.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Location services are disabled.'**
|
||
String get geo_disabled;
|
||
|
||
/// No description provided for @permission_denied.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Location permissions are denied.'**
|
||
String get permission_denied;
|
||
|
||
/// No description provided for @enable_permission.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Location permissions are permanently denied. Enable them in settings.'**
|
||
String get enable_permission;
|
||
|
||
/// No description provided for @no_last_position.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'No last known position available.'**
|
||
String get no_last_position;
|
||
|
||
/// No description provided for @failed_location.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Failed to get user location'**
|
||
String get failed_location;
|
||
|
||
/// No description provided for @failed_fetch.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Failed to fetch the route'**
|
||
String get failed_fetch;
|
||
|
||
/// No description provided for @invalid_coordinates_symbol.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Invalid coordinates, cannot add symbol.'**
|
||
String get invalid_coordinates_symbol;
|
||
|
||
/// No description provided for @error_symbol.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Error when adding symbol.'**
|
||
String get error_symbol;
|
||
|
||
/// No description provided for @position_not_init.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'User position is not yet initialized. Try again.'**
|
||
String get position_not_init;
|
||
|
||
/// No description provided for @invalid_coordinates.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Invalid coordinates.'**
|
||
String get invalid_coordinates;
|
||
|
||
/// No description provided for @walking.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Walking'**
|
||
String get walking;
|
||
|
||
/// No description provided for @cycling.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Cycling'**
|
||
String get cycling;
|
||
|
||
/// No description provided for @driving.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Driving'**
|
||
String get driving;
|
||
|
||
/// No description provided for @get_direction.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Get Directions and Markers'**
|
||
String get get_direction;
|
||
|
||
/// No description provided for @missing_token.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Missing access token'**
|
||
String get missing_token;
|
||
|
||
/// No description provided for @geocoding_error.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Error when geocoding'**
|
||
String get geocoding_error;
|
||
|
||
/// No description provided for @no_found_place.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'No found place'**
|
||
String get no_found_place;
|
||
|
||
/// No description provided for @upload_error.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Error when image uploading'**
|
||
String get upload_error;
|
||
|
||
/// No description provided for @event_added.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Event added'**
|
||
String get event_added;
|
||
|
||
/// No description provided for @unknown_error.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Unknown error'**
|
||
String get unknown_error;
|
||
|
||
/// No description provided for @app_error.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Application error'**
|
||
String get app_error;
|
||
|
||
/// No description provided for @at.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'at'**
|
||
String get at;
|
||
|
||
/// No description provided for @to_date.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'to'**
|
||
String get to_date;
|
||
|
||
/// No description provided for @item_link.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Link : '**
|
||
String get item_link;
|
||
|
||
/// No description provided for @item_ticket.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Ticket : '**
|
||
String get item_ticket;
|
||
|
||
/// No description provided for @link.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Link'**
|
||
String get link;
|
||
|
||
/// No description provided for @edit_link.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit link name'**
|
||
String get edit_link;
|
||
|
||
/// No description provided for @ticket.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Ticket'**
|
||
String get ticket;
|
||
|
||
/// No description provided for @edit_ticket.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Edit ticket link'**
|
||
String get edit_ticket;
|
||
|
||
/// No description provided for @toogle_interest.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Error toggle interest'**
|
||
String get toogle_interest;
|
||
|
||
/// No description provided for @error_update.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Error when updating'**
|
||
String get error_update;
|
||
|
||
/// No description provided for @count_interested.
|
||
///
|
||
/// In en, this message translates to:
|
||
/// **'Interested people number'**
|
||
String get count_interested;
|
||
}
|
||
|
||
class _AppLocalizationsDelegate
|
||
extends LocalizationsDelegate<AppLocalizations> {
|
||
const _AppLocalizationsDelegate();
|
||
|
||
@override
|
||
Future<AppLocalizations> load(Locale locale) {
|
||
return SynchronousFuture<AppLocalizations>(lookupAppLocalizations(locale));
|
||
}
|
||
|
||
@override
|
||
bool isSupported(Locale locale) =>
|
||
<String>['de', 'en', 'fr'].contains(locale.languageCode);
|
||
|
||
@override
|
||
bool shouldReload(_AppLocalizationsDelegate old) => false;
|
||
}
|
||
|
||
AppLocalizations lookupAppLocalizations(Locale locale) {
|
||
// Lookup logic when only language code is specified.
|
||
switch (locale.languageCode) {
|
||
case 'de':
|
||
return AppLocalizationsDe();
|
||
case 'en':
|
||
return AppLocalizationsEn();
|
||
case 'fr':
|
||
return AppLocalizationsFr();
|
||
}
|
||
|
||
throw FlutterError(
|
||
'AppLocalizations.delegate failed to load unsupported locale "$locale". This is likely '
|
||
'an issue with the localizations generation tool. Please file an issue '
|
||
'on GitHub with a reproducible sample app and the gen-l10n configuration '
|
||
'that was used.');
|
||
}
|