From 349653bbf4846c7283d0ec5624c3c6ab73328d52 Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Mon, 27 Oct 2025 20:11:11 +0000 Subject: [PATCH 01/17] began development for schdule message fixes --- .../lib/generated/intl/messages_all.dart | 10 +- .../lib/generated/intl/messages_en.dart | 650 ++++++----------- .../lib/generated/intl/messages_pt_PT.dart | 674 ++++++------------ packages/uni_app/lib/generated/l10n.dart | 616 +++++++++++++--- packages/uni_app/lib/l10n/intl_en.arb | 2 + packages/uni_app/lib/l10n/intl_pt_PT.arb | 2 + .../widgets/schedule/schedule_home_card.dart | 192 +++-- 7 files changed, 1105 insertions(+), 1041 deletions(-) diff --git a/packages/uni_app/lib/generated/intl/messages_all.dart b/packages/uni_app/lib/generated/intl/messages_all.dart index 4aa88b6e7..fb1bd2689 100644 --- a/packages/uni_app/lib/generated/intl/messages_all.dart +++ b/packages/uni_app/lib/generated/intl/messages_all.dart @@ -40,8 +40,7 @@ Future initializeMessages(String localeName) async { var availableLocale = Intl.verifiedLocale( localeName, (locale) => _deferredLibraries[locale] != null, - onFailure: (_) => null, - ); + onFailure: (_) => null); if (availableLocale == null) { return new Future.value(false); } @@ -61,11 +60,8 @@ bool _messagesExistFor(String locale) { } MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) { - var actualLocale = Intl.verifiedLocale( - locale, - _messagesExistFor, - onFailure: (_) => null, - ); + var actualLocale = Intl.verifiedLocale(locale, _messagesExistFor, + onFailure: (_) => null); if (actualLocale == null) return null; return _findExact(actualLocale); } diff --git a/packages/uni_app/lib/generated/intl/messages_en.dart b/packages/uni_app/lib/generated/intl/messages_en.dart index e75a90fca..b127fbc43 100644 --- a/packages/uni_app/lib/generated/intl/messages_en.dart +++ b/packages/uni_app/lib/generated/intl/messages_en.dart @@ -19,437 +19,237 @@ typedef String MessageIfAbsent(String messageStr, List args); class MessageLookup extends MessageLookupByLibrary { String get localeName => 'en'; - static m0(type) => - "${Intl.select(type, {'all_dishes': 'All dishes', 'meat_dishes': 'Meat dishes', 'fish_dishes': 'Fish dishes', 'vegetarian_dishes': 'Vegetarian dishes', 'soups': 'Soups', 'salads': 'Salads', 'diet_dishes': 'Diet dishes', 'dishes_of_the_day': 'Dishes of the Day', 'closed': 'Closed', 'other': 'Other'})}"; + static m0(type) => "${Intl.select(type, {'all_dishes': 'All dishes', 'meat_dishes': 'Meat dishes', 'fish_dishes': 'Fish dishes', 'vegetarian_dishes': 'Vegetarian dishes', 'soups': 'Soups', 'salads': 'Salads', 'diet_dishes': 'Diet dishes', 'dishes_of_the_day': 'Dishes of the Day', 'closed': 'Closed', 'other': 'Other', })}"; static m1(time) => "last refresh at ${time}"; - static m2(time) => - "${Intl.plural(time, zero: 'Refreshed ${time} minutes ago', one: 'Refreshed ${time} minute ago', other: 'Refreshed ${time} minutes ago')}"; + static m2(time) => "${Intl.plural(time, zero: 'Refreshed ${time} minutes ago', one: 'Refreshed ${time} minute ago', other: 'Refreshed ${time} minutes ago')}"; - static m3(title) => - "${Intl.select(title, {'horario': 'Schedule', 'exames': 'Exams', 'area': 'Personal Area', 'cadeiras': 'Course Units', 'autocarros': 'Buses', 'locais': 'Places', 'restaurantes': 'Restaurants', 'calendario': 'Calendar', 'biblioteca': 'Library', 'percurso_academico': 'Academic Path', 'mapa': 'Map', 'faculdade': 'Faculty', 'other': 'Other'})}"; + static m3(title) => "${Intl.select(title, {'horario': 'Schedule', 'exames': 'Exams', 'area': 'Personal Area', 'cadeiras': 'Course Units', 'autocarros': 'Buses', 'locais': 'Places', 'restaurantes': 'Restaurants', 'calendario': 'Calendar', 'biblioteca': 'Library', 'percurso_academico': 'Academic Path', 'mapa': 'Map', 'faculdade': 'Faculty', 'other': 'Other', })}"; - static m4(period) => - "${Intl.select(period, {'lunch': 'Lunch', 'dinner': 'Dinner', 'other': 'Other'})}"; + static m4(period) => "${Intl.select(period, {'lunch': 'Lunch', 'dinner': 'Dinner', 'other': 'Other', })}"; final messages = _notInlinedMessages(_notInlinedMessages); - static _notInlinedMessages(_) => { - "about": MessageLookupByLibrary.simpleMessage("About us"), - "academic_services": MessageLookupByLibrary.simpleMessage( - "Academic services", - ), - "account_card_title": MessageLookupByLibrary.simpleMessage( - "Checking account", - ), - "add": MessageLookupByLibrary.simpleMessage("Add"), - "add_photo": MessageLookupByLibrary.simpleMessage("Add photo"), - "add_quota": MessageLookupByLibrary.simpleMessage("Add quota"), - "add_restaurants": MessageLookupByLibrary.simpleMessage("Add restaurants"), - "add_to_calendar": MessageLookupByLibrary.simpleMessage("Add to calendar"), - "add_widget": MessageLookupByLibrary.simpleMessage("Add widget"), - "agree_terms": MessageLookupByLibrary.simpleMessage( - "By entering you agree with these", - ), - "all": MessageLookupByLibrary.simpleMessage("All"), - "all_feminine": MessageLookupByLibrary.simpleMessage("All"), - "all_widgets_added": MessageLookupByLibrary.simpleMessage( - "All available widgets have already been added to your personal area!", - ), - "apply": MessageLookupByLibrary.simpleMessage("Apply"), - "assessments": MessageLookupByLibrary.simpleMessage("Assessments"), - "at_least_one_college": MessageLookupByLibrary.simpleMessage( - "Select at least one college", - ), - "available_amount": MessageLookupByLibrary.simpleMessage( - "Available amount", - ), - "available_elements": MessageLookupByLibrary.simpleMessage( - "Available elements", - ), - "average": MessageLookupByLibrary.simpleMessage("Average"), - "balance": MessageLookupByLibrary.simpleMessage("Balance"), - "banner_info": MessageLookupByLibrary.simpleMessage( - "We collect anonymous usage data to help improve your experience. You can opt out anytime in the settings.", - ), - "bibliography": MessageLookupByLibrary.simpleMessage("Bibliography"), - "breakfast": MessageLookupByLibrary.simpleMessage("Breakfast"), - "bs_description": MessageLookupByLibrary.simpleMessage( - "Did you find any bugs in the application?\nDo you have any suggestions for the app?\nTell us so we can improve!", - ), - "bug_description": MessageLookupByLibrary.simpleMessage( - "Bug found, how to reproduce it, etc.", - ), - "bug_description_Suggestion": MessageLookupByLibrary.simpleMessage( - "Suggestion", - ), - "bug_description_error": MessageLookupByLibrary.simpleMessage("Error"), - "bug_description_other": MessageLookupByLibrary.simpleMessage("Other"), - "bug_description_unexpected_behaviour": - MessageLookupByLibrary.simpleMessage("Unexpected Behaviour"), - "bug_description_visual_detail": MessageLookupByLibrary.simpleMessage( - "Visual Detail", - ), - "bus_error": MessageLookupByLibrary.simpleMessage( - "Unable to get information", - ), - "bus_information": MessageLookupByLibrary.simpleMessage( - "Select the buses you want information about:", - ), - "buses_personalize": MessageLookupByLibrary.simpleMessage( - "Personalize your buses here", - ), - "buses_text": MessageLookupByLibrary.simpleMessage( - "Favorite buses will be displayed in the favorites \'Bus\' widget. The remaining ones will only be displayed on the page.", - ), - "calendar": MessageLookupByLibrary.simpleMessage("Calendar"), - "cancel": MessageLookupByLibrary.simpleMessage("Cancel"), - "change": MessageLookupByLibrary.simpleMessage("Change"), - "change_password": MessageLookupByLibrary.simpleMessage("Change password"), - "change_prompt": MessageLookupByLibrary.simpleMessage( - "Do you want to change the password?", - ), - "check_internet": MessageLookupByLibrary.simpleMessage( - "Check your internet connection", - ), - "class_registration": MessageLookupByLibrary.simpleMessage( - "Class Registration", - ), - "collect_usage_stats": MessageLookupByLibrary.simpleMessage( - "Collect usage statistics", - ), - "college": MessageLookupByLibrary.simpleMessage("College: "), - "college_select": MessageLookupByLibrary.simpleMessage( - "select your college(s)", - ), - "conclude": MessageLookupByLibrary.simpleMessage("Done"), - "configured_buses": MessageLookupByLibrary.simpleMessage( - "Configured Buses", - ), - "confirm": MessageLookupByLibrary.simpleMessage("Confirm"), - "confirm_logout": MessageLookupByLibrary.simpleMessage( - "Do you really want to log out? Your local data will be deleted and you will have to log in again.", - ), - "consent": MessageLookupByLibrary.simpleMessage( - "I consent to this information being reviewed by NIAEFEUP and may be deleted at my request.", - ), - "contact": MessageLookupByLibrary.simpleMessage("Contact (optional)"), - "copy_center": MessageLookupByLibrary.simpleMessage("Copy center"), - "copy_center_building": MessageLookupByLibrary.simpleMessage( - "Floor -1 of building B | AEFEUP building", - ), - "courseRegent": MessageLookupByLibrary.simpleMessage("Course Regent"), - "course_class": MessageLookupByLibrary.simpleMessage("Classes"), - "course_info": MessageLookupByLibrary.simpleMessage("Info"), - "courses": MessageLookupByLibrary.simpleMessage("Courses"), - "current_state": MessageLookupByLibrary.simpleMessage("Current state: "), - "current_year": MessageLookupByLibrary.simpleMessage( - "Current academic year: ", - ), - "decrement": MessageLookupByLibrary.simpleMessage("Decrement 1,00€"), - "description": MessageLookupByLibrary.simpleMessage("Description"), - "desired_email": MessageLookupByLibrary.simpleMessage( - "Email where you want to be contacted", - ), - "dinner": MessageLookupByLibrary.simpleMessage("Dinner"), - "dish_type": m0, - "dish_types": MessageLookupByLibrary.simpleMessage("Dish Types"), - "dona_bia": MessageLookupByLibrary.simpleMessage( - "D. Beatriz\'s stationery store", - ), - "dona_bia_building": MessageLookupByLibrary.simpleMessage( - "Floor -1 of building B (B-142)", - ), - "download_error": MessageLookupByLibrary.simpleMessage( - "Error downloading the file", - ), - "drag_and_drop": MessageLookupByLibrary.simpleMessage( - "Drag and drop elements", - ), - "ects": MessageLookupByLibrary.simpleMessage("ECTS performed: "), - "edit_off": MessageLookupByLibrary.simpleMessage("Edit"), - "edit_on": MessageLookupByLibrary.simpleMessage("Finish editing"), - "email": MessageLookupByLibrary.simpleMessage("Email"), - "empty_text": MessageLookupByLibrary.simpleMessage( - "Please fill in this field", - ), - "evaluation": MessageLookupByLibrary.simpleMessage("Evaluation"), - "exams": MessageLookupByLibrary.simpleMessage("Exams"), - "exams_filter": MessageLookupByLibrary.simpleMessage( - "Exams Filter Settings", - ), - "exit_confirm": MessageLookupByLibrary.simpleMessage( - "Do you really want to exit?", - ), - "expired_password": MessageLookupByLibrary.simpleMessage( - "Your password has expired", - ), - "fail_to_authenticate": MessageLookupByLibrary.simpleMessage( - "Failed to authenticate", - ), - "failed_login": MessageLookupByLibrary.simpleMessage("Login failed"), - "failed_upload": MessageLookupByLibrary.simpleMessage("Failed to upload"), - "favorite_filter": MessageLookupByLibrary.simpleMessage("Favorites"), - "fee_date": MessageLookupByLibrary.simpleMessage("Deadline"), - "fee_notification": MessageLookupByLibrary.simpleMessage("Fee deadline"), - "feedback_description": MessageLookupByLibrary.simpleMessage( - "Report an issue or suggest an improvement", - ), - "files": MessageLookupByLibrary.simpleMessage("Files"), - "first_year_registration": MessageLookupByLibrary.simpleMessage( - "Year of first registration: ", - ), - "floor": MessageLookupByLibrary.simpleMessage("Floor"), - "floors": MessageLookupByLibrary.simpleMessage("Floors"), - "forgot_password": MessageLookupByLibrary.simpleMessage("Forgot password?"), - "frequency": MessageLookupByLibrary.simpleMessage("Eligibility for exams"), - "generate_reference": MessageLookupByLibrary.simpleMessage( - "Generate reference", - ), - "geral_registration": MessageLookupByLibrary.simpleMessage( - "General Registration", - ), - "goi": MessageLookupByLibrary.simpleMessage( - "Orientation and Integration Office", - ), - "improvement_registration": MessageLookupByLibrary.simpleMessage( - "Enrollment for Improvement", - ), - "increment": MessageLookupByLibrary.simpleMessage("Increment 1,00€"), - "instructor": MessageLookupByLibrary.simpleMessage("Instructor"), - "instructors": MessageLookupByLibrary.simpleMessage("Instructors"), - "internet_status_exception": MessageLookupByLibrary.simpleMessage( - "Check your internet connection", - ), - "invalid_credentials": MessageLookupByLibrary.simpleMessage( - "Invalid credentials", - ), - "keep_login": MessageLookupByLibrary.simpleMessage("Remember me"), - "language": MessageLookupByLibrary.simpleMessage("Language"), - "last_refresh_time": m1, - "last_timestamp": m2, - "leave_feedback": MessageLookupByLibrary.simpleMessage("Leave feedback"), - "lectures": MessageLookupByLibrary.simpleMessage("Lectures"), - "library": MessageLookupByLibrary.simpleMessage("Library"), - "library_occupation": MessageLookupByLibrary.simpleMessage( - "Library Occupation", - ), - "load_error": MessageLookupByLibrary.simpleMessage( - "Error loading the information", - ), - "loading_terms": MessageLookupByLibrary.simpleMessage( - "Loading Terms and Conditions...", - ), - "location": MessageLookupByLibrary.simpleMessage("Location"), - "login": MessageLookupByLibrary.simpleMessage("Login"), - "login_with_credentials": MessageLookupByLibrary.simpleMessage( - "Login with credentials", - ), - "logout": MessageLookupByLibrary.simpleMessage("Log out"), - "lunch": MessageLookupByLibrary.simpleMessage("Lunch"), - "menus": MessageLookupByLibrary.simpleMessage("Menus"), - "min_value_reference": MessageLookupByLibrary.simpleMessage( - "Minimum value: 1,00 €", - ), - "multimedia_center": MessageLookupByLibrary.simpleMessage( - "Multimedia center", - ), - "nav_title": m3, - "news": MessageLookupByLibrary.simpleMessage("News"), - "no": MessageLookupByLibrary.simpleMessage("No"), - "noExamsScheduled": MessageLookupByLibrary.simpleMessage( - "No exams scheduled", - ), - "noInstructors": MessageLookupByLibrary.simpleMessage( - "No instructors assigned", - ), - "no_app": MessageLookupByLibrary.simpleMessage( - "No app found to open the file", - ), - "no_bus": MessageLookupByLibrary.simpleMessage("Don\'t miss any bus!"), - "no_bus_stops": MessageLookupByLibrary.simpleMessage("No configured stops"), - "no_class": MessageLookupByLibrary.simpleMessage( - "There are no classes to display", - ), - "no_classes": MessageLookupByLibrary.simpleMessage("No classes to present"), - "no_classes_on": MessageLookupByLibrary.simpleMessage( - "You don\'t have classes on", - ), - "no_classes_on_weekend": MessageLookupByLibrary.simpleMessage( - "You don\'t have classes on", - ), - "no_classes_this_week": MessageLookupByLibrary.simpleMessage( - "You have no classes this week", - ), - "no_college": MessageLookupByLibrary.simpleMessage("no college"), - "no_course_units": MessageLookupByLibrary.simpleMessage( - "No course units in the selected period", - ), - "no_courses": MessageLookupByLibrary.simpleMessage( - "No courses we\'re found", - ), - "no_courses_description": MessageLookupByLibrary.simpleMessage( - "Try to refresh the page", - ), - "no_data": MessageLookupByLibrary.simpleMessage( - "There is no data to show at this time", - ), - "no_date": MessageLookupByLibrary.simpleMessage("No date"), - "no_events": MessageLookupByLibrary.simpleMessage("No events found"), - "no_exams": MessageLookupByLibrary.simpleMessage( - "You have no exams scheduled\n", - ), - "no_exams_label": MessageLookupByLibrary.simpleMessage( - "Looks like you are on vacation!", - ), - "no_favorite_restaurants": MessageLookupByLibrary.simpleMessage( - "No favorite restaurants open", - ), - "no_files": MessageLookupByLibrary.simpleMessage( - "There\'s no files attached", - ), - "no_files_found": MessageLookupByLibrary.simpleMessage("No files found"), - "no_files_label": MessageLookupByLibrary.simpleMessage( - "You have nothing to see!", - ), - "no_info": MessageLookupByLibrary.simpleMessage( - "There is no information to display", - ), - "no_internet": MessageLookupByLibrary.simpleMessage( - "It looks like you\'re offline", - ), - "no_library_info": MessageLookupByLibrary.simpleMessage( - "No library occupation information available", - ), - "no_link": MessageLookupByLibrary.simpleMessage( - "We couldn\'t open the link", - ), - "no_menu_info": MessageLookupByLibrary.simpleMessage( - "There is no information available about meals", - ), - "no_menus": MessageLookupByLibrary.simpleMessage( - "There are no meals available", - ), - "no_name_course": MessageLookupByLibrary.simpleMessage("Unnamed course"), - "no_places_info": MessageLookupByLibrary.simpleMessage( - "There is no information available about places", - ), - "no_print_info": MessageLookupByLibrary.simpleMessage( - "No print balance information", - ), - "no_references": MessageLookupByLibrary.simpleMessage( - "There are no references to pay", - ), - "no_results": MessageLookupByLibrary.simpleMessage("No match"), - "no_selected_courses": MessageLookupByLibrary.simpleMessage( - "There are no course units to display", - ), - "no_selected_exams": MessageLookupByLibrary.simpleMessage( - "There are no exams to present", - ), - "no_trips": MessageLookupByLibrary.simpleMessage( - "No trips found at the moment", - ), - "notifications": MessageLookupByLibrary.simpleMessage("Notifications"), - "now": MessageLookupByLibrary.simpleMessage("Now"), - "occurrence_type": MessageLookupByLibrary.simpleMessage( - "Type of occurrence", - ), - "of_month": MessageLookupByLibrary.simpleMessage("of"), - "open_error": MessageLookupByLibrary.simpleMessage( - "Error opening the file", - ), - "other_links": MessageLookupByLibrary.simpleMessage("Other links"), - "pass_change_request": MessageLookupByLibrary.simpleMessage( - "For security reasons, passwords must be changed periodically.", - ), - "password": MessageLookupByLibrary.simpleMessage("Password"), - "pendent_references": MessageLookupByLibrary.simpleMessage( - "Pending references", - ), - "permission_denied": MessageLookupByLibrary.simpleMessage( - "Permission denied", - ), - "personal_assistance": MessageLookupByLibrary.simpleMessage( - "Face-to-face assistance", - ), - "press_again": MessageLookupByLibrary.simpleMessage("Press again to exit"), - "print": MessageLookupByLibrary.simpleMessage("Print"), - "print_balance": MessageLookupByLibrary.simpleMessage("Print balance"), - "prints": MessageLookupByLibrary.simpleMessage("Prints"), - "problem_id": MessageLookupByLibrary.simpleMessage( - "Brief identification of the problem", - ), - "program": MessageLookupByLibrary.simpleMessage("Program"), - "reference_sigarra_help": MessageLookupByLibrary.simpleMessage( - "The generated reference data will appear in Sigarra, checking account.\nProfile > Checking Account", - ), - "reference_success": MessageLookupByLibrary.simpleMessage( - "Reference created successfully!", - ), - "remaining_instructors": MessageLookupByLibrary.simpleMessage( - "Remaining Instructors", - ), - "remove": MessageLookupByLibrary.simpleMessage("Delete"), - "report_error": MessageLookupByLibrary.simpleMessage("Report error"), - "restaurant_main_page": MessageLookupByLibrary.simpleMessage( - "Do you want to see your favorite restaurants in the main page?", - ), - "restaurant_period": m4, - "restaurants": MessageLookupByLibrary.simpleMessage("Restaurants"), - "room": MessageLookupByLibrary.simpleMessage("Room"), - "save": MessageLookupByLibrary.simpleMessage("Save"), - "schedule": MessageLookupByLibrary.simpleMessage("Schedule"), - "school_calendar": MessageLookupByLibrary.simpleMessage("School Calendar"), - "search": MessageLookupByLibrary.simpleMessage("Search"), - "see_more": MessageLookupByLibrary.simpleMessage("See more"), - "select_all": MessageLookupByLibrary.simpleMessage("Select All"), - "semester": MessageLookupByLibrary.simpleMessage("Semester"), - "send": MessageLookupByLibrary.simpleMessage("Send"), - "sent_error": MessageLookupByLibrary.simpleMessage( - "An error occurred in sending", - ), - "services": MessageLookupByLibrary.simpleMessage("Services"), - "settings": MessageLookupByLibrary.simpleMessage("Settings"), - "snackbar": MessageLookupByLibrary.simpleMessage("Snackbar"), - "some_error": MessageLookupByLibrary.simpleMessage("Some error!"), - "stcp_stops": MessageLookupByLibrary.simpleMessage("STCP - Upcoming Trips"), - "student_number": MessageLookupByLibrary.simpleMessage("Student Number"), - "success": MessageLookupByLibrary.simpleMessage("Sent with success"), - "successful_open": MessageLookupByLibrary.simpleMessage( - "File opened successfully", - ), - "tele_assistance": MessageLookupByLibrary.simpleMessage( - "Telephone assistance", - ), - "tele_personal_assistance": MessageLookupByLibrary.simpleMessage( - "Face-to-face and telephone assistance", - ), - "telephone": MessageLookupByLibrary.simpleMessage("Telephone"), - "terms": MessageLookupByLibrary.simpleMessage("Terms and Conditions"), - "theme": MessageLookupByLibrary.simpleMessage("Theme"), - "title": MessageLookupByLibrary.simpleMessage("Title"), - "try_again": MessageLookupByLibrary.simpleMessage("Try again"), - "try_different_login": MessageLookupByLibrary.simpleMessage( - "Having trouble signing in?", - ), - "uc_info": MessageLookupByLibrary.simpleMessage("Open UC page"), - "ucs": MessageLookupByLibrary.simpleMessage("UCS"), - "unavailable": MessageLookupByLibrary.simpleMessage("Unavailable"), - "until": MessageLookupByLibrary.simpleMessage("Until"), - "valid_email": MessageLookupByLibrary.simpleMessage( - "Please enter a valid email", - ), - "view_course_details": MessageLookupByLibrary.simpleMessage( - "View course details", - ), - "widget_prompt": MessageLookupByLibrary.simpleMessage( - "Choose a widget to add to your personal area:", - ), - "wrong_credentials_exception": MessageLookupByLibrary.simpleMessage( - "Invalid credentials", - ), - "year": MessageLookupByLibrary.simpleMessage("Year"), - "yes": MessageLookupByLibrary.simpleMessage("Yes"), + static _notInlinedMessages(_) => { + "about" : MessageLookupByLibrary.simpleMessage("About us"), + "academic_services" : MessageLookupByLibrary.simpleMessage("Academic services"), + "account_card_title" : MessageLookupByLibrary.simpleMessage("Checking account"), + "add" : MessageLookupByLibrary.simpleMessage("Add"), + "add_photo" : MessageLookupByLibrary.simpleMessage("Add photo"), + "add_quota" : MessageLookupByLibrary.simpleMessage("Add quota"), + "add_restaurants" : MessageLookupByLibrary.simpleMessage("Add restaurants"), + "add_to_calendar" : MessageLookupByLibrary.simpleMessage("Add to calendar"), + "add_widget" : MessageLookupByLibrary.simpleMessage("Add widget"), + "agree_terms" : MessageLookupByLibrary.simpleMessage("By entering you agree with these"), + "all" : MessageLookupByLibrary.simpleMessage("All"), + "all_feminine" : MessageLookupByLibrary.simpleMessage("All"), + "all_widgets_added" : MessageLookupByLibrary.simpleMessage("All available widgets have already been added to your personal area!"), + "apply" : MessageLookupByLibrary.simpleMessage("Apply"), + "assessments" : MessageLookupByLibrary.simpleMessage("Assessments"), + "at_least_one_college" : MessageLookupByLibrary.simpleMessage("Select at least one college"), + "available_amount" : MessageLookupByLibrary.simpleMessage("Available amount"), + "available_elements" : MessageLookupByLibrary.simpleMessage("Available elements"), + "average" : MessageLookupByLibrary.simpleMessage("Average"), + "balance" : MessageLookupByLibrary.simpleMessage("Balance"), + "banner_info" : MessageLookupByLibrary.simpleMessage("We collect anonymous usage data to help improve your experience. You can opt out anytime in the settings."), + "bibliography" : MessageLookupByLibrary.simpleMessage("Bibliography"), + "breakfast" : MessageLookupByLibrary.simpleMessage("Breakfast"), + "bs_description" : MessageLookupByLibrary.simpleMessage("Did you find any bugs in the application?\nDo you have any suggestions for the app?\nTell us so we can improve!"), + "bug_description" : MessageLookupByLibrary.simpleMessage("Bug found, how to reproduce it, etc."), + "bug_description_Suggestion" : MessageLookupByLibrary.simpleMessage("Suggestion"), + "bug_description_error" : MessageLookupByLibrary.simpleMessage("Error"), + "bug_description_other" : MessageLookupByLibrary.simpleMessage("Other"), + "bug_description_unexpected_behaviour" : MessageLookupByLibrary.simpleMessage("Unexpected Behaviour"), + "bug_description_visual_detail" : MessageLookupByLibrary.simpleMessage("Visual Detail"), + "bus_error" : MessageLookupByLibrary.simpleMessage("Unable to get information"), + "bus_information" : MessageLookupByLibrary.simpleMessage("Select the buses you want information about:"), + "buses_personalize" : MessageLookupByLibrary.simpleMessage("Personalize your buses here"), + "buses_text" : MessageLookupByLibrary.simpleMessage("Favorite buses will be displayed in the favorites \'Bus\' widget. The remaining ones will only be displayed on the page."), + "calendar" : MessageLookupByLibrary.simpleMessage("Calendar"), + "cancel" : MessageLookupByLibrary.simpleMessage("Cancel"), + "change" : MessageLookupByLibrary.simpleMessage("Change"), + "change_password" : MessageLookupByLibrary.simpleMessage("Change password"), + "change_prompt" : MessageLookupByLibrary.simpleMessage("Do you want to change the password?"), + "check_internet" : MessageLookupByLibrary.simpleMessage("Check your internet connection"), + "class_registration" : MessageLookupByLibrary.simpleMessage("Class Registration"), + "collect_usage_stats" : MessageLookupByLibrary.simpleMessage("Collect usage statistics"), + "college" : MessageLookupByLibrary.simpleMessage("College: "), + "college_select" : MessageLookupByLibrary.simpleMessage("select your college(s)"), + "conclude" : MessageLookupByLibrary.simpleMessage("Done"), + "configured_buses" : MessageLookupByLibrary.simpleMessage("Configured Buses"), + "confirm" : MessageLookupByLibrary.simpleMessage("Confirm"), + "confirm_logout" : MessageLookupByLibrary.simpleMessage("Do you really want to log out? Your local data will be deleted and you will have to log in again."), + "consent" : MessageLookupByLibrary.simpleMessage("I consent to this information being reviewed by NIAEFEUP and may be deleted at my request."), + "contact" : MessageLookupByLibrary.simpleMessage("Contact (optional)"), + "copy_center" : MessageLookupByLibrary.simpleMessage("Copy center"), + "copy_center_building" : MessageLookupByLibrary.simpleMessage("Floor -1 of building B | AEFEUP building"), + "courseRegent" : MessageLookupByLibrary.simpleMessage("Course Regent"), + "course_class" : MessageLookupByLibrary.simpleMessage("Classes"), + "course_info" : MessageLookupByLibrary.simpleMessage("Info"), + "courses" : MessageLookupByLibrary.simpleMessage("Courses"), + "current_state" : MessageLookupByLibrary.simpleMessage("Current state: "), + "current_year" : MessageLookupByLibrary.simpleMessage("Current academic year: "), + "decrement" : MessageLookupByLibrary.simpleMessage("Decrement 1,00€"), + "description" : MessageLookupByLibrary.simpleMessage("Description"), + "desired_email" : MessageLookupByLibrary.simpleMessage("Email where you want to be contacted"), + "dinner" : MessageLookupByLibrary.simpleMessage("Dinner"), + "dish_type" : m0, + "dish_types" : MessageLookupByLibrary.simpleMessage("Dish Types"), + "dona_bia" : MessageLookupByLibrary.simpleMessage("D. Beatriz\'s stationery store"), + "dona_bia_building" : MessageLookupByLibrary.simpleMessage("Floor -1 of building B (B-142)"), + "download_error" : MessageLookupByLibrary.simpleMessage("Error downloading the file"), + "drag_and_drop" : MessageLookupByLibrary.simpleMessage("Drag and drop elements"), + "ects" : MessageLookupByLibrary.simpleMessage("ECTS performed: "), + "edit_off" : MessageLookupByLibrary.simpleMessage("Edit"), + "edit_on" : MessageLookupByLibrary.simpleMessage("Finish editing"), + "email" : MessageLookupByLibrary.simpleMessage("Email"), + "empty_text" : MessageLookupByLibrary.simpleMessage("Please fill in this field"), + "evaluation" : MessageLookupByLibrary.simpleMessage("Evaluation"), + "exams" : MessageLookupByLibrary.simpleMessage("Exams"), + "exams_filter" : MessageLookupByLibrary.simpleMessage("Exams Filter Settings"), + "exit_confirm" : MessageLookupByLibrary.simpleMessage("Do you really want to exit?"), + "expired_password" : MessageLookupByLibrary.simpleMessage("Your password has expired"), + "fail_to_authenticate" : MessageLookupByLibrary.simpleMessage("Failed to authenticate"), + "failed_login" : MessageLookupByLibrary.simpleMessage("Login failed"), + "failed_upload" : MessageLookupByLibrary.simpleMessage("Failed to upload"), + "favorite_filter" : MessageLookupByLibrary.simpleMessage("Favorites"), + "fee_date" : MessageLookupByLibrary.simpleMessage("Deadline"), + "fee_notification" : MessageLookupByLibrary.simpleMessage("Fee deadline"), + "feedback_description" : MessageLookupByLibrary.simpleMessage("Report an issue or suggest an improvement"), + "files" : MessageLookupByLibrary.simpleMessage("Files"), + "first_year_registration" : MessageLookupByLibrary.simpleMessage("Year of first registration: "), + "floor" : MessageLookupByLibrary.simpleMessage("Floor"), + "floors" : MessageLookupByLibrary.simpleMessage("Floors"), + "forgot_password" : MessageLookupByLibrary.simpleMessage("Forgot password?"), + "frequency" : MessageLookupByLibrary.simpleMessage("Eligibility for exams"), + "generate_reference" : MessageLookupByLibrary.simpleMessage("Generate reference"), + "geral_registration" : MessageLookupByLibrary.simpleMessage("General Registration"), + "goi" : MessageLookupByLibrary.simpleMessage("Orientation and Integration Office"), + "improvement_registration" : MessageLookupByLibrary.simpleMessage("Enrollment for Improvement"), + "increment" : MessageLookupByLibrary.simpleMessage("Increment 1,00€"), + "instructor" : MessageLookupByLibrary.simpleMessage("Instructor"), + "instructors" : MessageLookupByLibrary.simpleMessage("Instructors"), + "internet_status_exception" : MessageLookupByLibrary.simpleMessage("Check your internet connection"), + "invalid_credentials" : MessageLookupByLibrary.simpleMessage("Invalid credentials"), + "keep_login" : MessageLookupByLibrary.simpleMessage("Remember me"), + "language" : MessageLookupByLibrary.simpleMessage("Language"), + "last_refresh_time" : m1, + "last_timestamp" : m2, + "leave_feedback" : MessageLookupByLibrary.simpleMessage("Leave feedback"), + "lectures" : MessageLookupByLibrary.simpleMessage("Lectures"), + "library" : MessageLookupByLibrary.simpleMessage("Library"), + "library_occupation" : MessageLookupByLibrary.simpleMessage("Library Occupation"), + "load_error" : MessageLookupByLibrary.simpleMessage("Error loading the information"), + "loading_terms" : MessageLookupByLibrary.simpleMessage("Loading Terms and Conditions..."), + "location" : MessageLookupByLibrary.simpleMessage("Location"), + "login" : MessageLookupByLibrary.simpleMessage("Login"), + "login_with_credentials" : MessageLookupByLibrary.simpleMessage("Login with credentials"), + "logout" : MessageLookupByLibrary.simpleMessage("Log out"), + "lunch" : MessageLookupByLibrary.simpleMessage("Lunch"), + "menus" : MessageLookupByLibrary.simpleMessage("Menus"), + "min_value_reference" : MessageLookupByLibrary.simpleMessage("Minimum value: 1,00 €"), + "multimedia_center" : MessageLookupByLibrary.simpleMessage("Multimedia center"), + "nav_title" : m3, + "news" : MessageLookupByLibrary.simpleMessage("News"), + "no" : MessageLookupByLibrary.simpleMessage("No"), + "noExamsScheduled" : MessageLookupByLibrary.simpleMessage("No exams scheduled"), + "noInstructors" : MessageLookupByLibrary.simpleMessage("No instructors assigned"), + "no_app" : MessageLookupByLibrary.simpleMessage("No app found to open the file"), + "no_bus" : MessageLookupByLibrary.simpleMessage("Don\'t miss any bus!"), + "no_bus_stops" : MessageLookupByLibrary.simpleMessage("No configured stops"), + "no_class" : MessageLookupByLibrary.simpleMessage("There are no classes to display"), + "no_classes" : MessageLookupByLibrary.simpleMessage("No classes to present"), + "no_classes_on" : MessageLookupByLibrary.simpleMessage("You don\'t have classes on"), + "no_classes_on_weekend" : MessageLookupByLibrary.simpleMessage("You don\'t have classes on"), + "no_classes_this_week" : MessageLookupByLibrary.simpleMessage("You have no classes this week"), + "no_classes_today" : MessageLookupByLibrary.simpleMessage("You don\'t have any more classes today.\n Here are your next classes for: \n"), + "no_college" : MessageLookupByLibrary.simpleMessage("no college"), + "no_course_units" : MessageLookupByLibrary.simpleMessage("No course units in the selected period"), + "no_courses" : MessageLookupByLibrary.simpleMessage("No courses we\'re found"), + "no_courses_description" : MessageLookupByLibrary.simpleMessage("Try to refresh the page"), + "no_data" : MessageLookupByLibrary.simpleMessage("There is no data to show at this time"), + "no_date" : MessageLookupByLibrary.simpleMessage("No date"), + "no_events" : MessageLookupByLibrary.simpleMessage("No events found"), + "no_exams" : MessageLookupByLibrary.simpleMessage("You have no exams scheduled\n"), + "no_exams_label" : MessageLookupByLibrary.simpleMessage("Looks like you are on vacation!"), + "no_favorite_restaurants" : MessageLookupByLibrary.simpleMessage("No favorite restaurants open"), + "no_files" : MessageLookupByLibrary.simpleMessage("There\'s no files attached"), + "no_files_found" : MessageLookupByLibrary.simpleMessage("No files found"), + "no_files_label" : MessageLookupByLibrary.simpleMessage("You have nothing to see!"), + "no_info" : MessageLookupByLibrary.simpleMessage("There is no information to display"), + "no_internet" : MessageLookupByLibrary.simpleMessage("It looks like you\'re offline"), + "no_library_info" : MessageLookupByLibrary.simpleMessage("No library occupation information available"), + "no_link" : MessageLookupByLibrary.simpleMessage("We couldn\'t open the link"), + "no_menu_info" : MessageLookupByLibrary.simpleMessage("There is no information available about meals"), + "no_menus" : MessageLookupByLibrary.simpleMessage("There are no meals available"), + "no_name_course" : MessageLookupByLibrary.simpleMessage("Unnamed course"), + "no_places_info" : MessageLookupByLibrary.simpleMessage("There is no information available about places"), + "no_print_info" : MessageLookupByLibrary.simpleMessage("No print balance information"), + "no_references" : MessageLookupByLibrary.simpleMessage("There are no references to pay"), + "no_results" : MessageLookupByLibrary.simpleMessage("No match"), + "no_selected_courses" : MessageLookupByLibrary.simpleMessage("There are no course units to display"), + "no_selected_exams" : MessageLookupByLibrary.simpleMessage("There are no exams to present"), + "no_trips" : MessageLookupByLibrary.simpleMessage("No trips found at the moment"), + "notifications" : MessageLookupByLibrary.simpleMessage("Notifications"), + "now" : MessageLookupByLibrary.simpleMessage("Now"), + "occurrence_type" : MessageLookupByLibrary.simpleMessage("Type of occurrence"), + "of_month" : MessageLookupByLibrary.simpleMessage("of"), + "open_error" : MessageLookupByLibrary.simpleMessage("Error opening the file"), + "other_links" : MessageLookupByLibrary.simpleMessage("Other links"), + "pass_change_request" : MessageLookupByLibrary.simpleMessage("For security reasons, passwords must be changed periodically."), + "password" : MessageLookupByLibrary.simpleMessage("Password"), + "pendent_references" : MessageLookupByLibrary.simpleMessage("Pending references"), + "permission_denied" : MessageLookupByLibrary.simpleMessage("Permission denied"), + "personal_assistance" : MessageLookupByLibrary.simpleMessage("Face-to-face assistance"), + "press_again" : MessageLookupByLibrary.simpleMessage("Press again to exit"), + "print" : MessageLookupByLibrary.simpleMessage("Print"), + "print_balance" : MessageLookupByLibrary.simpleMessage("Print balance"), + "prints" : MessageLookupByLibrary.simpleMessage("Prints"), + "problem_id" : MessageLookupByLibrary.simpleMessage("Brief identification of the problem"), + "program" : MessageLookupByLibrary.simpleMessage("Program"), + "reference_sigarra_help" : MessageLookupByLibrary.simpleMessage("The generated reference data will appear in Sigarra, checking account.\nProfile > Checking Account"), + "reference_success" : MessageLookupByLibrary.simpleMessage("Reference created successfully!"), + "remaining_instructors" : MessageLookupByLibrary.simpleMessage("Remaining Instructors"), + "remove" : MessageLookupByLibrary.simpleMessage("Delete"), + "report_error" : MessageLookupByLibrary.simpleMessage("Report error"), + "restaurant_main_page" : MessageLookupByLibrary.simpleMessage("Do you want to see your favorite restaurants in the main page?"), + "restaurant_period" : m4, + "restaurants" : MessageLookupByLibrary.simpleMessage("Restaurants"), + "room" : MessageLookupByLibrary.simpleMessage("Room"), + "save" : MessageLookupByLibrary.simpleMessage("Save"), + "schedule" : MessageLookupByLibrary.simpleMessage("Schedule"), + "school_calendar" : MessageLookupByLibrary.simpleMessage("School Calendar"), + "search" : MessageLookupByLibrary.simpleMessage("Search"), + "see_more" : MessageLookupByLibrary.simpleMessage("See more"), + "select_all" : MessageLookupByLibrary.simpleMessage("Select All"), + "semester" : MessageLookupByLibrary.simpleMessage("Semester"), + "send" : MessageLookupByLibrary.simpleMessage("Send"), + "sent_error" : MessageLookupByLibrary.simpleMessage("An error occurred in sending"), + "services" : MessageLookupByLibrary.simpleMessage("Services"), + "settings" : MessageLookupByLibrary.simpleMessage("Settings"), + "snackbar" : MessageLookupByLibrary.simpleMessage("Snackbar"), + "some_error" : MessageLookupByLibrary.simpleMessage("Some error!"), + "stcp_stops" : MessageLookupByLibrary.simpleMessage("STCP - Upcoming Trips"), + "student_number" : MessageLookupByLibrary.simpleMessage("Student Number"), + "success" : MessageLookupByLibrary.simpleMessage("Sent with success"), + "successful_open" : MessageLookupByLibrary.simpleMessage("File opened successfully"), + "tele_assistance" : MessageLookupByLibrary.simpleMessage("Telephone assistance"), + "tele_personal_assistance" : MessageLookupByLibrary.simpleMessage("Face-to-face and telephone assistance"), + "telephone" : MessageLookupByLibrary.simpleMessage("Telephone"), + "terms" : MessageLookupByLibrary.simpleMessage("Terms and Conditions"), + "theme" : MessageLookupByLibrary.simpleMessage("Theme"), + "title" : MessageLookupByLibrary.simpleMessage("Title"), + "try_again" : MessageLookupByLibrary.simpleMessage("Try again"), + "try_different_login" : MessageLookupByLibrary.simpleMessage("Having trouble signing in?"), + "uc_info" : MessageLookupByLibrary.simpleMessage("Open UC page"), + "ucs" : MessageLookupByLibrary.simpleMessage("UCS"), + "unavailable" : MessageLookupByLibrary.simpleMessage("Unavailable"), + "until" : MessageLookupByLibrary.simpleMessage("Until"), + "valid_email" : MessageLookupByLibrary.simpleMessage("Please enter a valid email"), + "view_course_details" : MessageLookupByLibrary.simpleMessage("View course details"), + "widget_prompt" : MessageLookupByLibrary.simpleMessage("Choose a widget to add to your personal area:"), + "wrong_credentials_exception" : MessageLookupByLibrary.simpleMessage("Invalid credentials"), + "year" : MessageLookupByLibrary.simpleMessage("Year"), + "yes" : MessageLookupByLibrary.simpleMessage("Yes") }; } diff --git a/packages/uni_app/lib/generated/intl/messages_pt_PT.dart b/packages/uni_app/lib/generated/intl/messages_pt_PT.dart index a98af7881..d7c8bc66d 100644 --- a/packages/uni_app/lib/generated/intl/messages_pt_PT.dart +++ b/packages/uni_app/lib/generated/intl/messages_pt_PT.dart @@ -19,461 +19,237 @@ typedef String MessageIfAbsent(String messageStr, List args); class MessageLookup extends MessageLookupByLibrary { String get localeName => 'pt_PT'; - static m0(type) => - "${Intl.select(type, {'all_dishes': 'Todos os pratos', 'meat_dishes': 'Pratos de Carne', 'fish_dishes': 'Pratos de Peixe', 'vegetarian_dishes': 'Pratos Vegetarianos', 'soups': 'Sopas', 'salads': 'Saladas', 'diet_dishes': 'Pratos de Dieta', 'dishes_of_the_day': 'Pratos do Dia', 'closed': 'Encerrado', 'other': 'Outros'})}"; + static m0(type) => "${Intl.select(type, {'all_dishes': 'Todos os pratos', 'meat_dishes': 'Pratos de Carne', 'fish_dishes': 'Pratos de Peixe', 'vegetarian_dishes': 'Pratos Vegetarianos', 'soups': 'Sopas', 'salads': 'Saladas', 'diet_dishes': 'Pratos de Dieta', 'dishes_of_the_day': 'Pratos do Dia', 'closed': 'Encerrado', 'other': 'Outros', })}"; static m1(time) => "última atualização às ${time}"; - static m2(time) => - "${Intl.plural(time, zero: 'Atualizado há ${time} minutos', one: 'Atualizado há ${time} minuto', other: 'Atualizado há ${time} minutos')}"; + static m2(time) => "${Intl.plural(time, zero: 'Atualizado há ${time} minutos', one: 'Atualizado há ${time} minuto', other: 'Atualizado há ${time} minutos')}"; - static m3(title) => - "${Intl.select(title, {'horario': 'Horário', 'exames': 'Exames', 'area': 'Área Pessoal', 'cadeiras': 'Cadeiras', 'autocarros': 'Autocarros', 'locais': 'Locais', 'restaurantes': 'Restaurantes', 'calendario': 'Calendário', 'biblioteca': 'Biblioteca', 'percurso_academico': 'Percurso Académico', 'mapa': 'Mapa', 'faculdade': 'Faculdade', 'other': 'Outros'})}"; + static m3(title) => "${Intl.select(title, {'horario': 'Horário', 'exames': 'Exames', 'area': 'Área Pessoal', 'cadeiras': 'Cadeiras', 'autocarros': 'Autocarros', 'locais': 'Locais', 'restaurantes': 'Restaurantes', 'calendario': 'Calendário', 'biblioteca': 'Biblioteca', 'percurso_academico': 'Percurso Académico', 'mapa': 'Mapa', 'faculdade': 'Faculdade', 'other': 'Outros', })}"; - static m4(period) => - "${Intl.select(period, {'lunch': 'Almoço', 'dinner': 'Jantar', 'other': 'Other'})}"; + static m4(period) => "${Intl.select(period, {'lunch': 'Almoço', 'dinner': 'Jantar', 'other': 'Other', })}"; final messages = _notInlinedMessages(_notInlinedMessages); - static _notInlinedMessages(_) => { - "about": MessageLookupByLibrary.simpleMessage("Sobre nós"), - "academic_services": MessageLookupByLibrary.simpleMessage( - "Serviços académicos", - ), - "account_card_title": MessageLookupByLibrary.simpleMessage( - "Conta Corrente", - ), - "add": MessageLookupByLibrary.simpleMessage("Adicionar"), - "add_photo": MessageLookupByLibrary.simpleMessage("Adicionar foto"), - "add_quota": MessageLookupByLibrary.simpleMessage("Adicionar quota"), - "add_restaurants": MessageLookupByLibrary.simpleMessage( - "Adicione restaurantes", - ), - "add_to_calendar": MessageLookupByLibrary.simpleMessage( - "Adicionar ao calendário", - ), - "add_widget": MessageLookupByLibrary.simpleMessage("Adicionar widget"), - "agree_terms": MessageLookupByLibrary.simpleMessage( - "Ao entrares confirmas que concordas com estes", - ), - "all": MessageLookupByLibrary.simpleMessage("Todos"), - "all_feminine": MessageLookupByLibrary.simpleMessage("Todas"), - "all_widgets_added": MessageLookupByLibrary.simpleMessage( - "Todos os widgets disponíveis já foram adicionados à tua área pessoal!", - ), - "apply": MessageLookupByLibrary.simpleMessage("Aplicar"), - "assessments": MessageLookupByLibrary.simpleMessage("Avaliações"), - "at_least_one_college": MessageLookupByLibrary.simpleMessage( - "Seleciona pelo menos uma faculdade", - ), - "available_amount": MessageLookupByLibrary.simpleMessage( - "Valor disponível", - ), - "available_elements": MessageLookupByLibrary.simpleMessage( - "Elementos disponíveis", - ), - "average": MessageLookupByLibrary.simpleMessage("Média"), - "balance": MessageLookupByLibrary.simpleMessage("Saldo"), - "banner_info": MessageLookupByLibrary.simpleMessage( - "Recolhemos dados anónimos de utilização para ajudar a melhorar a sua experiência. Pode desativar esta opção a qualquer momento nas definições", - ), - "bibliography": MessageLookupByLibrary.simpleMessage("Bibliografia"), - "breakfast": MessageLookupByLibrary.simpleMessage("Pequeno Almoço"), - "bs_description": MessageLookupByLibrary.simpleMessage( - "Encontraste algum bug na aplicação?\nTens alguma sugestão para a app?\nConta-nos para que possamos melhorar!", - ), - "bug_description": MessageLookupByLibrary.simpleMessage( - "Bug encontrado, como o reproduzir, etc", - ), - "bug_description_Suggestion": MessageLookupByLibrary.simpleMessage( - "Sugestão", - ), - "bug_description_error": MessageLookupByLibrary.simpleMessage("Erro"), - "bug_description_other": MessageLookupByLibrary.simpleMessage("Outro"), - "bug_description_unexpected_behaviour": - MessageLookupByLibrary.simpleMessage("Comportamento Inesperado"), - "bug_description_visual_detail": MessageLookupByLibrary.simpleMessage( - "Detalhe Visual", - ), - "bus_error": MessageLookupByLibrary.simpleMessage( - "Não foi possível obter informação", - ), - "bus_information": MessageLookupByLibrary.simpleMessage( - "Seleciona os autocarros dos quais queres informação:", - ), - "buses_personalize": MessageLookupByLibrary.simpleMessage( - "Configura aqui os teus autocarros", - ), - "buses_text": MessageLookupByLibrary.simpleMessage( - "Os autocarros favoritos serão apresentados no widget \'Autocarros\' dos favoritos. Os restantes serão apresentados apenas na página.", - ), - "calendar": MessageLookupByLibrary.simpleMessage("Calendário"), - "cancel": MessageLookupByLibrary.simpleMessage("Cancelar"), - "change": MessageLookupByLibrary.simpleMessage("Alterar"), - "change_password": MessageLookupByLibrary.simpleMessage( - "Alterar palavra-passe", - ), - "change_prompt": MessageLookupByLibrary.simpleMessage( - "Deseja alterar a palavra-passe?", - ), - "check_internet": MessageLookupByLibrary.simpleMessage( - "Verifica a tua ligação à internet", - ), - "class_registration": MessageLookupByLibrary.simpleMessage( - "Inscrição de Turmas", - ), - "collect_usage_stats": MessageLookupByLibrary.simpleMessage( - "Partilhar estatísticas de uso", - ), - "college": MessageLookupByLibrary.simpleMessage("Faculdade: "), - "college_select": MessageLookupByLibrary.simpleMessage( - "seleciona a(s) tua(s) faculdade(s)", - ), - "conclude": MessageLookupByLibrary.simpleMessage("Concluído"), - "configured_buses": MessageLookupByLibrary.simpleMessage( - "Autocarros Configurados", - ), - "confirm": MessageLookupByLibrary.simpleMessage("Confirmar"), - "confirm_logout": MessageLookupByLibrary.simpleMessage( - "Tens a certeza de que queres terminar sessão? Os teus dados locais serão apagados e terás de iniciar sessão novamente.", - ), - "consent": MessageLookupByLibrary.simpleMessage( - "Consinto que esta informação seja revista pelo NIAEFEUP, podendo ser eliminada a meu pedido.", - ), - "contact": MessageLookupByLibrary.simpleMessage("Contacto (opcional)"), - "copy_center": MessageLookupByLibrary.simpleMessage("Centro de cópias"), - "copy_center_building": MessageLookupByLibrary.simpleMessage( - "Piso -1 do edifício B | Edifício da AEFEUP", - ), - "courseRegent": MessageLookupByLibrary.simpleMessage("Regente da Cadeira"), - "course_class": MessageLookupByLibrary.simpleMessage("Turmas"), - "course_info": MessageLookupByLibrary.simpleMessage("Ficha"), - "courses": MessageLookupByLibrary.simpleMessage("Cursos"), - "current_state": MessageLookupByLibrary.simpleMessage("Estado atual: "), - "current_year": MessageLookupByLibrary.simpleMessage( - "Ano curricular atual: ", - ), - "decrement": MessageLookupByLibrary.simpleMessage("Decrementar 1,00€"), - "description": MessageLookupByLibrary.simpleMessage("Descrição"), - "desired_email": MessageLookupByLibrary.simpleMessage( - "Email em que desejas ser contactado", - ), - "dinner": MessageLookupByLibrary.simpleMessage("Jantar"), - "dish_type": m0, - "dish_types": MessageLookupByLibrary.simpleMessage("Tipos de Prato"), - "dona_bia": MessageLookupByLibrary.simpleMessage("Papelaria D. Beatriz"), - "dona_bia_building": MessageLookupByLibrary.simpleMessage( - "Piso -1 do edifício B (B-142)", - ), - "download_error": MessageLookupByLibrary.simpleMessage( - "Erro ao descarregar o ficheiro", - ), - "drag_and_drop": MessageLookupByLibrary.simpleMessage( - "Arrasta e solta os elementos", - ), - "ects": MessageLookupByLibrary.simpleMessage("ECTS realizados: "), - "edit_off": MessageLookupByLibrary.simpleMessage("Editar"), - "edit_on": MessageLookupByLibrary.simpleMessage("Concluir edição"), - "email": MessageLookupByLibrary.simpleMessage("Email"), - "empty_text": MessageLookupByLibrary.simpleMessage( - "Por favor preenche este campo", - ), - "evaluation": MessageLookupByLibrary.simpleMessage("Avaliação"), - "exams": MessageLookupByLibrary.simpleMessage("Exames"), - "exams_filter": MessageLookupByLibrary.simpleMessage( - "Definições Filtro de Exames", - ), - "exit_confirm": MessageLookupByLibrary.simpleMessage( - "Tem a certeza de que pretende sair?", - ), - "expired_password": MessageLookupByLibrary.simpleMessage( - "A tua palavra-passe expirou", - ), - "fail_to_authenticate": MessageLookupByLibrary.simpleMessage( - "Falha ao autenticar", - ), - "failed_login": MessageLookupByLibrary.simpleMessage("O login falhou"), - "failed_upload": MessageLookupByLibrary.simpleMessage( - "Falha de carregamento", - ), - "favorite_filter": MessageLookupByLibrary.simpleMessage("Favoritos"), - "fee_date": MessageLookupByLibrary.simpleMessage("Data limite"), - "fee_notification": MessageLookupByLibrary.simpleMessage( - "Data limite de propina", - ), - "feedback_description": MessageLookupByLibrary.simpleMessage( - "Reporta um problema ou sugere uma melhoria", - ), - "files": MessageLookupByLibrary.simpleMessage("Ficheiros"), - "first_year_registration": MessageLookupByLibrary.simpleMessage( - "Ano da primeira inscrição: ", - ), - "floor": MessageLookupByLibrary.simpleMessage("Piso"), - "floors": MessageLookupByLibrary.simpleMessage("Pisos"), - "forgot_password": MessageLookupByLibrary.simpleMessage( - "Esqueceu a palavra-passe?", - ), - "frequency": MessageLookupByLibrary.simpleMessage("Obtenção de Frequência"), - "generate_reference": MessageLookupByLibrary.simpleMessage( - "Gerar referência", - ), - "geral_registration": MessageLookupByLibrary.simpleMessage( - "Inscrição Geral", - ), - "goi": MessageLookupByLibrary.simpleMessage( - "Gabinete de Orientação e Integração", - ), - "improvement_registration": MessageLookupByLibrary.simpleMessage( - "Inscrição para Melhoria", - ), - "increment": MessageLookupByLibrary.simpleMessage("Incrementar 1,00€"), - "instructor": MessageLookupByLibrary.simpleMessage("Docente"), - "instructors": MessageLookupByLibrary.simpleMessage("Docentes"), - "internet_status_exception": MessageLookupByLibrary.simpleMessage( - "Verifique sua conexão com a internet", - ), - "invalid_credentials": MessageLookupByLibrary.simpleMessage( - "Credenciais inválidas", - ), - "keep_login": MessageLookupByLibrary.simpleMessage("Lembre-se de mim"), - "language": MessageLookupByLibrary.simpleMessage("Idioma"), - "last_refresh_time": m1, - "last_timestamp": m2, - "leave_feedback": MessageLookupByLibrary.simpleMessage("Feedback"), - "lectures": MessageLookupByLibrary.simpleMessage("Aulas"), - "library": MessageLookupByLibrary.simpleMessage("Biblioteca"), - "library_occupation": MessageLookupByLibrary.simpleMessage( - "Ocupação da Biblioteca", - ), - "load_error": MessageLookupByLibrary.simpleMessage( - "Erro ao carregar a informação", - ), - "loading_terms": MessageLookupByLibrary.simpleMessage( - "Carregando os Termos e Condições...", - ), - "location": MessageLookupByLibrary.simpleMessage("Localização"), - "login": MessageLookupByLibrary.simpleMessage("Entrar"), - "login_with_credentials": MessageLookupByLibrary.simpleMessage( - "Entrar com credenciais", - ), - "logout": MessageLookupByLibrary.simpleMessage("Terminar sessão"), - "lunch": MessageLookupByLibrary.simpleMessage("Almoço"), - "menus": MessageLookupByLibrary.simpleMessage("Ementas"), - "min_value_reference": MessageLookupByLibrary.simpleMessage( - "Valor mínimo: 1,00 €", - ), - "multimedia_center": MessageLookupByLibrary.simpleMessage( - "Centro de multimédia", - ), - "nav_title": m3, - "news": MessageLookupByLibrary.simpleMessage("Notícias"), - "no": MessageLookupByLibrary.simpleMessage("Não"), - "noExamsScheduled": MessageLookupByLibrary.simpleMessage( - "Não há exames agendados", - ), - "noInstructors": MessageLookupByLibrary.simpleMessage( - "Não há docentes atribuídos", - ), - "no_app": MessageLookupByLibrary.simpleMessage( - "Nenhuma aplicação encontrada para abrir o ficheiro", - ), - "no_bus": MessageLookupByLibrary.simpleMessage( - "Não percas nenhum autocarro!", - ), - "no_bus_stops": MessageLookupByLibrary.simpleMessage( - "Não existe nenhuma paragem configurada", - ), - "no_class": MessageLookupByLibrary.simpleMessage( - "Não existem turmas para apresentar", - ), - "no_classes": MessageLookupByLibrary.simpleMessage( - "Não existem aulas para apresentar", - ), - "no_classes_on": MessageLookupByLibrary.simpleMessage("Não possui aulas à"), - "no_classes_on_weekend": MessageLookupByLibrary.simpleMessage( - "Não possui aulas ao", - ), - "no_classes_this_week": MessageLookupByLibrary.simpleMessage( - "Não tens aulas esta semana", - ), - "no_college": MessageLookupByLibrary.simpleMessage("sem faculdade"), - "no_course_units": MessageLookupByLibrary.simpleMessage( - "Sem cadeiras no período selecionado", - ), - "no_courses": MessageLookupByLibrary.simpleMessage( - "Não foram encontrados cursos", - ), - "no_courses_description": MessageLookupByLibrary.simpleMessage( - "Tenta refrescar a página", - ), - "no_data": MessageLookupByLibrary.simpleMessage( - "Não há dados a mostrar neste momento", - ), - "no_date": MessageLookupByLibrary.simpleMessage("Sem data"), - "no_events": MessageLookupByLibrary.simpleMessage( - "Nenhum evento encontrado", - ), - "no_exams": MessageLookupByLibrary.simpleMessage( - "Não possui exames marcados", - ), - "no_exams_label": MessageLookupByLibrary.simpleMessage( - "Parece que estás de férias!", - ), - "no_favorite_restaurants": MessageLookupByLibrary.simpleMessage( - "Sem restaurantes favoritos abertos", - ), - "no_files": MessageLookupByLibrary.simpleMessage( - "Não possui ficheiros anexados", - ), - "no_files_found": MessageLookupByLibrary.simpleMessage( - "Nenhum ficheiro encontrado", - ), - "no_files_label": MessageLookupByLibrary.simpleMessage( - "Não tens nada para ver!", - ), - "no_info": MessageLookupByLibrary.simpleMessage( - "Não existem informações para apresentar", - ), - "no_internet": MessageLookupByLibrary.simpleMessage( - "Parece que estás offline", - ), - "no_library_info": MessageLookupByLibrary.simpleMessage( - "Sem informação de ocupação", - ), - "no_link": MessageLookupByLibrary.simpleMessage( - "Não conseguimos abrir o link", - ), - "no_menu_info": MessageLookupByLibrary.simpleMessage( - "Não há informação disponível sobre refeições", - ), - "no_menus": MessageLookupByLibrary.simpleMessage( - "Não há refeições disponíveis", - ), - "no_name_course": MessageLookupByLibrary.simpleMessage("Curso sem nome"), - "no_places_info": MessageLookupByLibrary.simpleMessage( - "Não há informação disponível sobre locais", - ), - "no_print_info": MessageLookupByLibrary.simpleMessage( - "Sem informação de saldo", - ), - "no_references": MessageLookupByLibrary.simpleMessage( - "Não existem referências a pagar", - ), - "no_results": MessageLookupByLibrary.simpleMessage("Sem resultados"), - "no_selected_courses": MessageLookupByLibrary.simpleMessage( - "Não existem cadeiras para apresentar", - ), - "no_selected_exams": MessageLookupByLibrary.simpleMessage( - "Não existem exames para apresentar", - ), - "no_trips": MessageLookupByLibrary.simpleMessage( - "Não há viagens planeadas de momento", - ), - "notifications": MessageLookupByLibrary.simpleMessage("Notificações"), - "now": MessageLookupByLibrary.simpleMessage("Agora"), - "occurrence_type": MessageLookupByLibrary.simpleMessage( - "Tipo de ocorrência", - ), - "of_month": MessageLookupByLibrary.simpleMessage("de"), - "open_error": MessageLookupByLibrary.simpleMessage( - "Erro ao abrir o ficheiro", - ), - "other_links": MessageLookupByLibrary.simpleMessage("Outros links"), - "pass_change_request": MessageLookupByLibrary.simpleMessage( - "Por razões de segurança, as palavras-passe têm de ser alteradas periodicamente.", - ), - "password": MessageLookupByLibrary.simpleMessage("Palavra-passe"), - "pendent_references": MessageLookupByLibrary.simpleMessage( - "Referências pendentes", - ), - "permission_denied": MessageLookupByLibrary.simpleMessage("Sem permissão"), - "personal_assistance": MessageLookupByLibrary.simpleMessage( - "Atendimento presencial", - ), - "press_again": MessageLookupByLibrary.simpleMessage( - "Pressione novamente para sair", - ), - "print": MessageLookupByLibrary.simpleMessage("Impressão"), - "print_balance": MessageLookupByLibrary.simpleMessage("Saldo impressões"), - "prints": MessageLookupByLibrary.simpleMessage("Impressões"), - "problem_id": MessageLookupByLibrary.simpleMessage( - "Breve identificação do problema", - ), - "program": MessageLookupByLibrary.simpleMessage("Programa"), - "reference_sigarra_help": MessageLookupByLibrary.simpleMessage( - "Os dados da referência gerada aparecerão no Sigarra, conta corrente. Perfil > Conta Corrente", - ), - "reference_success": MessageLookupByLibrary.simpleMessage( - "Referência criada com sucesso!", - ), - "remaining_instructors": MessageLookupByLibrary.simpleMessage( - "Docentes Restantes", - ), - "remove": MessageLookupByLibrary.simpleMessage("Remover"), - "report_error": MessageLookupByLibrary.simpleMessage("Reportar erro"), - "restaurant_main_page": MessageLookupByLibrary.simpleMessage( - "Queres ver os teus restaurantes favoritos na página principal?", - ), - "restaurant_period": m4, - "restaurants": MessageLookupByLibrary.simpleMessage("Restaurantes"), - "room": MessageLookupByLibrary.simpleMessage("Sala"), - "save": MessageLookupByLibrary.simpleMessage("Guardar"), - "schedule": MessageLookupByLibrary.simpleMessage("Aulas"), - "school_calendar": MessageLookupByLibrary.simpleMessage( - "Calendário Escolar", - ), - "search": MessageLookupByLibrary.simpleMessage("Pesquisar"), - "see_more": MessageLookupByLibrary.simpleMessage("Ver mais"), - "select_all": MessageLookupByLibrary.simpleMessage("Selecionar Todos"), - "semester": MessageLookupByLibrary.simpleMessage("Semestre"), - "send": MessageLookupByLibrary.simpleMessage("Enviar"), - "sent_error": MessageLookupByLibrary.simpleMessage( - "Ocorreu um erro no envio", - ), - "services": MessageLookupByLibrary.simpleMessage("Serviços"), - "settings": MessageLookupByLibrary.simpleMessage("Definições"), - "snackbar": MessageLookupByLibrary.simpleMessage("Snackbar"), - "some_error": MessageLookupByLibrary.simpleMessage("Algum erro!"), - "stcp_stops": MessageLookupByLibrary.simpleMessage( - "STCP - Próximas Viagens", - ), - "student_number": MessageLookupByLibrary.simpleMessage( - "Número de Estudante", - ), - "success": MessageLookupByLibrary.simpleMessage("Enviado com sucesso"), - "successful_open": MessageLookupByLibrary.simpleMessage( - "Ficheiro aberto com sucesso", - ), - "tele_assistance": MessageLookupByLibrary.simpleMessage( - "Atendimento telefónico", - ), - "tele_personal_assistance": MessageLookupByLibrary.simpleMessage( - "Atendimento presencial e telefónico", - ), - "telephone": MessageLookupByLibrary.simpleMessage("Telefone"), - "terms": MessageLookupByLibrary.simpleMessage("Termos e Condições"), - "theme": MessageLookupByLibrary.simpleMessage("Tema"), - "title": MessageLookupByLibrary.simpleMessage("Título"), - "try_again": MessageLookupByLibrary.simpleMessage("Tentar de novo"), - "try_different_login": MessageLookupByLibrary.simpleMessage( - "Problemas ao iniciar sessão?", - ), - "uc_info": MessageLookupByLibrary.simpleMessage("Abrir página da UC"), - "ucs": MessageLookupByLibrary.simpleMessage("UCS"), - "unavailable": MessageLookupByLibrary.simpleMessage("Indisponível"), - "until": MessageLookupByLibrary.simpleMessage("Até"), - "valid_email": MessageLookupByLibrary.simpleMessage( - "Por favor insere um email válido", - ), - "view_course_details": MessageLookupByLibrary.simpleMessage( - "Ver detalhes da Unidade Curricular", - ), - "widget_prompt": MessageLookupByLibrary.simpleMessage( - "Escolhe um widget para adicionares à tua área pessoal:", - ), - "wrong_credentials_exception": MessageLookupByLibrary.simpleMessage( - "Credenciais inválidas", - ), - "year": MessageLookupByLibrary.simpleMessage("Ano"), - "yes": MessageLookupByLibrary.simpleMessage("Sim"), + static _notInlinedMessages(_) => { + "about" : MessageLookupByLibrary.simpleMessage("Sobre nós"), + "academic_services" : MessageLookupByLibrary.simpleMessage("Serviços académicos"), + "account_card_title" : MessageLookupByLibrary.simpleMessage("Conta Corrente"), + "add" : MessageLookupByLibrary.simpleMessage("Adicionar"), + "add_photo" : MessageLookupByLibrary.simpleMessage("Adicionar foto"), + "add_quota" : MessageLookupByLibrary.simpleMessage("Adicionar quota"), + "add_restaurants" : MessageLookupByLibrary.simpleMessage("Adicione restaurantes"), + "add_to_calendar" : MessageLookupByLibrary.simpleMessage("Adicionar ao calendário"), + "add_widget" : MessageLookupByLibrary.simpleMessage("Adicionar widget"), + "agree_terms" : MessageLookupByLibrary.simpleMessage("Ao entrares confirmas que concordas com estes"), + "all" : MessageLookupByLibrary.simpleMessage("Todos"), + "all_feminine" : MessageLookupByLibrary.simpleMessage("Todas"), + "all_widgets_added" : MessageLookupByLibrary.simpleMessage("Todos os widgets disponíveis já foram adicionados à tua área pessoal!"), + "apply" : MessageLookupByLibrary.simpleMessage("Aplicar"), + "assessments" : MessageLookupByLibrary.simpleMessage("Avaliações"), + "at_least_one_college" : MessageLookupByLibrary.simpleMessage("Seleciona pelo menos uma faculdade"), + "available_amount" : MessageLookupByLibrary.simpleMessage("Valor disponível"), + "available_elements" : MessageLookupByLibrary.simpleMessage("Elementos disponíveis"), + "average" : MessageLookupByLibrary.simpleMessage("Média"), + "balance" : MessageLookupByLibrary.simpleMessage("Saldo"), + "banner_info" : MessageLookupByLibrary.simpleMessage("Recolhemos dados anónimos de utilização para ajudar a melhorar a sua experiência. Pode desativar esta opção a qualquer momento nas definições"), + "bibliography" : MessageLookupByLibrary.simpleMessage("Bibliografia"), + "breakfast" : MessageLookupByLibrary.simpleMessage("Pequeno Almoço"), + "bs_description" : MessageLookupByLibrary.simpleMessage("Encontraste algum bug na aplicação?\nTens alguma sugestão para a app?\nConta-nos para que possamos melhorar!"), + "bug_description" : MessageLookupByLibrary.simpleMessage("Bug encontrado, como o reproduzir, etc"), + "bug_description_Suggestion" : MessageLookupByLibrary.simpleMessage("Sugestão"), + "bug_description_error" : MessageLookupByLibrary.simpleMessage("Erro"), + "bug_description_other" : MessageLookupByLibrary.simpleMessage("Outro"), + "bug_description_unexpected_behaviour" : MessageLookupByLibrary.simpleMessage("Comportamento Inesperado"), + "bug_description_visual_detail" : MessageLookupByLibrary.simpleMessage("Detalhe Visual"), + "bus_error" : MessageLookupByLibrary.simpleMessage("Não foi possível obter informação"), + "bus_information" : MessageLookupByLibrary.simpleMessage("Seleciona os autocarros dos quais queres informação:"), + "buses_personalize" : MessageLookupByLibrary.simpleMessage("Configura aqui os teus autocarros"), + "buses_text" : MessageLookupByLibrary.simpleMessage("Os autocarros favoritos serão apresentados no widget \'Autocarros\' dos favoritos. Os restantes serão apresentados apenas na página."), + "calendar" : MessageLookupByLibrary.simpleMessage("Calendário"), + "cancel" : MessageLookupByLibrary.simpleMessage("Cancelar"), + "change" : MessageLookupByLibrary.simpleMessage("Alterar"), + "change_password" : MessageLookupByLibrary.simpleMessage("Alterar palavra-passe"), + "change_prompt" : MessageLookupByLibrary.simpleMessage("Deseja alterar a palavra-passe?"), + "check_internet" : MessageLookupByLibrary.simpleMessage("Verifica a tua ligação à internet"), + "class_registration" : MessageLookupByLibrary.simpleMessage("Inscrição de Turmas"), + "collect_usage_stats" : MessageLookupByLibrary.simpleMessage("Partilhar estatísticas de uso"), + "college" : MessageLookupByLibrary.simpleMessage("Faculdade: "), + "college_select" : MessageLookupByLibrary.simpleMessage("seleciona a(s) tua(s) faculdade(s)"), + "conclude" : MessageLookupByLibrary.simpleMessage("Concluído"), + "configured_buses" : MessageLookupByLibrary.simpleMessage("Autocarros Configurados"), + "confirm" : MessageLookupByLibrary.simpleMessage("Confirmar"), + "confirm_logout" : MessageLookupByLibrary.simpleMessage("Tens a certeza de que queres terminar sessão? Os teus dados locais serão apagados e terás de iniciar sessão novamente."), + "consent" : MessageLookupByLibrary.simpleMessage("Consinto que esta informação seja revista pelo NIAEFEUP, podendo ser eliminada a meu pedido."), + "contact" : MessageLookupByLibrary.simpleMessage("Contacto (opcional)"), + "copy_center" : MessageLookupByLibrary.simpleMessage("Centro de cópias"), + "copy_center_building" : MessageLookupByLibrary.simpleMessage("Piso -1 do edifício B | Edifício da AEFEUP"), + "courseRegent" : MessageLookupByLibrary.simpleMessage("Regente da Cadeira"), + "course_class" : MessageLookupByLibrary.simpleMessage("Turmas"), + "course_info" : MessageLookupByLibrary.simpleMessage("Ficha"), + "courses" : MessageLookupByLibrary.simpleMessage("Cursos"), + "current_state" : MessageLookupByLibrary.simpleMessage("Estado atual: "), + "current_year" : MessageLookupByLibrary.simpleMessage("Ano curricular atual: "), + "decrement" : MessageLookupByLibrary.simpleMessage("Decrementar 1,00€"), + "description" : MessageLookupByLibrary.simpleMessage("Descrição"), + "desired_email" : MessageLookupByLibrary.simpleMessage("Email em que desejas ser contactado"), + "dinner" : MessageLookupByLibrary.simpleMessage("Jantar"), + "dish_type" : m0, + "dish_types" : MessageLookupByLibrary.simpleMessage("Tipos de Prato"), + "dona_bia" : MessageLookupByLibrary.simpleMessage("Papelaria D. Beatriz"), + "dona_bia_building" : MessageLookupByLibrary.simpleMessage("Piso -1 do edifício B (B-142)"), + "download_error" : MessageLookupByLibrary.simpleMessage("Erro ao descarregar o ficheiro"), + "drag_and_drop" : MessageLookupByLibrary.simpleMessage("Arrasta e solta os elementos"), + "ects" : MessageLookupByLibrary.simpleMessage("ECTS realizados: "), + "edit_off" : MessageLookupByLibrary.simpleMessage("Editar"), + "edit_on" : MessageLookupByLibrary.simpleMessage("Concluir edição"), + "email" : MessageLookupByLibrary.simpleMessage("Email"), + "empty_text" : MessageLookupByLibrary.simpleMessage("Por favor preenche este campo"), + "evaluation" : MessageLookupByLibrary.simpleMessage("Avaliação"), + "exams" : MessageLookupByLibrary.simpleMessage("Exames"), + "exams_filter" : MessageLookupByLibrary.simpleMessage("Definições Filtro de Exames"), + "exit_confirm" : MessageLookupByLibrary.simpleMessage("Tem a certeza de que pretende sair?"), + "expired_password" : MessageLookupByLibrary.simpleMessage("A tua palavra-passe expirou"), + "fail_to_authenticate" : MessageLookupByLibrary.simpleMessage("Falha ao autenticar"), + "failed_login" : MessageLookupByLibrary.simpleMessage("O login falhou"), + "failed_upload" : MessageLookupByLibrary.simpleMessage("Falha de carregamento"), + "favorite_filter" : MessageLookupByLibrary.simpleMessage("Favoritos"), + "fee_date" : MessageLookupByLibrary.simpleMessage("Data limite"), + "fee_notification" : MessageLookupByLibrary.simpleMessage("Data limite de propina"), + "feedback_description" : MessageLookupByLibrary.simpleMessage("Reporta um problema ou sugere uma melhoria"), + "files" : MessageLookupByLibrary.simpleMessage("Ficheiros"), + "first_year_registration" : MessageLookupByLibrary.simpleMessage("Ano da primeira inscrição: "), + "floor" : MessageLookupByLibrary.simpleMessage("Piso"), + "floors" : MessageLookupByLibrary.simpleMessage("Pisos"), + "forgot_password" : MessageLookupByLibrary.simpleMessage("Esqueceu a palavra-passe?"), + "frequency" : MessageLookupByLibrary.simpleMessage("Obtenção de Frequência"), + "generate_reference" : MessageLookupByLibrary.simpleMessage("Gerar referência"), + "geral_registration" : MessageLookupByLibrary.simpleMessage("Inscrição Geral"), + "goi" : MessageLookupByLibrary.simpleMessage("Gabinete de Orientação e Integração"), + "improvement_registration" : MessageLookupByLibrary.simpleMessage("Inscrição para Melhoria"), + "increment" : MessageLookupByLibrary.simpleMessage("Incrementar 1,00€"), + "instructor" : MessageLookupByLibrary.simpleMessage("Docente"), + "instructors" : MessageLookupByLibrary.simpleMessage("Docentes"), + "internet_status_exception" : MessageLookupByLibrary.simpleMessage("Verifique sua conexão com a internet"), + "invalid_credentials" : MessageLookupByLibrary.simpleMessage("Credenciais inválidas"), + "keep_login" : MessageLookupByLibrary.simpleMessage("Lembre-se de mim"), + "language" : MessageLookupByLibrary.simpleMessage("Idioma"), + "last_refresh_time" : m1, + "last_timestamp" : m2, + "leave_feedback" : MessageLookupByLibrary.simpleMessage("Feedback"), + "lectures" : MessageLookupByLibrary.simpleMessage("Aulas"), + "library" : MessageLookupByLibrary.simpleMessage("Biblioteca"), + "library_occupation" : MessageLookupByLibrary.simpleMessage("Ocupação da Biblioteca"), + "load_error" : MessageLookupByLibrary.simpleMessage("Erro ao carregar a informação"), + "loading_terms" : MessageLookupByLibrary.simpleMessage("Carregando os Termos e Condições..."), + "location" : MessageLookupByLibrary.simpleMessage("Localização"), + "login" : MessageLookupByLibrary.simpleMessage("Entrar"), + "login_with_credentials" : MessageLookupByLibrary.simpleMessage("Entrar com credenciais"), + "logout" : MessageLookupByLibrary.simpleMessage("Terminar sessão"), + "lunch" : MessageLookupByLibrary.simpleMessage("Almoço"), + "menus" : MessageLookupByLibrary.simpleMessage("Ementas"), + "min_value_reference" : MessageLookupByLibrary.simpleMessage("Valor mínimo: 1,00 €"), + "multimedia_center" : MessageLookupByLibrary.simpleMessage("Centro de multimédia"), + "nav_title" : m3, + "news" : MessageLookupByLibrary.simpleMessage("Notícias"), + "no" : MessageLookupByLibrary.simpleMessage("Não"), + "noExamsScheduled" : MessageLookupByLibrary.simpleMessage("Não há exames agendados"), + "noInstructors" : MessageLookupByLibrary.simpleMessage("Não há docentes atribuídos"), + "no_app" : MessageLookupByLibrary.simpleMessage("Nenhuma aplicação encontrada para abrir o ficheiro"), + "no_bus" : MessageLookupByLibrary.simpleMessage("Não percas nenhum autocarro!"), + "no_bus_stops" : MessageLookupByLibrary.simpleMessage("Não existe nenhuma paragem configurada"), + "no_class" : MessageLookupByLibrary.simpleMessage("Não existem turmas para apresentar"), + "no_classes" : MessageLookupByLibrary.simpleMessage("Não existem aulas para apresentar"), + "no_classes_on" : MessageLookupByLibrary.simpleMessage("Não possui aulas à"), + "no_classes_on_weekend" : MessageLookupByLibrary.simpleMessage("Não possui aulas ao"), + "no_classes_this_week" : MessageLookupByLibrary.simpleMessage("Não tens aulas esta semana"), + "no_classes_today" : MessageLookupByLibrary.simpleMessage("Não possui mais aulas hoje.\n Aqui estão as suas próximas aulas para: \n"), + "no_college" : MessageLookupByLibrary.simpleMessage("sem faculdade"), + "no_course_units" : MessageLookupByLibrary.simpleMessage("Sem cadeiras no período selecionado"), + "no_courses" : MessageLookupByLibrary.simpleMessage("Não foram encontrados cursos"), + "no_courses_description" : MessageLookupByLibrary.simpleMessage("Tenta refrescar a página"), + "no_data" : MessageLookupByLibrary.simpleMessage("Não há dados a mostrar neste momento"), + "no_date" : MessageLookupByLibrary.simpleMessage("Sem data"), + "no_events" : MessageLookupByLibrary.simpleMessage("Nenhum evento encontrado"), + "no_exams" : MessageLookupByLibrary.simpleMessage("Não possui exames marcados"), + "no_exams_label" : MessageLookupByLibrary.simpleMessage("Parece que estás de férias!"), + "no_favorite_restaurants" : MessageLookupByLibrary.simpleMessage("Sem restaurantes favoritos abertos"), + "no_files" : MessageLookupByLibrary.simpleMessage("Não possui ficheiros anexados"), + "no_files_found" : MessageLookupByLibrary.simpleMessage("Nenhum ficheiro encontrado"), + "no_files_label" : MessageLookupByLibrary.simpleMessage("Não tens nada para ver!"), + "no_info" : MessageLookupByLibrary.simpleMessage("Não existem informações para apresentar"), + "no_internet" : MessageLookupByLibrary.simpleMessage("Parece que estás offline"), + "no_library_info" : MessageLookupByLibrary.simpleMessage("Sem informação de ocupação"), + "no_link" : MessageLookupByLibrary.simpleMessage("Não conseguimos abrir o link"), + "no_menu_info" : MessageLookupByLibrary.simpleMessage("Não há informação disponível sobre refeições"), + "no_menus" : MessageLookupByLibrary.simpleMessage("Não há refeições disponíveis"), + "no_name_course" : MessageLookupByLibrary.simpleMessage("Curso sem nome"), + "no_places_info" : MessageLookupByLibrary.simpleMessage("Não há informação disponível sobre locais"), + "no_print_info" : MessageLookupByLibrary.simpleMessage("Sem informação de saldo"), + "no_references" : MessageLookupByLibrary.simpleMessage("Não existem referências a pagar"), + "no_results" : MessageLookupByLibrary.simpleMessage("Sem resultados"), + "no_selected_courses" : MessageLookupByLibrary.simpleMessage("Não existem cadeiras para apresentar"), + "no_selected_exams" : MessageLookupByLibrary.simpleMessage("Não existem exames para apresentar"), + "no_trips" : MessageLookupByLibrary.simpleMessage("Não há viagens planeadas de momento"), + "notifications" : MessageLookupByLibrary.simpleMessage("Notificações"), + "now" : MessageLookupByLibrary.simpleMessage("Agora"), + "occurrence_type" : MessageLookupByLibrary.simpleMessage("Tipo de ocorrência"), + "of_month" : MessageLookupByLibrary.simpleMessage("de"), + "open_error" : MessageLookupByLibrary.simpleMessage("Erro ao abrir o ficheiro"), + "other_links" : MessageLookupByLibrary.simpleMessage("Outros links"), + "pass_change_request" : MessageLookupByLibrary.simpleMessage("Por razões de segurança, as palavras-passe têm de ser alteradas periodicamente."), + "password" : MessageLookupByLibrary.simpleMessage("Palavra-passe"), + "pendent_references" : MessageLookupByLibrary.simpleMessage("Referências pendentes"), + "permission_denied" : MessageLookupByLibrary.simpleMessage("Sem permissão"), + "personal_assistance" : MessageLookupByLibrary.simpleMessage("Atendimento presencial"), + "press_again" : MessageLookupByLibrary.simpleMessage("Pressione novamente para sair"), + "print" : MessageLookupByLibrary.simpleMessage("Impressão"), + "print_balance" : MessageLookupByLibrary.simpleMessage("Saldo impressões"), + "prints" : MessageLookupByLibrary.simpleMessage("Impressões"), + "problem_id" : MessageLookupByLibrary.simpleMessage("Breve identificação do problema"), + "program" : MessageLookupByLibrary.simpleMessage("Programa"), + "reference_sigarra_help" : MessageLookupByLibrary.simpleMessage("Os dados da referência gerada aparecerão no Sigarra, conta corrente. Perfil > Conta Corrente"), + "reference_success" : MessageLookupByLibrary.simpleMessage("Referência criada com sucesso!"), + "remaining_instructors" : MessageLookupByLibrary.simpleMessage("Docentes Restantes"), + "remove" : MessageLookupByLibrary.simpleMessage("Remover"), + "report_error" : MessageLookupByLibrary.simpleMessage("Reportar erro"), + "restaurant_main_page" : MessageLookupByLibrary.simpleMessage("Queres ver os teus restaurantes favoritos na página principal?"), + "restaurant_period" : m4, + "restaurants" : MessageLookupByLibrary.simpleMessage("Restaurantes"), + "room" : MessageLookupByLibrary.simpleMessage("Sala"), + "save" : MessageLookupByLibrary.simpleMessage("Guardar"), + "schedule" : MessageLookupByLibrary.simpleMessage("Aulas"), + "school_calendar" : MessageLookupByLibrary.simpleMessage("Calendário Escolar"), + "search" : MessageLookupByLibrary.simpleMessage("Pesquisar"), + "see_more" : MessageLookupByLibrary.simpleMessage("Ver mais"), + "select_all" : MessageLookupByLibrary.simpleMessage("Selecionar Todos"), + "semester" : MessageLookupByLibrary.simpleMessage("Semestre"), + "send" : MessageLookupByLibrary.simpleMessage("Enviar"), + "sent_error" : MessageLookupByLibrary.simpleMessage("Ocorreu um erro no envio"), + "services" : MessageLookupByLibrary.simpleMessage("Serviços"), + "settings" : MessageLookupByLibrary.simpleMessage("Definições"), + "snackbar" : MessageLookupByLibrary.simpleMessage("Snackbar"), + "some_error" : MessageLookupByLibrary.simpleMessage("Algum erro!"), + "stcp_stops" : MessageLookupByLibrary.simpleMessage("STCP - Próximas Viagens"), + "student_number" : MessageLookupByLibrary.simpleMessage("Número de Estudante"), + "success" : MessageLookupByLibrary.simpleMessage("Enviado com sucesso"), + "successful_open" : MessageLookupByLibrary.simpleMessage("Ficheiro aberto com sucesso"), + "tele_assistance" : MessageLookupByLibrary.simpleMessage("Atendimento telefónico"), + "tele_personal_assistance" : MessageLookupByLibrary.simpleMessage("Atendimento presencial e telefónico"), + "telephone" : MessageLookupByLibrary.simpleMessage("Telefone"), + "terms" : MessageLookupByLibrary.simpleMessage("Termos e Condições"), + "theme" : MessageLookupByLibrary.simpleMessage("Tema"), + "title" : MessageLookupByLibrary.simpleMessage("Título"), + "try_again" : MessageLookupByLibrary.simpleMessage("Tentar de novo"), + "try_different_login" : MessageLookupByLibrary.simpleMessage("Problemas ao iniciar sessão?"), + "uc_info" : MessageLookupByLibrary.simpleMessage("Abrir página da UC"), + "ucs" : MessageLookupByLibrary.simpleMessage("UCS"), + "unavailable" : MessageLookupByLibrary.simpleMessage("Indisponível"), + "until" : MessageLookupByLibrary.simpleMessage("Até"), + "valid_email" : MessageLookupByLibrary.simpleMessage("Por favor insere um email válido"), + "view_course_details" : MessageLookupByLibrary.simpleMessage("Ver detalhes da Unidade Curricular"), + "widget_prompt" : MessageLookupByLibrary.simpleMessage("Escolhe um widget para adicionares à tua área pessoal:"), + "wrong_credentials_exception" : MessageLookupByLibrary.simpleMessage("Credenciais inválidas"), + "year" : MessageLookupByLibrary.simpleMessage("Ano"), + "yes" : MessageLookupByLibrary.simpleMessage("Sim") }; } diff --git a/packages/uni_app/lib/generated/l10n.dart b/packages/uni_app/lib/generated/l10n.dart index c16d69845..1e187fc1a 100644 --- a/packages/uni_app/lib/generated/l10n.dart +++ b/packages/uni_app/lib/generated/l10n.dart @@ -18,36 +18,28 @@ class S { static S? _current; static S get current { - assert( - _current != null, - 'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.', - ); + assert(_current != null, 'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.'); return _current!; } - static const AppLocalizationDelegate delegate = AppLocalizationDelegate(); + static const AppLocalizationDelegate delegate = + AppLocalizationDelegate(); static Future load(Locale locale) { - final name = - (locale.countryCode?.isEmpty ?? false) - ? locale.languageCode - : locale.toString(); - final localeName = Intl.canonicalizedLocale(name); + final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString(); + final localeName = Intl.canonicalizedLocale(name); return initializeMessages(localeName).then((_) { Intl.defaultLocale = localeName; final instance = S(); S._current = instance; - + return instance; }); - } + } static S of(BuildContext context) { final instance = S.maybeOf(context); - assert( - instance != null, - 'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?', - ); + assert(instance != null, 'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?'); return instance!; } @@ -67,27 +59,52 @@ class S { /// `No` String get no { - return Intl.message('No', name: 'no', desc: '', args: []); + return Intl.message( + 'No', + name: 'no', + desc: '', + args: [], + ); } /// `Yes` String get yes { - return Intl.message('Yes', name: 'yes', desc: '', args: []); + return Intl.message( + 'Yes', + name: 'yes', + desc: '', + args: [], + ); } /// `About us` String get about { - return Intl.message('About us', name: 'about', desc: '', args: []); + return Intl.message( + 'About us', + name: 'about', + desc: '', + args: [], + ); } /// `Language` String get language { - return Intl.message('Language', name: 'language', desc: '', args: []); + return Intl.message( + 'Language', + name: 'language', + desc: '', + args: [], + ); } /// `Theme` String get theme { - return Intl.message('Theme', name: 'theme', desc: '', args: []); + return Intl.message( + 'Theme', + name: 'theme', + desc: '', + args: [], + ); } /// `Notifications` @@ -122,17 +139,32 @@ class S { /// `Add` String get add { - return Intl.message('Add', name: 'add', desc: '', args: []); + return Intl.message( + 'Add', + name: 'add', + desc: '', + args: [], + ); } /// `Add quota` String get add_quota { - return Intl.message('Add quota', name: 'add_quota', desc: '', args: []); + return Intl.message( + 'Add quota', + name: 'add_quota', + desc: '', + args: [], + ); } /// `Add widget` String get add_widget { - return Intl.message('Add widget', name: 'add_widget', desc: '', args: []); + return Intl.message( + 'Add widget', + name: 'add_widget', + desc: '', + args: [], + ); } /// `Add restaurants` @@ -187,7 +219,12 @@ class S { /// `Average` String get average { - return Intl.message('Average', name: 'average', desc: '', args: []); + return Intl.message( + 'Average', + name: 'average', + desc: '', + args: [], + ); } /// `We collect anonymous usage data to help improve your experience. You can opt out anytime in the settings.` @@ -202,7 +239,12 @@ class S { /// `Balance` String get balance { - return Intl.message('Balance', name: 'balance', desc: '', args: []); + return Intl.message( + 'Balance', + name: 'balance', + desc: '', + args: [], + ); } /// `Bibliography` @@ -217,7 +259,12 @@ class S { /// `Breakfast` String get breakfast { - return Intl.message('Breakfast', name: 'breakfast', desc: '', args: []); + return Intl.message( + 'Breakfast', + name: 'breakfast', + desc: '', + args: [], + ); } /// `Did you find any bugs in the application?\nDo you have any suggestions for the app?\nTell us so we can improve!` @@ -282,17 +329,32 @@ class S { /// `Cancel` String get cancel { - return Intl.message('Cancel', name: 'cancel', desc: '', args: []); + return Intl.message( + 'Cancel', + name: 'cancel', + desc: '', + args: [], + ); } /// `Apply` String get apply { - return Intl.message('Apply', name: 'apply', desc: '', args: []); + return Intl.message( + 'Apply', + name: 'apply', + desc: '', + args: [], + ); } /// `Change` String get change { - return Intl.message('Change', name: 'change', desc: '', args: []); + return Intl.message( + 'Change', + name: 'change', + desc: '', + args: [], + ); } /// `Change password` @@ -327,7 +389,12 @@ class S { /// `Classes` String get course_class { - return Intl.message('Classes', name: 'course_class', desc: '', args: []); + return Intl.message( + 'Classes', + name: 'course_class', + desc: '', + args: [], + ); } /// `Class Registration` @@ -342,7 +409,12 @@ class S { /// `College: ` String get college { - return Intl.message('College: ', name: 'college', desc: '', args: []); + return Intl.message( + 'College: ', + name: 'college', + desc: '', + args: [], + ); } /// `select your college(s)` @@ -357,7 +429,12 @@ class S { /// `Done` String get conclude { - return Intl.message('Done', name: 'conclude', desc: '', args: []); + return Intl.message( + 'Done', + name: 'conclude', + desc: '', + args: [], + ); } /// `Configured Buses` @@ -372,7 +449,12 @@ class S { /// `Confirm` String get confirm { - return Intl.message('Confirm', name: 'confirm', desc: '', args: []); + return Intl.message( + 'Confirm', + name: 'confirm', + desc: '', + args: [], + ); } /// `I consent to this information being reviewed by NIAEFEUP and may be deleted at my request.` @@ -397,7 +479,12 @@ class S { /// `Copy center` String get copy_center { - return Intl.message('Copy center', name: 'copy_center', desc: '', args: []); + return Intl.message( + 'Copy center', + name: 'copy_center', + desc: '', + args: [], + ); } /// `Floor -1 of building B | AEFEUP building` @@ -412,7 +499,12 @@ class S { /// `Info` String get course_info { - return Intl.message('Info', name: 'course_info', desc: '', args: []); + return Intl.message( + 'Info', + name: 'course_info', + desc: '', + args: [], + ); } /// `Current state: ` @@ -447,7 +539,12 @@ class S { /// `Description` String get description { - return Intl.message('Description', name: 'description', desc: '', args: []); + return Intl.message( + 'Description', + name: 'description', + desc: '', + args: [], + ); } /// `Email where you want to be contacted` @@ -462,7 +559,12 @@ class S { /// `Dinner` String get dinner { - return Intl.message('Dinner', name: 'dinner', desc: '', args: []); + return Intl.message( + 'Dinner', + name: 'dinner', + desc: '', + args: [], + ); } /// `D. Beatriz's stationery store` @@ -487,17 +589,32 @@ class S { /// `ECTS performed: ` String get ects { - return Intl.message('ECTS performed: ', name: 'ects', desc: '', args: []); + return Intl.message( + 'ECTS performed: ', + name: 'ects', + desc: '', + args: [], + ); } /// `Edit` String get edit_off { - return Intl.message('Edit', name: 'edit_off', desc: '', args: []); + return Intl.message( + 'Edit', + name: 'edit_off', + desc: '', + args: [], + ); } /// `Finish editing` String get edit_on { - return Intl.message('Finish editing', name: 'edit_on', desc: '', args: []); + return Intl.message( + 'Finish editing', + name: 'edit_on', + desc: '', + args: [], + ); } /// `Please fill in this field` @@ -512,7 +629,12 @@ class S { /// `Evaluation` String get evaluation { - return Intl.message('Evaluation', name: 'evaluation', desc: '', args: []); + return Intl.message( + 'Evaluation', + name: 'evaluation', + desc: '', + args: [], + ); } /// `Eligibility for exams` @@ -557,7 +679,12 @@ class S { /// `Deadline` String get fee_date { - return Intl.message('Deadline', name: 'fee_date', desc: '', args: []); + return Intl.message( + 'Deadline', + name: 'fee_date', + desc: '', + args: [], + ); } /// `Fee deadline` @@ -592,12 +719,22 @@ class S { /// `Floor` String get floor { - return Intl.message('Floor', name: 'floor', desc: '', args: []); + return Intl.message( + 'Floor', + name: 'floor', + desc: '', + args: [], + ); } /// `Floors` String get floors { - return Intl.message('Floors', name: 'floors', desc: '', args: []); + return Intl.message( + 'Floors', + name: 'floors', + desc: '', + args: [], + ); } /// `Forgot password?` @@ -662,7 +799,12 @@ class S { /// `Remember me` String get keep_login { - return Intl.message('Remember me', name: 'keep_login', desc: '', args: []); + return Intl.message( + 'Remember me', + name: 'keep_login', + desc: '', + args: [], + ); } /// `last refresh at {time}` @@ -710,7 +852,12 @@ class S { /// `Lunch` String get lunch { - return Intl.message('Lunch', name: 'lunch', desc: '', args: []); + return Intl.message( + 'Lunch', + name: 'lunch', + desc: '', + args: [], + ); } /// `Error downloading the file` @@ -735,27 +882,52 @@ class S { /// `Login` String get login { - return Intl.message('Login', name: 'login', desc: '', args: []); + return Intl.message( + 'Login', + name: 'login', + desc: '', + args: [], + ); } /// `Settings` String get settings { - return Intl.message('Settings', name: 'settings', desc: '', args: []); + return Intl.message( + 'Settings', + name: 'settings', + desc: '', + args: [], + ); } /// `Snackbar` String get snackbar { - return Intl.message('Snackbar', name: 'snackbar', desc: '', args: []); + return Intl.message( + 'Snackbar', + name: 'snackbar', + desc: '', + args: [], + ); } /// `Log out` String get logout { - return Intl.message('Log out', name: 'logout', desc: '', args: []); + return Intl.message( + 'Log out', + name: 'logout', + desc: '', + args: [], + ); } /// `Menus` String get menus { - return Intl.message('Menus', name: 'menus', desc: '', args: []); + return Intl.message( + 'Menus', + name: 'menus', + desc: '', + args: [], + ); } /// `Minimum value: 1,00 €` @@ -805,7 +977,12 @@ class S { /// `News` String get news { - return Intl.message('News', name: 'news', desc: '', args: []); + return Intl.message( + 'News', + name: 'news', + desc: '', + args: [], + ); } /// `Don't miss any bus!` @@ -878,9 +1055,24 @@ class S { ); } + /// `You don't have any more classes today.\n Here are your next classes for: \n` + String get no_classes_today { + return Intl.message( + 'You don\'t have any more classes today.\n Here are your next classes for: \n', + name: 'no_classes_today', + desc: '', + args: [], + ); + } + /// `no college` String get no_college { - return Intl.message('no college', name: 'no_college', desc: '', args: []); + return Intl.message( + 'no college', + name: 'no_college', + desc: '', + args: [], + ); } /// `No course units in the selected period` @@ -905,7 +1097,12 @@ class S { /// `No date` String get no_date { - return Intl.message('No date', name: 'no_date', desc: '', args: []); + return Intl.message( + 'No date', + name: 'no_date', + desc: '', + args: [], + ); } /// `No events found` @@ -1030,7 +1227,12 @@ class S { /// `No match` String get no_results { - return Intl.message('No match', name: 'no_results', desc: '', args: []); + return Intl.message( + 'No match', + name: 'no_results', + desc: '', + args: [], + ); } /// `There are no course units to display` @@ -1085,7 +1287,12 @@ class S { /// `of` String get of_month { - return Intl.message('of', name: 'of_month', desc: '', args: []); + return Intl.message( + 'of', + name: 'of_month', + desc: '', + args: [], + ); } /// `We couldn't open the link` @@ -1130,7 +1337,12 @@ class S { /// `Other links` String get other_links { - return Intl.message('Other links', name: 'other_links', desc: '', args: []); + return Intl.message( + 'Other links', + name: 'other_links', + desc: '', + args: [], + ); } /// `For security reasons, passwords must be changed periodically.` @@ -1145,7 +1357,12 @@ class S { /// `Password` String get password { - return Intl.message('Password', name: 'password', desc: '', args: []); + return Intl.message( + 'Password', + name: 'password', + desc: '', + args: [], + ); } /// `Pending references` @@ -1180,7 +1397,12 @@ class S { /// `Print` String get print { - return Intl.message('Print', name: 'print', desc: '', args: []); + return Intl.message( + 'Print', + name: 'print', + desc: '', + args: [], + ); } /// `Print balance` @@ -1215,7 +1437,12 @@ class S { /// `Program` String get program { - return Intl.message('Program', name: 'program', desc: '', args: []); + return Intl.message( + 'Program', + name: 'program', + desc: '', + args: [], + ); } /// `Error opening the file` @@ -1250,7 +1477,12 @@ class S { /// `Prints` String get prints { - return Intl.message('Prints', name: 'prints', desc: '', args: []); + return Intl.message( + 'Prints', + name: 'prints', + desc: '', + args: [], + ); } /// `Brief identification of the problem` @@ -1285,7 +1517,12 @@ class S { /// `Delete` String get remove { - return Intl.message('Delete', name: 'remove', desc: '', args: []); + return Intl.message( + 'Delete', + name: 'remove', + desc: '', + args: [], + ); } /// `Report error` @@ -1310,12 +1547,22 @@ class S { /// `Room` String get room { - return Intl.message('Room', name: 'room', desc: '', args: []); + return Intl.message( + 'Room', + name: 'room', + desc: '', + args: [], + ); } /// `Files` String get files { - return Intl.message('Files', name: 'files', desc: '', args: []); + return Intl.message( + 'Files', + name: 'files', + desc: '', + args: [], + ); } /// `School Calendar` @@ -1330,12 +1577,22 @@ class S { /// `Semester` String get semester { - return Intl.message('Semester', name: 'semester', desc: '', args: []); + return Intl.message( + 'Semester', + name: 'semester', + desc: '', + args: [], + ); } /// `Send` String get send { - return Intl.message('Send', name: 'send', desc: '', args: []); + return Intl.message( + 'Send', + name: 'send', + desc: '', + args: [], + ); } /// `An error occurred in sending` @@ -1350,7 +1607,12 @@ class S { /// `Some error!` String get some_error { - return Intl.message('Some error!', name: 'some_error', desc: '', args: []); + return Intl.message( + 'Some error!', + name: 'some_error', + desc: '', + args: [], + ); } /// `STCP - Upcoming Trips` @@ -1405,7 +1667,12 @@ class S { /// `Telephone` String get telephone { - return Intl.message('Telephone', name: 'telephone', desc: '', args: []); + return Intl.message( + 'Telephone', + name: 'telephone', + desc: '', + args: [], + ); } /// `Terms and Conditions` @@ -1420,17 +1687,32 @@ class S { /// `Title` String get title { - return Intl.message('Title', name: 'title', desc: '', args: []); + return Intl.message( + 'Title', + name: 'title', + desc: '', + args: [], + ); } /// `Open UC page` String get uc_info { - return Intl.message('Open UC page', name: 'uc_info', desc: '', args: []); + return Intl.message( + 'Open UC page', + name: 'uc_info', + desc: '', + args: [], + ); } /// `Unavailable` String get unavailable { - return Intl.message('Unavailable', name: 'unavailable', desc: '', args: []); + return Intl.message( + 'Unavailable', + name: 'unavailable', + desc: '', + args: [], + ); } /// `Please enter a valid email` @@ -1455,17 +1737,32 @@ class S { /// `Year` String get year { - return Intl.message('Year', name: 'year', desc: '', args: []); + return Intl.message( + 'Year', + name: 'year', + desc: '', + args: [], + ); } /// `See more` String get see_more { - return Intl.message('See more', name: 'see_more', desc: '', args: []); + return Intl.message( + 'See more', + name: 'see_more', + desc: '', + args: [], + ); } /// `Search` String get search { - return Intl.message('Search', name: 'search', desc: '', args: []); + return Intl.message( + 'Search', + name: 'search', + desc: '', + args: [], + ); } /// `Do you really want to log out? Your local data will be deleted and you will have to log in again.` @@ -1490,7 +1787,12 @@ class S { /// `Try again` String get try_again { - return Intl.message('Try again', name: 'try_again', desc: '', args: []); + return Intl.message( + 'Try again', + name: 'try_again', + desc: '', + args: [], + ); } /// `Having trouble signing in?` @@ -1595,7 +1897,12 @@ class S { /// `Add photo` String get add_photo { - return Intl.message('Add photo', name: 'add_photo', desc: '', args: []); + return Intl.message( + 'Add photo', + name: 'add_photo', + desc: '', + args: [], + ); } /// `Failed to upload` @@ -1610,12 +1917,22 @@ class S { /// `Schedule` String get schedule { - return Intl.message('Schedule', name: 'schedule', desc: '', args: []); + return Intl.message( + 'Schedule', + name: 'schedule', + desc: '', + args: [], + ); } /// `Instructors` String get instructors { - return Intl.message('Instructors', name: 'instructors', desc: '', args: []); + return Intl.message( + 'Instructors', + name: 'instructors', + desc: '', + args: [], + ); } /// `Remaining Instructors` @@ -1630,7 +1947,12 @@ class S { /// `Assessments` String get assessments { - return Intl.message('Assessments', name: 'assessments', desc: '', args: []); + return Intl.message( + 'Assessments', + name: 'assessments', + desc: '', + args: [], + ); } /// `No exams scheduled` @@ -1665,27 +1987,52 @@ class S { /// `Instructor` String get instructor { - return Intl.message('Instructor', name: 'instructor', desc: '', args: []); + return Intl.message( + 'Instructor', + name: 'instructor', + desc: '', + args: [], + ); } /// `Lectures` String get lectures { - return Intl.message('Lectures', name: 'lectures', desc: '', args: []); + return Intl.message( + 'Lectures', + name: 'lectures', + desc: '', + args: [], + ); } /// `Exams` String get exams { - return Intl.message('Exams', name: 'exams', desc: '', args: []); + return Intl.message( + 'Exams', + name: 'exams', + desc: '', + args: [], + ); } /// `Courses` String get courses { - return Intl.message('Courses', name: 'courses', desc: '', args: []); + return Intl.message( + 'Courses', + name: 'courses', + desc: '', + args: [], + ); } /// `All` String get all_feminine { - return Intl.message('All', name: 'all_feminine', desc: '', args: []); + return Intl.message( + 'All', + name: 'all_feminine', + desc: '', + args: [], + ); } /// `{type, select, all_dishes{All dishes} meat_dishes{Meat dishes} fish_dishes{Fish dishes} vegetarian_dishes{Vegetarian dishes} soups{Soups} salads{Salads} diet_dishes{Diet dishes} dishes_of_the_day{Dishes of the Day} closed{Closed} other{Other}}` @@ -1712,12 +2059,22 @@ class S { /// `Dish Types` String get dish_types { - return Intl.message('Dish Types', name: 'dish_types', desc: '', args: []); + return Intl.message( + 'Dish Types', + name: 'dish_types', + desc: '', + args: [], + ); } /// `Select All` String get select_all { - return Intl.message('Select All', name: 'select_all', desc: '', args: []); + return Intl.message( + 'Select All', + name: 'select_all', + desc: '', + args: [], + ); } /// `Favorites` @@ -1734,7 +2091,11 @@ class S { String restaurant_period(Object period) { return Intl.select( period, - {'lunch': 'Lunch', 'dinner': 'Dinner', 'other': 'Other'}, + { + 'lunch': 'Lunch', + 'dinner': 'Dinner', + 'other': 'Other', + }, name: 'restaurant_period', desc: '', args: [period], @@ -1763,12 +2124,22 @@ class S { /// `Now` String get now { - return Intl.message('Now', name: 'now', desc: '', args: []); + return Intl.message( + 'Now', + name: 'now', + desc: '', + args: [], + ); } /// `All` String get all { - return Intl.message('All', name: 'all', desc: '', args: []); + return Intl.message( + 'All', + name: 'all', + desc: '', + args: [], + ); } /// `Drag and drop elements` @@ -1793,37 +2164,72 @@ class S { /// `Library` String get library { - return Intl.message('Library', name: 'library', desc: '', args: []); + return Intl.message( + 'Library', + name: 'library', + desc: '', + args: [], + ); } /// `Restaurants` String get restaurants { - return Intl.message('Restaurants', name: 'restaurants', desc: '', args: []); + return Intl.message( + 'Restaurants', + name: 'restaurants', + desc: '', + args: [], + ); } /// `Calendar` String get calendar { - return Intl.message('Calendar', name: 'calendar', desc: '', args: []); + return Intl.message( + 'Calendar', + name: 'calendar', + desc: '', + args: [], + ); } /// `UCS` String get ucs { - return Intl.message('UCS', name: 'ucs', desc: '', args: []); + return Intl.message( + 'UCS', + name: 'ucs', + desc: '', + args: [], + ); } /// `Save` String get save { - return Intl.message('Save', name: 'save', desc: '', args: []); + return Intl.message( + 'Save', + name: 'save', + desc: '', + args: [], + ); } /// `Location` String get location { - return Intl.message('Location', name: 'location', desc: '', args: []); + return Intl.message( + 'Location', + name: 'location', + desc: '', + args: [], + ); } /// `Email` String get email { - return Intl.message('Email', name: 'email', desc: '', args: []); + return Intl.message( + 'Email', + name: 'email', + desc: '', + args: [], + ); } /// `Add to calendar` @@ -1848,12 +2254,22 @@ class S { /// `Until` String get until { - return Intl.message('Until', name: 'until', desc: '', args: []); + return Intl.message( + 'Until', + name: 'until', + desc: '', + args: [], + ); } /// `Services` String get services { - return Intl.message('Services', name: 'services', desc: '', args: []); + return Intl.message( + 'Services', + name: 'services', + desc: '', + args: [], + ); } /// `Orientation and Integration Office` @@ -1892,4 +2308,4 @@ class AppLocalizationDelegate extends LocalizationsDelegate { } return false; } -} +} \ No newline at end of file diff --git a/packages/uni_app/lib/l10n/intl_en.arb b/packages/uni_app/lib/l10n/intl_en.arb index b32440953..f403d6ac7 100644 --- a/packages/uni_app/lib/l10n/intl_en.arb +++ b/packages/uni_app/lib/l10n/intl_en.arb @@ -206,6 +206,8 @@ "@no_classes_on": {}, "no_classes_on_weekend": "You don't have classes on", "@no_classes_on_weekend": {}, + "no_classes_today": "You don't have any more classes today.\n Here are your next classes for ", + "@no_classes_today": {}, "no_college": "no college", "@no_college": {}, "no_course_units": "No course units in the selected period", diff --git a/packages/uni_app/lib/l10n/intl_pt_PT.arb b/packages/uni_app/lib/l10n/intl_pt_PT.arb index 5d0e0c9db..0dbad64cc 100644 --- a/packages/uni_app/lib/l10n/intl_pt_PT.arb +++ b/packages/uni_app/lib/l10n/intl_pt_PT.arb @@ -214,6 +214,8 @@ "@no_classes_on": {}, "no_classes_on_weekend": "Não possui aulas ao", "@no_classes_on_weekend": {}, + "no_classes_today": "Não possui mais aulas hoje.\n Aqui estão as suas próximas aulas para ", + "@no_classes_today": {}, "no_college": "sem faculdade", "@no_college": {}, "no_course_units": "Sem cadeiras no período selecionado", diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index 5d266b629..837952bd9 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -19,6 +19,49 @@ import 'package:uni_ui/cards/schedule_card.dart'; import 'package:uni_ui/cards/timeline_card.dart'; import 'package:uni_ui/icons.dart'; +class TimePeriod { + const TimePeriod({required this.start, required this.end}); + + final DateTime start; + final DateTime end; + + Duration get duration => end.difference(start); + + bool contains(DateTime date) => date.isAfter(start) && date.isBefore(end); +} + +List getMockLectures() { + final now = DateTime.now(); + return [ + Lecture( + 'ESOF', + 'ESOF', + 'T', + now.add(const Duration(days: 1)), + now.add(const Duration(hours: 2)), + 'Room B123', + 'ademaraguiar', + 'ademaraguiar', + 101, + '1', + 1001, + ), + Lecture( + 'LTW', + 'LTW', + 'TP', + now.add(const Duration(days: 1, hours: 1)), + now.add(const Duration(days: 4, hours: 2)), + 'Room B234', + 'arestivo', + 'arestivo', + 102, + '2', + 1002, + ), + ]; +} + class ScheduleHomeCard extends GenericHomecard { const ScheduleHomeCard({super.key}); @@ -29,14 +72,20 @@ class ScheduleHomeCard extends GenericHomecard { @override Widget buildCardContent(BuildContext context) { - return DefaultConsumer>( - provider: lectureProvider, - builder: - (context, ref, lectures) => CardTimeline( - items: buildTimelineItems(lectures, ref).take(2).toList(), - ), - hasContent: (lectures) => lectures.isNotEmpty, - nullContentWidget: Center( + final mockLectures = getMockLectures(); + final now = DateTime.now(); + + final todayStart = DateTime(now.year, now.month, now.day); + final todayEnd = todayStart.add(const Duration(days: 1)); + final tomorrowStart = todayStart.add(const Duration(days: 1)); + final tomorrowEnd = tomorrowStart.add(const Duration(days: 1)); + + // Upcoming lectures (from now) + final upcomingLectures = + mockLectures.where((lecture) => lecture.endTime.isAfter(now)).toList(); + + if (upcomingLectures.isEmpty) { + return Center( child: IconLabel( icon: const UniIcon(size: 45, UniIcons.beer), label: S.of(context).no_classes, @@ -45,13 +94,39 @@ class ScheduleHomeCard extends GenericHomecard { color: Theme.of(context).colorScheme.primary, ), ), - ), - mapper: - (lectures) => - lectures - .where((lecture) => lecture.endTime.isAfter(DateTime.now())) - .toList(), - loadingWidget: const ShimmerCardTimeline(), + ); + } + + final nextLecture = upcomingLectures.first; + + // Determine display text for date + String dateText; + if (nextLecture.startTime.isAfter(todayStart) && + nextLecture.startTime.isBefore(todayEnd)) { + dateText = 'Today:'; + } else if (nextLecture.startTime.isAfter(tomorrowStart) && + nextLecture.startTime.isBefore(tomorrowEnd)) { + dateText = 'Tomorrow:'; + } else { + dateText = DateFormat('EEEE, dd MMM').format(nextLecture.startTime); + } + + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + IconLabel( + icon: const UniIcon(size: 45, UniIcons.sun), + label: S.of(context).no_classes_today + dateText, + labelTextStyle: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ), + const SizedBox(height: 12), + CardTimeline( + items: buildTimelineItems(upcomingLectures, context).take(2).toList(), + ), + ], ); } @@ -65,56 +140,53 @@ class ScheduleHomeCard extends GenericHomecard { ); } - List buildTimelineItems(List lectures, WidgetRef ref) { + List buildTimelineItems( + List lectures, BuildContext context) { final now = DateTime.now(); + final period = TimePeriod(start: now, end: now.add(const Duration(hours: 72))); final week = Week(start: now); - final session = ref.read(sessionProvider); + final session = ProviderScope.containerOf(context, listen: false) + .read(sessionProvider); final sortedLectures = lectures - .where((lecture) => week.contains(lecture.startTime)) + .where((lecture) => period.contains(lecture.startTime)) .toList() .sortedBy((lecture) => week.getWeekday(lecture.startTime.weekday)); - final items = - sortedLectures - .map( - (element) => TimelineItem( - isActive: - now.isAfter(element.startTime) && - now.isBefore(element.endTime), - title: DateFormat('HH:mm').format(element.startTime), - subtitle: DateFormat('HH:mm').format(element.endTime), - card: FutureBuilder( - future: - session.value != null - ? ProfileNotifier.fetchOrGetCachedProfilePicture( - session.value!, - studentNumber: element.teacherId, - ) - : Future.value(), - builder: (context, snapshot) { - return ScheduleCard( - isActive: - now.isAfter(element.startTime) && - now.isBefore(element.endTime), - name: element.subject, - acronym: element.acronym, - room: element.room, - type: element.typeClass, - teacherName: element.teacherName, - teacherPhoto: - snapshot.hasData && snapshot.data != null - ? Image(image: FileImage(snapshot.data!)) - : Image.asset( - 'assets/images/profile_placeholder.png', - ), - ); - }, - ), - ), - ) - .toList(); - - return items; + return sortedLectures + .map( + (element) => TimelineItem( + isActive: now.isAfter(element.startTime) && + now.isBefore(element.endTime), + title: DateFormat('HH:mm').format(element.startTime), + subtitle: DateFormat('HH:mm').format(element.endTime), + card: FutureBuilder( + future: session.value != null + ? ProfileNotifier.fetchOrGetCachedProfilePicture( + session.value!, + studentNumber: element.teacherId, + ) + : Future.value(), + builder: (context, snapshot) { + return ScheduleCard( + isActive: + now.isAfter(element.startTime) && + now.isBefore(element.endTime), + name: element.subject, + acronym: element.acronym, + room: element.room, + type: element.typeClass, + teacherName: element.teacherName, + teacherPhoto: snapshot.hasData && snapshot.data != null + ? Image(image: FileImage(snapshot.data!)) + : Image.asset( + 'assets/images/profile_placeholder.png', + ), + ); + }, + ), + ), + ) + .toList(); } -} +} \ No newline at end of file From cc54e1b2a32e1c21040835ee405af6548859184e Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 4 Nov 2025 14:30:30 +0000 Subject: [PATCH 02/17] added translations for today & tommorow --- .../lib/generated/intl/messages_en.dart | 4 +++- .../lib/generated/intl/messages_pt_PT.dart | 4 +++- packages/uni_app/lib/generated/l10n.dart | 24 +++++++++++++++++-- packages/uni_app/lib/l10n/intl_en.arb | 6 ++++- packages/uni_app/lib/l10n/intl_pt_PT.arb | 6 ++++- .../widgets/schedule/schedule_home_card.dart | 4 ++-- 6 files changed, 40 insertions(+), 8 deletions(-) diff --git a/packages/uni_app/lib/generated/intl/messages_en.dart b/packages/uni_app/lib/generated/intl/messages_en.dart index b127fbc43..f881c53f7 100644 --- a/packages/uni_app/lib/generated/intl/messages_en.dart +++ b/packages/uni_app/lib/generated/intl/messages_en.dart @@ -162,7 +162,7 @@ class MessageLookup extends MessageLookupByLibrary { "no_classes_on" : MessageLookupByLibrary.simpleMessage("You don\'t have classes on"), "no_classes_on_weekend" : MessageLookupByLibrary.simpleMessage("You don\'t have classes on"), "no_classes_this_week" : MessageLookupByLibrary.simpleMessage("You have no classes this week"), - "no_classes_today" : MessageLookupByLibrary.simpleMessage("You don\'t have any more classes today.\n Here are your next classes for: \n"), + "no_classes_today" : MessageLookupByLibrary.simpleMessage("You don\'t have any more classes today.\n Here are your next classes for "), "no_college" : MessageLookupByLibrary.simpleMessage("no college"), "no_course_units" : MessageLookupByLibrary.simpleMessage("No course units in the selected period"), "no_courses" : MessageLookupByLibrary.simpleMessage("No courses we\'re found"), @@ -239,6 +239,8 @@ class MessageLookup extends MessageLookupByLibrary { "terms" : MessageLookupByLibrary.simpleMessage("Terms and Conditions"), "theme" : MessageLookupByLibrary.simpleMessage("Theme"), "title" : MessageLookupByLibrary.simpleMessage("Title"), + "today" : MessageLookupByLibrary.simpleMessage("today"), + "tommorow" : MessageLookupByLibrary.simpleMessage("tommorow"), "try_again" : MessageLookupByLibrary.simpleMessage("Try again"), "try_different_login" : MessageLookupByLibrary.simpleMessage("Having trouble signing in?"), "uc_info" : MessageLookupByLibrary.simpleMessage("Open UC page"), diff --git a/packages/uni_app/lib/generated/intl/messages_pt_PT.dart b/packages/uni_app/lib/generated/intl/messages_pt_PT.dart index d7c8bc66d..fca870665 100644 --- a/packages/uni_app/lib/generated/intl/messages_pt_PT.dart +++ b/packages/uni_app/lib/generated/intl/messages_pt_PT.dart @@ -162,7 +162,7 @@ class MessageLookup extends MessageLookupByLibrary { "no_classes_on" : MessageLookupByLibrary.simpleMessage("Não possui aulas à"), "no_classes_on_weekend" : MessageLookupByLibrary.simpleMessage("Não possui aulas ao"), "no_classes_this_week" : MessageLookupByLibrary.simpleMessage("Não tens aulas esta semana"), - "no_classes_today" : MessageLookupByLibrary.simpleMessage("Não possui mais aulas hoje.\n Aqui estão as suas próximas aulas para: \n"), + "no_classes_today" : MessageLookupByLibrary.simpleMessage("Não possui mais aulas hoje.\n Aqui estão as suas próximas aulas para "), "no_college" : MessageLookupByLibrary.simpleMessage("sem faculdade"), "no_course_units" : MessageLookupByLibrary.simpleMessage("Sem cadeiras no período selecionado"), "no_courses" : MessageLookupByLibrary.simpleMessage("Não foram encontrados cursos"), @@ -239,6 +239,8 @@ class MessageLookup extends MessageLookupByLibrary { "terms" : MessageLookupByLibrary.simpleMessage("Termos e Condições"), "theme" : MessageLookupByLibrary.simpleMessage("Tema"), "title" : MessageLookupByLibrary.simpleMessage("Título"), + "today" : MessageLookupByLibrary.simpleMessage("hoje"), + "tommorow" : MessageLookupByLibrary.simpleMessage("amanhã"), "try_again" : MessageLookupByLibrary.simpleMessage("Tentar de novo"), "try_different_login" : MessageLookupByLibrary.simpleMessage("Problemas ao iniciar sessão?"), "uc_info" : MessageLookupByLibrary.simpleMessage("Abrir página da UC"), diff --git a/packages/uni_app/lib/generated/l10n.dart b/packages/uni_app/lib/generated/l10n.dart index 1e187fc1a..e18664fe3 100644 --- a/packages/uni_app/lib/generated/l10n.dart +++ b/packages/uni_app/lib/generated/l10n.dart @@ -1055,10 +1055,10 @@ class S { ); } - /// `You don't have any more classes today.\n Here are your next classes for: \n` + /// `You don't have any more classes today.\n Here are your next classes for ` String get no_classes_today { return Intl.message( - 'You don\'t have any more classes today.\n Here are your next classes for: \n', + 'You don\'t have any more classes today.\n Here are your next classes for ', name: 'no_classes_today', desc: '', args: [], @@ -2281,6 +2281,26 @@ class S { args: [], ); } + + /// `tommorow` + String get tommorow { + return Intl.message( + 'tommorow', + name: 'tommorow', + desc: '', + args: [], + ); + } + + /// `today` + String get today { + return Intl.message( + 'today', + name: 'today', + desc: '', + args: [], + ); + } } class AppLocalizationDelegate extends LocalizationsDelegate { diff --git a/packages/uni_app/lib/l10n/intl_en.arb b/packages/uni_app/lib/l10n/intl_en.arb index f403d6ac7..dada831d0 100644 --- a/packages/uni_app/lib/l10n/intl_en.arb +++ b/packages/uni_app/lib/l10n/intl_en.arb @@ -447,5 +447,9 @@ "services": "Services", "@services": {}, "goi": "Orientation and Integration Office", - "@goi": {} + "@goi": {}, + "tommorow": "tommorow", + "@tomorrow": {}, + "today": "today", + "@today": {} } diff --git a/packages/uni_app/lib/l10n/intl_pt_PT.arb b/packages/uni_app/lib/l10n/intl_pt_PT.arb index 0dbad64cc..93d81e2b6 100644 --- a/packages/uni_app/lib/l10n/intl_pt_PT.arb +++ b/packages/uni_app/lib/l10n/intl_pt_PT.arb @@ -447,5 +447,9 @@ "services": "Serviços", "@services": {}, "goi": "Gabinete de Orientação e Integração", - "@goi": {} + "@goi": {}, + "tommorow": "amanhã", + "@tomorrow": {}, + "today": "hoje", + "@today": {} } diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index 837952bd9..6d22abd11 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -103,10 +103,10 @@ class ScheduleHomeCard extends GenericHomecard { String dateText; if (nextLecture.startTime.isAfter(todayStart) && nextLecture.startTime.isBefore(todayEnd)) { - dateText = 'Today:'; + dateText = S.of(context).today; } else if (nextLecture.startTime.isAfter(tomorrowStart) && nextLecture.startTime.isBefore(tomorrowEnd)) { - dateText = 'Tomorrow:'; + dateText = S.of(context).tommorow; } else { dateText = DateFormat('EEEE, dd MMM').format(nextLecture.startTime); } From 03b3bf6b3a2258005258449dc06bc3c15505cce7 Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 4 Nov 2025 15:24:58 +0000 Subject: [PATCH 03/17] fixed text alignment and grammar mistakes in the translations --- .../lib/generated/intl/messages_en.dart | 7 +- .../lib/generated/intl/messages_pt_PT.dart | 7 +- packages/uni_app/lib/generated/l10n.dart | 26 +++++--- packages/uni_app/lib/l10n/intl_en.arb | 10 +-- packages/uni_app/lib/l10n/intl_pt_PT.arb | 10 +-- .../widgets/schedule/schedule_home_card.dart | 64 +++++++++++-------- 6 files changed, 74 insertions(+), 50 deletions(-) diff --git a/packages/uni_app/lib/generated/intl/messages_en.dart b/packages/uni_app/lib/generated/intl/messages_en.dart index f881c53f7..8cc18feb7 100644 --- a/packages/uni_app/lib/generated/intl/messages_en.dart +++ b/packages/uni_app/lib/generated/intl/messages_en.dart @@ -151,6 +151,7 @@ class MessageLookup extends MessageLookupByLibrary { "multimedia_center" : MessageLookupByLibrary.simpleMessage("Multimedia center"), "nav_title" : m3, "news" : MessageLookupByLibrary.simpleMessage("News"), + "nextclasses" : MessageLookupByLibrary.simpleMessage("Here are your classes for "), "no" : MessageLookupByLibrary.simpleMessage("No"), "noExamsScheduled" : MessageLookupByLibrary.simpleMessage("No exams scheduled"), "noInstructors" : MessageLookupByLibrary.simpleMessage("No instructors assigned"), @@ -162,7 +163,7 @@ class MessageLookup extends MessageLookupByLibrary { "no_classes_on" : MessageLookupByLibrary.simpleMessage("You don\'t have classes on"), "no_classes_on_weekend" : MessageLookupByLibrary.simpleMessage("You don\'t have classes on"), "no_classes_this_week" : MessageLookupByLibrary.simpleMessage("You have no classes this week"), - "no_classes_today" : MessageLookupByLibrary.simpleMessage("You don\'t have any more classes today.\n Here are your next classes for "), + "no_classes_today" : MessageLookupByLibrary.simpleMessage("You don\'t have any more classes today."), "no_college" : MessageLookupByLibrary.simpleMessage("no college"), "no_course_units" : MessageLookupByLibrary.simpleMessage("No course units in the selected period"), "no_courses" : MessageLookupByLibrary.simpleMessage("No courses we\'re found"), @@ -239,8 +240,8 @@ class MessageLookup extends MessageLookupByLibrary { "terms" : MessageLookupByLibrary.simpleMessage("Terms and Conditions"), "theme" : MessageLookupByLibrary.simpleMessage("Theme"), "title" : MessageLookupByLibrary.simpleMessage("Title"), - "today" : MessageLookupByLibrary.simpleMessage("today"), - "tommorow" : MessageLookupByLibrary.simpleMessage("tommorow"), + "today" : MessageLookupByLibrary.simpleMessage("today:"), + "tomorrow" : MessageLookupByLibrary.simpleMessage("tomorrow:"), "try_again" : MessageLookupByLibrary.simpleMessage("Try again"), "try_different_login" : MessageLookupByLibrary.simpleMessage("Having trouble signing in?"), "uc_info" : MessageLookupByLibrary.simpleMessage("Open UC page"), diff --git a/packages/uni_app/lib/generated/intl/messages_pt_PT.dart b/packages/uni_app/lib/generated/intl/messages_pt_PT.dart index fca870665..cf12cb4f8 100644 --- a/packages/uni_app/lib/generated/intl/messages_pt_PT.dart +++ b/packages/uni_app/lib/generated/intl/messages_pt_PT.dart @@ -151,6 +151,7 @@ class MessageLookup extends MessageLookupByLibrary { "multimedia_center" : MessageLookupByLibrary.simpleMessage("Centro de multimédia"), "nav_title" : m3, "news" : MessageLookupByLibrary.simpleMessage("Notícias"), + "nextclasses" : MessageLookupByLibrary.simpleMessage("Aqui estão as tuas aulas para "), "no" : MessageLookupByLibrary.simpleMessage("Não"), "noExamsScheduled" : MessageLookupByLibrary.simpleMessage("Não há exames agendados"), "noInstructors" : MessageLookupByLibrary.simpleMessage("Não há docentes atribuídos"), @@ -162,7 +163,7 @@ class MessageLookup extends MessageLookupByLibrary { "no_classes_on" : MessageLookupByLibrary.simpleMessage("Não possui aulas à"), "no_classes_on_weekend" : MessageLookupByLibrary.simpleMessage("Não possui aulas ao"), "no_classes_this_week" : MessageLookupByLibrary.simpleMessage("Não tens aulas esta semana"), - "no_classes_today" : MessageLookupByLibrary.simpleMessage("Não possui mais aulas hoje.\n Aqui estão as suas próximas aulas para "), + "no_classes_today" : MessageLookupByLibrary.simpleMessage("Não tens mais aulas hoje."), "no_college" : MessageLookupByLibrary.simpleMessage("sem faculdade"), "no_course_units" : MessageLookupByLibrary.simpleMessage("Sem cadeiras no período selecionado"), "no_courses" : MessageLookupByLibrary.simpleMessage("Não foram encontrados cursos"), @@ -239,8 +240,8 @@ class MessageLookup extends MessageLookupByLibrary { "terms" : MessageLookupByLibrary.simpleMessage("Termos e Condições"), "theme" : MessageLookupByLibrary.simpleMessage("Tema"), "title" : MessageLookupByLibrary.simpleMessage("Título"), - "today" : MessageLookupByLibrary.simpleMessage("hoje"), - "tommorow" : MessageLookupByLibrary.simpleMessage("amanhã"), + "today" : MessageLookupByLibrary.simpleMessage("hoje:"), + "tomorrow" : MessageLookupByLibrary.simpleMessage("amanhã:"), "try_again" : MessageLookupByLibrary.simpleMessage("Tentar de novo"), "try_different_login" : MessageLookupByLibrary.simpleMessage("Problemas ao iniciar sessão?"), "uc_info" : MessageLookupByLibrary.simpleMessage("Abrir página da UC"), diff --git a/packages/uni_app/lib/generated/l10n.dart b/packages/uni_app/lib/generated/l10n.dart index e18664fe3..b15bdb194 100644 --- a/packages/uni_app/lib/generated/l10n.dart +++ b/packages/uni_app/lib/generated/l10n.dart @@ -1055,10 +1055,10 @@ class S { ); } - /// `You don't have any more classes today.\n Here are your next classes for ` + /// `You don't have any more classes today.` String get no_classes_today { return Intl.message( - 'You don\'t have any more classes today.\n Here are your next classes for ', + 'You don\'t have any more classes today.', name: 'no_classes_today', desc: '', args: [], @@ -2282,25 +2282,35 @@ class S { ); } - /// `tommorow` - String get tommorow { + /// `tomorrow:` + String get tomorrow { return Intl.message( - 'tommorow', - name: 'tommorow', + 'tomorrow:', + name: 'tomorrow', desc: '', args: [], ); } - /// `today` + /// `today:` String get today { return Intl.message( - 'today', + 'today:', name: 'today', desc: '', args: [], ); } + + /// `Here are your classes for ` + String get nextclasses { + return Intl.message( + 'Here are your classes for ', + name: 'nextclasses', + desc: '', + args: [], + ); + } } class AppLocalizationDelegate extends LocalizationsDelegate { diff --git a/packages/uni_app/lib/l10n/intl_en.arb b/packages/uni_app/lib/l10n/intl_en.arb index dada831d0..256876919 100644 --- a/packages/uni_app/lib/l10n/intl_en.arb +++ b/packages/uni_app/lib/l10n/intl_en.arb @@ -206,7 +206,7 @@ "@no_classes_on": {}, "no_classes_on_weekend": "You don't have classes on", "@no_classes_on_weekend": {}, - "no_classes_today": "You don't have any more classes today.\n Here are your next classes for ", + "no_classes_today": "You don't have any more classes today.", "@no_classes_today": {}, "no_college": "no college", "@no_college": {}, @@ -448,8 +448,10 @@ "@services": {}, "goi": "Orientation and Integration Office", "@goi": {}, - "tommorow": "tommorow", + "tomorrow": "tomorrow:", "@tomorrow": {}, - "today": "today", - "@today": {} + "today": "today:", + "@today": {}, + "nextclasses": "Here are your classes for ", + "@nextclasses": {} } diff --git a/packages/uni_app/lib/l10n/intl_pt_PT.arb b/packages/uni_app/lib/l10n/intl_pt_PT.arb index 93d81e2b6..67f57c912 100644 --- a/packages/uni_app/lib/l10n/intl_pt_PT.arb +++ b/packages/uni_app/lib/l10n/intl_pt_PT.arb @@ -214,7 +214,7 @@ "@no_classes_on": {}, "no_classes_on_weekend": "Não possui aulas ao", "@no_classes_on_weekend": {}, - "no_classes_today": "Não possui mais aulas hoje.\n Aqui estão as suas próximas aulas para ", + "no_classes_today": "Não tens mais aulas hoje.", "@no_classes_today": {}, "no_college": "sem faculdade", "@no_college": {}, @@ -448,8 +448,10 @@ "@services": {}, "goi": "Gabinete de Orientação e Integração", "@goi": {}, - "tommorow": "amanhã", + "tomorrow": "amanhã:", "@tomorrow": {}, - "today": "hoje", - "@today": {} + "today": "hoje:", + "@today": {}, + "nextclasses": "Aqui estão as tuas aulas para ", + "@nextclasses": {} } diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index 6d22abd11..911771bdf 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -37,8 +37,8 @@ List getMockLectures() { 'ESOF', 'ESOF', 'T', - now.add(const Duration(days: 1)), - now.add(const Duration(hours: 2)), + now.add(const Duration(days: 5)), + now.add(const Duration(hours: 3)), 'Room B123', 'ademaraguiar', 'ademaraguiar', @@ -50,8 +50,8 @@ List getMockLectures() { 'LTW', 'LTW', 'TP', - now.add(const Duration(days: 1, hours: 1)), - now.add(const Duration(days: 4, hours: 2)), + now.add(const Duration(days: 5, hours: 1)), + now.add(const Duration(days: 6, hours: 2)), 'Room B234', 'arestivo', 'arestivo', @@ -84,20 +84,8 @@ class ScheduleHomeCard extends GenericHomecard { final upcomingLectures = mockLectures.where((lecture) => lecture.endTime.isAfter(now)).toList(); - if (upcomingLectures.isEmpty) { - return Center( - child: IconLabel( - icon: const UniIcon(size: 45, UniIcons.beer), - label: S.of(context).no_classes, - labelTextStyle: TextStyle( - fontSize: 14, - color: Theme.of(context).colorScheme.primary, - ), - ), - ); - } - - final nextLecture = upcomingLectures.first; + if (upcomingLectures.isNotEmpty) { + final nextLecture = upcomingLectures.first; // Determine display text for date String dateText; @@ -106,28 +94,48 @@ class ScheduleHomeCard extends GenericHomecard { dateText = S.of(context).today; } else if (nextLecture.startTime.isAfter(tomorrowStart) && nextLecture.startTime.isBefore(tomorrowEnd)) { - dateText = S.of(context).tommorow; + dateText = S.of(context).tomorrow; } else { - dateText = DateFormat('EEEE, dd MMM').format(nextLecture.startTime); + dateText = '${DateFormat('EEEE').format(nextLecture.startTime)}:'; } return Column( mainAxisSize: MainAxisSize.min, children: [ - IconLabel( - icon: const UniIcon(size: 45, UniIcons.sun), - label: S.of(context).no_classes_today + dateText, - labelTextStyle: TextStyle( - fontSize: 14, - color: Theme.of(context).colorScheme.primary, - ), + Column( + spacing: 16, + children: [ + const UniIcon(size: 45, UniIcons.sun), + Text('${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 14, + + color: Theme.of(context).colorScheme.primary, + ), + ) + ], ), - const SizedBox(height: 12), + const SizedBox(height: 18), CardTimeline( items: buildTimelineItems(upcomingLectures, context).take(2).toList(), ), ], ); + } + + else{ + return Center( + child: IconLabel( + icon: const UniIcon(size: 45, UniIcons.beer), + label: S.of(context).no_classes, + labelTextStyle: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ), + ); + } } @override From 86a4a66dc7f28d00d09e592972e5aadf4f5ba93b Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 4 Nov 2025 15:53:50 +0000 Subject: [PATCH 04/17] further development of the schedule --- .../widgets/schedule/schedule_home_card.dart | 207 ++++++++++++------ 1 file changed, 139 insertions(+), 68 deletions(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index 911771bdf..b7699c565 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -37,8 +37,8 @@ List getMockLectures() { 'ESOF', 'ESOF', 'T', - now.add(const Duration(days: 5)), - now.add(const Duration(hours: 3)), + now.add(const Duration(days: 4)), + now.add(const Duration(hours: 2)), 'Room B123', 'ademaraguiar', 'ademaraguiar', @@ -79,52 +79,120 @@ class ScheduleHomeCard extends GenericHomecard { final todayEnd = todayStart.add(const Duration(days: 1)); final tomorrowStart = todayStart.add(const Duration(days: 1)); final tomorrowEnd = tomorrowStart.add(const Duration(days: 1)); + final weekEnd = todayStart.add(const Duration(days: 7)); // Upcoming lectures (from now) final upcomingLectures = mockLectures.where((lecture) => lecture.endTime.isAfter(now)).toList(); if (upcomingLectures.isNotEmpty) { + // ensure the list is sorted so first == next + upcomingLectures.sort((a, b) => a.startTime.compareTo(b.startTime)); final nextLecture = upcomingLectures.first; - // Determine display text for date - String dateText; - if (nextLecture.startTime.isAfter(todayStart) && - nextLecture.startTime.isBefore(todayEnd)) { - dateText = S.of(context).today; - } else if (nextLecture.startTime.isAfter(tomorrowStart) && - nextLecture.startTime.isBefore(tomorrowEnd)) { - dateText = S.of(context).tomorrow; - } else { - dateText = '${DateFormat('EEEE').format(nextLecture.startTime)}:'; - } - - return Column( - mainAxisSize: MainAxisSize.min, - children: [ - Column( - spacing: 16, + // Determine display text for date + String dateText; + if (nextLecture.startTime.isAfter(todayStart) && + nextLecture.startTime.isBefore(todayEnd)) { + dateText = S.of(context).today; + return Column( + mainAxisSize: MainAxisSize.min, children: [ - const UniIcon(size: 45, UniIcons.sun), - Text('${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText', - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 14, - - color: Theme.of(context).colorScheme.primary, - ), - ) + Text( + '${S.of(context).nextclasses}$dateText', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ), + const SizedBox(height: 18), + CardTimeline( + items: + buildTimelineItems(upcomingLectures, context).take(2).toList(), + ), ], - ), - const SizedBox(height: 18), - CardTimeline( - items: buildTimelineItems(upcomingLectures, context).take(2).toList(), - ), - ], - ); - } - - else{ + ); + } else if (nextLecture.startTime.isAfter(tomorrowStart) && + nextLecture.startTime.isBefore(tomorrowEnd)) { + dateText = S.of(context).tomorrow; + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + const UniIcon(size: 45, UniIcons.sun), + const SizedBox(height: 8), + Text( + '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ) + ], + ), + const SizedBox(height: 18), + CardTimeline( + items: + buildTimelineItems(upcomingLectures, context).take(2).toList(), + ), + ], + ); + } else if (nextLecture.startTime.isBefore(weekEnd) && + nextLecture.startTime.isAfter(tomorrowEnd)) { + dateText = DateFormat('EEEE', Localizations.localeOf(context).toString()) + .format(nextLecture.startTime); + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + const UniIcon(size: 45, UniIcons.sun), + const SizedBox(height: 8), + Text( + '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText:', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ) + ], + ), + const SizedBox(height: 18), + CardTimeline( + items: + buildTimelineItems(upcomingLectures, context).take(2).toList(), + ), + ], + ); + } else { + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + const UniIcon(size: 45, UniIcons.sun), + const SizedBox(height: 8), + Text( + S.of(context).no_classes_this_week, + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ) + ], + ), + ], + ); + } + } else { return Center( child: IconLabel( icon: const UniIcon(size: 45, UniIcons.beer), @@ -151,7 +219,7 @@ class ScheduleHomeCard extends GenericHomecard { List buildTimelineItems( List lectures, BuildContext context) { final now = DateTime.now(); - final period = TimePeriod(start: now, end: now.add(const Duration(hours: 72))); + final period = TimePeriod(start: now, end: now.add(const Duration(days: 7))); final week = Week(start: now); final session = ProviderScope.containerOf(context, listen: false) .read(sessionProvider); @@ -163,37 +231,40 @@ class ScheduleHomeCard extends GenericHomecard { return sortedLectures .map( - (element) => TimelineItem( - isActive: now.isAfter(element.startTime) && - now.isBefore(element.endTime), - title: DateFormat('HH:mm').format(element.startTime), - subtitle: DateFormat('HH:mm').format(element.endTime), - card: FutureBuilder( - future: session.value != null - ? ProfileNotifier.fetchOrGetCachedProfilePicture( - session.value!, - studentNumber: element.teacherId, - ) - : Future.value(), - builder: (context, snapshot) { - return ScheduleCard( - isActive: - now.isAfter(element.startTime) && - now.isBefore(element.endTime), - name: element.subject, - acronym: element.acronym, - room: element.room, - type: element.typeClass, - teacherName: element.teacherName, - teacherPhoto: snapshot.hasData && snapshot.data != null - ? Image(image: FileImage(snapshot.data!)) + (element) { + final isActive = now.isAfter(element.startTime) && + now.isBefore(element.endTime); + return TimelineItem( + isActive: isActive, + title: DateFormat('HH:mm').format(element.startTime), + subtitle: DateFormat('HH:mm').format(element.endTime), + card: FutureBuilder( + future: session.value != null + ? ProfileNotifier.fetchOrGetCachedProfilePicture( + session.value!, + studentNumber: element.teacherId, + ) + : Future.value(null), + builder: (context, snapshot) { + final teacherPhoto = (snapshot.hasData && snapshot.data != null) + ? Image.file(snapshot.data!) : Image.asset( 'assets/images/profile_placeholder.png', - ), - ); - }, - ), - ), + ); + + return ScheduleCard( + isActive: isActive, + name: element.subject, + acronym: element.acronym, + room: element.room, + type: element.typeClass, + teacherName: element.teacherName, + teacherPhoto: teacherPhoto, + ); + }, + ), + ); + }, ) .toList(); } From e33d0735b41604163d673f04cf67b609e0075660 Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 4 Nov 2025 16:01:42 +0000 Subject: [PATCH 05/17] message fix --- .../view/home/widgets/schedule/schedule_home_card.dart | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index b7699c565..6cee447a3 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -37,8 +37,8 @@ List getMockLectures() { 'ESOF', 'ESOF', 'T', - now.add(const Duration(days: 4)), - now.add(const Duration(hours: 2)), + now.add(const Duration(days: 3, hours: 1)), + now.add(const Duration(days: 3, hours: 2)), 'Room B123', 'ademaraguiar', 'ademaraguiar', @@ -50,8 +50,8 @@ List getMockLectures() { 'LTW', 'LTW', 'TP', - now.add(const Duration(days: 5, hours: 1)), - now.add(const Duration(days: 6, hours: 2)), + now.add(const Duration(days: 4, hours: 1)), + now.add(const Duration(days: 4, hours: 2)), 'Room B234', 'arestivo', 'arestivo', @@ -99,7 +99,7 @@ class ScheduleHomeCard extends GenericHomecard { mainAxisSize: MainAxisSize.min, children: [ Text( - '${S.of(context).nextclasses}$dateText', + '$dateText', textAlign: TextAlign.center, style: TextStyle( fontSize: 14, From 899aed95ef7988aca807f92c31b122bfe2162596 Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 4 Nov 2025 19:09:21 +0000 Subject: [PATCH 06/17] fixed same day logic and added paddings --- .../widgets/schedule/schedule_home_card.dart | 45 +++++++++---------- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index 6cee447a3..def0cf0d7 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -37,8 +37,8 @@ List getMockLectures() { 'ESOF', 'ESOF', 'T', - now.add(const Duration(days: 3, hours: 1)), - now.add(const Duration(days: 3, hours: 2)), + now.add(const Duration(days: 7, hours: 1)), + now.add(const Duration(days: 7, hours: 2)), 'Room B123', 'ademaraguiar', 'ademaraguiar', @@ -50,8 +50,8 @@ List getMockLectures() { 'LTW', 'LTW', 'TP', - now.add(const Duration(days: 4, hours: 1)), - now.add(const Duration(days: 4, hours: 2)), + now.add(const Duration(days: 7, hours: 2)), + now.add(const Duration(days: 7, hours: 3)), 'Room B234', 'arestivo', 'arestivo', @@ -89,6 +89,16 @@ class ScheduleHomeCard extends GenericHomecard { // ensure the list is sorted so first == next upcomingLectures.sort((a, b) => a.startTime.compareTo(b.startTime)); final nextLecture = upcomingLectures.first; + Lecture secondLecture = nextLecture; + if(upcomingLectures.length > 1){ + secondLecture = upcomingLectures[1]; + } + + if(secondLecture.startTime.day != nextLecture.startTime.day){ + upcomingLectures + ..clear() + ..add(nextLecture); + } // Determine display text for date String dateText; @@ -99,7 +109,7 @@ class ScheduleHomeCard extends GenericHomecard { mainAxisSize: MainAxisSize.min, children: [ Text( - '$dateText', + dateText, textAlign: TextAlign.center, style: TextStyle( fontSize: 14, @@ -171,25 +181,14 @@ class ScheduleHomeCard extends GenericHomecard { ], ); } else { - return Column( - mainAxisSize: MainAxisSize.min, - children: [ - Column( - mainAxisSize: MainAxisSize.min, - children: [ - const UniIcon(size: 45, UniIcons.sun), - const SizedBox(height: 8), - Text( - S.of(context).no_classes_this_week, - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 14, - color: Theme.of(context).colorScheme.primary, - ), - ) - ], + return Center(child: + IconLabel(icon: const UniIcon(size : 45, UniIcons.sun), + label: S.of(context).no_classes_this_week, + labelTextStyle: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, ), - ], + ) ); } } else { From 5b0a3f83a43f3812efa89fad4e6d01656086d8e6 Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 14:27:12 +0000 Subject: [PATCH 07/17] formatting --- .../lib/generated/intl/messages_all.dart | 10 +- .../lib/generated/intl/messages_en.dart | 661 +++++++++++------ .../lib/generated/intl/messages_pt_PT.dart | 685 ++++++++++++------ packages/uni_app/lib/generated/l10n.dart | 620 +++------------- .../widgets/schedule/schedule_home_card.dart | 125 ++-- 5 files changed, 1069 insertions(+), 1032 deletions(-) diff --git a/packages/uni_app/lib/generated/intl/messages_all.dart b/packages/uni_app/lib/generated/intl/messages_all.dart index fb1bd2689..4aa88b6e7 100644 --- a/packages/uni_app/lib/generated/intl/messages_all.dart +++ b/packages/uni_app/lib/generated/intl/messages_all.dart @@ -40,7 +40,8 @@ Future initializeMessages(String localeName) async { var availableLocale = Intl.verifiedLocale( localeName, (locale) => _deferredLibraries[locale] != null, - onFailure: (_) => null); + onFailure: (_) => null, + ); if (availableLocale == null) { return new Future.value(false); } @@ -60,8 +61,11 @@ bool _messagesExistFor(String locale) { } MessageLookupByLibrary? _findGeneratedMessagesFor(String locale) { - var actualLocale = Intl.verifiedLocale(locale, _messagesExistFor, - onFailure: (_) => null); + var actualLocale = Intl.verifiedLocale( + locale, + _messagesExistFor, + onFailure: (_) => null, + ); if (actualLocale == null) return null; return _findExact(actualLocale); } diff --git a/packages/uni_app/lib/generated/intl/messages_en.dart b/packages/uni_app/lib/generated/intl/messages_en.dart index 8cc18feb7..1c7f7bc71 100644 --- a/packages/uni_app/lib/generated/intl/messages_en.dart +++ b/packages/uni_app/lib/generated/intl/messages_en.dart @@ -19,240 +19,445 @@ typedef String MessageIfAbsent(String messageStr, List args); class MessageLookup extends MessageLookupByLibrary { String get localeName => 'en'; - static m0(type) => "${Intl.select(type, {'all_dishes': 'All dishes', 'meat_dishes': 'Meat dishes', 'fish_dishes': 'Fish dishes', 'vegetarian_dishes': 'Vegetarian dishes', 'soups': 'Soups', 'salads': 'Salads', 'diet_dishes': 'Diet dishes', 'dishes_of_the_day': 'Dishes of the Day', 'closed': 'Closed', 'other': 'Other', })}"; + static m0(type) => + "${Intl.select(type, {'all_dishes': 'All dishes', 'meat_dishes': 'Meat dishes', 'fish_dishes': 'Fish dishes', 'vegetarian_dishes': 'Vegetarian dishes', 'soups': 'Soups', 'salads': 'Salads', 'diet_dishes': 'Diet dishes', 'dishes_of_the_day': 'Dishes of the Day', 'closed': 'Closed', 'other': 'Other'})}"; static m1(time) => "last refresh at ${time}"; - static m2(time) => "${Intl.plural(time, zero: 'Refreshed ${time} minutes ago', one: 'Refreshed ${time} minute ago', other: 'Refreshed ${time} minutes ago')}"; + static m2(time) => + "${Intl.plural(time, zero: 'Refreshed ${time} minutes ago', one: 'Refreshed ${time} minute ago', other: 'Refreshed ${time} minutes ago')}"; - static m3(title) => "${Intl.select(title, {'horario': 'Schedule', 'exames': 'Exams', 'area': 'Personal Area', 'cadeiras': 'Course Units', 'autocarros': 'Buses', 'locais': 'Places', 'restaurantes': 'Restaurants', 'calendario': 'Calendar', 'biblioteca': 'Library', 'percurso_academico': 'Academic Path', 'mapa': 'Map', 'faculdade': 'Faculty', 'other': 'Other', })}"; + static m3(title) => + "${Intl.select(title, {'horario': 'Schedule', 'exames': 'Exams', 'area': 'Personal Area', 'cadeiras': 'Course Units', 'autocarros': 'Buses', 'locais': 'Places', 'restaurantes': 'Restaurants', 'calendario': 'Calendar', 'biblioteca': 'Library', 'percurso_academico': 'Academic Path', 'mapa': 'Map', 'faculdade': 'Faculty', 'other': 'Other'})}"; - static m4(period) => "${Intl.select(period, {'lunch': 'Lunch', 'dinner': 'Dinner', 'other': 'Other', })}"; + static m4(period) => + "${Intl.select(period, {'lunch': 'Lunch', 'dinner': 'Dinner', 'other': 'Other'})}"; final messages = _notInlinedMessages(_notInlinedMessages); - static _notInlinedMessages(_) => { - "about" : MessageLookupByLibrary.simpleMessage("About us"), - "academic_services" : MessageLookupByLibrary.simpleMessage("Academic services"), - "account_card_title" : MessageLookupByLibrary.simpleMessage("Checking account"), - "add" : MessageLookupByLibrary.simpleMessage("Add"), - "add_photo" : MessageLookupByLibrary.simpleMessage("Add photo"), - "add_quota" : MessageLookupByLibrary.simpleMessage("Add quota"), - "add_restaurants" : MessageLookupByLibrary.simpleMessage("Add restaurants"), - "add_to_calendar" : MessageLookupByLibrary.simpleMessage("Add to calendar"), - "add_widget" : MessageLookupByLibrary.simpleMessage("Add widget"), - "agree_terms" : MessageLookupByLibrary.simpleMessage("By entering you agree with these"), - "all" : MessageLookupByLibrary.simpleMessage("All"), - "all_feminine" : MessageLookupByLibrary.simpleMessage("All"), - "all_widgets_added" : MessageLookupByLibrary.simpleMessage("All available widgets have already been added to your personal area!"), - "apply" : MessageLookupByLibrary.simpleMessage("Apply"), - "assessments" : MessageLookupByLibrary.simpleMessage("Assessments"), - "at_least_one_college" : MessageLookupByLibrary.simpleMessage("Select at least one college"), - "available_amount" : MessageLookupByLibrary.simpleMessage("Available amount"), - "available_elements" : MessageLookupByLibrary.simpleMessage("Available elements"), - "average" : MessageLookupByLibrary.simpleMessage("Average"), - "balance" : MessageLookupByLibrary.simpleMessage("Balance"), - "banner_info" : MessageLookupByLibrary.simpleMessage("We collect anonymous usage data to help improve your experience. You can opt out anytime in the settings."), - "bibliography" : MessageLookupByLibrary.simpleMessage("Bibliography"), - "breakfast" : MessageLookupByLibrary.simpleMessage("Breakfast"), - "bs_description" : MessageLookupByLibrary.simpleMessage("Did you find any bugs in the application?\nDo you have any suggestions for the app?\nTell us so we can improve!"), - "bug_description" : MessageLookupByLibrary.simpleMessage("Bug found, how to reproduce it, etc."), - "bug_description_Suggestion" : MessageLookupByLibrary.simpleMessage("Suggestion"), - "bug_description_error" : MessageLookupByLibrary.simpleMessage("Error"), - "bug_description_other" : MessageLookupByLibrary.simpleMessage("Other"), - "bug_description_unexpected_behaviour" : MessageLookupByLibrary.simpleMessage("Unexpected Behaviour"), - "bug_description_visual_detail" : MessageLookupByLibrary.simpleMessage("Visual Detail"), - "bus_error" : MessageLookupByLibrary.simpleMessage("Unable to get information"), - "bus_information" : MessageLookupByLibrary.simpleMessage("Select the buses you want information about:"), - "buses_personalize" : MessageLookupByLibrary.simpleMessage("Personalize your buses here"), - "buses_text" : MessageLookupByLibrary.simpleMessage("Favorite buses will be displayed in the favorites \'Bus\' widget. The remaining ones will only be displayed on the page."), - "calendar" : MessageLookupByLibrary.simpleMessage("Calendar"), - "cancel" : MessageLookupByLibrary.simpleMessage("Cancel"), - "change" : MessageLookupByLibrary.simpleMessage("Change"), - "change_password" : MessageLookupByLibrary.simpleMessage("Change password"), - "change_prompt" : MessageLookupByLibrary.simpleMessage("Do you want to change the password?"), - "check_internet" : MessageLookupByLibrary.simpleMessage("Check your internet connection"), - "class_registration" : MessageLookupByLibrary.simpleMessage("Class Registration"), - "collect_usage_stats" : MessageLookupByLibrary.simpleMessage("Collect usage statistics"), - "college" : MessageLookupByLibrary.simpleMessage("College: "), - "college_select" : MessageLookupByLibrary.simpleMessage("select your college(s)"), - "conclude" : MessageLookupByLibrary.simpleMessage("Done"), - "configured_buses" : MessageLookupByLibrary.simpleMessage("Configured Buses"), - "confirm" : MessageLookupByLibrary.simpleMessage("Confirm"), - "confirm_logout" : MessageLookupByLibrary.simpleMessage("Do you really want to log out? Your local data will be deleted and you will have to log in again."), - "consent" : MessageLookupByLibrary.simpleMessage("I consent to this information being reviewed by NIAEFEUP and may be deleted at my request."), - "contact" : MessageLookupByLibrary.simpleMessage("Contact (optional)"), - "copy_center" : MessageLookupByLibrary.simpleMessage("Copy center"), - "copy_center_building" : MessageLookupByLibrary.simpleMessage("Floor -1 of building B | AEFEUP building"), - "courseRegent" : MessageLookupByLibrary.simpleMessage("Course Regent"), - "course_class" : MessageLookupByLibrary.simpleMessage("Classes"), - "course_info" : MessageLookupByLibrary.simpleMessage("Info"), - "courses" : MessageLookupByLibrary.simpleMessage("Courses"), - "current_state" : MessageLookupByLibrary.simpleMessage("Current state: "), - "current_year" : MessageLookupByLibrary.simpleMessage("Current academic year: "), - "decrement" : MessageLookupByLibrary.simpleMessage("Decrement 1,00€"), - "description" : MessageLookupByLibrary.simpleMessage("Description"), - "desired_email" : MessageLookupByLibrary.simpleMessage("Email where you want to be contacted"), - "dinner" : MessageLookupByLibrary.simpleMessage("Dinner"), - "dish_type" : m0, - "dish_types" : MessageLookupByLibrary.simpleMessage("Dish Types"), - "dona_bia" : MessageLookupByLibrary.simpleMessage("D. Beatriz\'s stationery store"), - "dona_bia_building" : MessageLookupByLibrary.simpleMessage("Floor -1 of building B (B-142)"), - "download_error" : MessageLookupByLibrary.simpleMessage("Error downloading the file"), - "drag_and_drop" : MessageLookupByLibrary.simpleMessage("Drag and drop elements"), - "ects" : MessageLookupByLibrary.simpleMessage("ECTS performed: "), - "edit_off" : MessageLookupByLibrary.simpleMessage("Edit"), - "edit_on" : MessageLookupByLibrary.simpleMessage("Finish editing"), - "email" : MessageLookupByLibrary.simpleMessage("Email"), - "empty_text" : MessageLookupByLibrary.simpleMessage("Please fill in this field"), - "evaluation" : MessageLookupByLibrary.simpleMessage("Evaluation"), - "exams" : MessageLookupByLibrary.simpleMessage("Exams"), - "exams_filter" : MessageLookupByLibrary.simpleMessage("Exams Filter Settings"), - "exit_confirm" : MessageLookupByLibrary.simpleMessage("Do you really want to exit?"), - "expired_password" : MessageLookupByLibrary.simpleMessage("Your password has expired"), - "fail_to_authenticate" : MessageLookupByLibrary.simpleMessage("Failed to authenticate"), - "failed_login" : MessageLookupByLibrary.simpleMessage("Login failed"), - "failed_upload" : MessageLookupByLibrary.simpleMessage("Failed to upload"), - "favorite_filter" : MessageLookupByLibrary.simpleMessage("Favorites"), - "fee_date" : MessageLookupByLibrary.simpleMessage("Deadline"), - "fee_notification" : MessageLookupByLibrary.simpleMessage("Fee deadline"), - "feedback_description" : MessageLookupByLibrary.simpleMessage("Report an issue or suggest an improvement"), - "files" : MessageLookupByLibrary.simpleMessage("Files"), - "first_year_registration" : MessageLookupByLibrary.simpleMessage("Year of first registration: "), - "floor" : MessageLookupByLibrary.simpleMessage("Floor"), - "floors" : MessageLookupByLibrary.simpleMessage("Floors"), - "forgot_password" : MessageLookupByLibrary.simpleMessage("Forgot password?"), - "frequency" : MessageLookupByLibrary.simpleMessage("Eligibility for exams"), - "generate_reference" : MessageLookupByLibrary.simpleMessage("Generate reference"), - "geral_registration" : MessageLookupByLibrary.simpleMessage("General Registration"), - "goi" : MessageLookupByLibrary.simpleMessage("Orientation and Integration Office"), - "improvement_registration" : MessageLookupByLibrary.simpleMessage("Enrollment for Improvement"), - "increment" : MessageLookupByLibrary.simpleMessage("Increment 1,00€"), - "instructor" : MessageLookupByLibrary.simpleMessage("Instructor"), - "instructors" : MessageLookupByLibrary.simpleMessage("Instructors"), - "internet_status_exception" : MessageLookupByLibrary.simpleMessage("Check your internet connection"), - "invalid_credentials" : MessageLookupByLibrary.simpleMessage("Invalid credentials"), - "keep_login" : MessageLookupByLibrary.simpleMessage("Remember me"), - "language" : MessageLookupByLibrary.simpleMessage("Language"), - "last_refresh_time" : m1, - "last_timestamp" : m2, - "leave_feedback" : MessageLookupByLibrary.simpleMessage("Leave feedback"), - "lectures" : MessageLookupByLibrary.simpleMessage("Lectures"), - "library" : MessageLookupByLibrary.simpleMessage("Library"), - "library_occupation" : MessageLookupByLibrary.simpleMessage("Library Occupation"), - "load_error" : MessageLookupByLibrary.simpleMessage("Error loading the information"), - "loading_terms" : MessageLookupByLibrary.simpleMessage("Loading Terms and Conditions..."), - "location" : MessageLookupByLibrary.simpleMessage("Location"), - "login" : MessageLookupByLibrary.simpleMessage("Login"), - "login_with_credentials" : MessageLookupByLibrary.simpleMessage("Login with credentials"), - "logout" : MessageLookupByLibrary.simpleMessage("Log out"), - "lunch" : MessageLookupByLibrary.simpleMessage("Lunch"), - "menus" : MessageLookupByLibrary.simpleMessage("Menus"), - "min_value_reference" : MessageLookupByLibrary.simpleMessage("Minimum value: 1,00 €"), - "multimedia_center" : MessageLookupByLibrary.simpleMessage("Multimedia center"), - "nav_title" : m3, - "news" : MessageLookupByLibrary.simpleMessage("News"), - "nextclasses" : MessageLookupByLibrary.simpleMessage("Here are your classes for "), - "no" : MessageLookupByLibrary.simpleMessage("No"), - "noExamsScheduled" : MessageLookupByLibrary.simpleMessage("No exams scheduled"), - "noInstructors" : MessageLookupByLibrary.simpleMessage("No instructors assigned"), - "no_app" : MessageLookupByLibrary.simpleMessage("No app found to open the file"), - "no_bus" : MessageLookupByLibrary.simpleMessage("Don\'t miss any bus!"), - "no_bus_stops" : MessageLookupByLibrary.simpleMessage("No configured stops"), - "no_class" : MessageLookupByLibrary.simpleMessage("There are no classes to display"), - "no_classes" : MessageLookupByLibrary.simpleMessage("No classes to present"), - "no_classes_on" : MessageLookupByLibrary.simpleMessage("You don\'t have classes on"), - "no_classes_on_weekend" : MessageLookupByLibrary.simpleMessage("You don\'t have classes on"), - "no_classes_this_week" : MessageLookupByLibrary.simpleMessage("You have no classes this week"), - "no_classes_today" : MessageLookupByLibrary.simpleMessage("You don\'t have any more classes today."), - "no_college" : MessageLookupByLibrary.simpleMessage("no college"), - "no_course_units" : MessageLookupByLibrary.simpleMessage("No course units in the selected period"), - "no_courses" : MessageLookupByLibrary.simpleMessage("No courses we\'re found"), - "no_courses_description" : MessageLookupByLibrary.simpleMessage("Try to refresh the page"), - "no_data" : MessageLookupByLibrary.simpleMessage("There is no data to show at this time"), - "no_date" : MessageLookupByLibrary.simpleMessage("No date"), - "no_events" : MessageLookupByLibrary.simpleMessage("No events found"), - "no_exams" : MessageLookupByLibrary.simpleMessage("You have no exams scheduled\n"), - "no_exams_label" : MessageLookupByLibrary.simpleMessage("Looks like you are on vacation!"), - "no_favorite_restaurants" : MessageLookupByLibrary.simpleMessage("No favorite restaurants open"), - "no_files" : MessageLookupByLibrary.simpleMessage("There\'s no files attached"), - "no_files_found" : MessageLookupByLibrary.simpleMessage("No files found"), - "no_files_label" : MessageLookupByLibrary.simpleMessage("You have nothing to see!"), - "no_info" : MessageLookupByLibrary.simpleMessage("There is no information to display"), - "no_internet" : MessageLookupByLibrary.simpleMessage("It looks like you\'re offline"), - "no_library_info" : MessageLookupByLibrary.simpleMessage("No library occupation information available"), - "no_link" : MessageLookupByLibrary.simpleMessage("We couldn\'t open the link"), - "no_menu_info" : MessageLookupByLibrary.simpleMessage("There is no information available about meals"), - "no_menus" : MessageLookupByLibrary.simpleMessage("There are no meals available"), - "no_name_course" : MessageLookupByLibrary.simpleMessage("Unnamed course"), - "no_places_info" : MessageLookupByLibrary.simpleMessage("There is no information available about places"), - "no_print_info" : MessageLookupByLibrary.simpleMessage("No print balance information"), - "no_references" : MessageLookupByLibrary.simpleMessage("There are no references to pay"), - "no_results" : MessageLookupByLibrary.simpleMessage("No match"), - "no_selected_courses" : MessageLookupByLibrary.simpleMessage("There are no course units to display"), - "no_selected_exams" : MessageLookupByLibrary.simpleMessage("There are no exams to present"), - "no_trips" : MessageLookupByLibrary.simpleMessage("No trips found at the moment"), - "notifications" : MessageLookupByLibrary.simpleMessage("Notifications"), - "now" : MessageLookupByLibrary.simpleMessage("Now"), - "occurrence_type" : MessageLookupByLibrary.simpleMessage("Type of occurrence"), - "of_month" : MessageLookupByLibrary.simpleMessage("of"), - "open_error" : MessageLookupByLibrary.simpleMessage("Error opening the file"), - "other_links" : MessageLookupByLibrary.simpleMessage("Other links"), - "pass_change_request" : MessageLookupByLibrary.simpleMessage("For security reasons, passwords must be changed periodically."), - "password" : MessageLookupByLibrary.simpleMessage("Password"), - "pendent_references" : MessageLookupByLibrary.simpleMessage("Pending references"), - "permission_denied" : MessageLookupByLibrary.simpleMessage("Permission denied"), - "personal_assistance" : MessageLookupByLibrary.simpleMessage("Face-to-face assistance"), - "press_again" : MessageLookupByLibrary.simpleMessage("Press again to exit"), - "print" : MessageLookupByLibrary.simpleMessage("Print"), - "print_balance" : MessageLookupByLibrary.simpleMessage("Print balance"), - "prints" : MessageLookupByLibrary.simpleMessage("Prints"), - "problem_id" : MessageLookupByLibrary.simpleMessage("Brief identification of the problem"), - "program" : MessageLookupByLibrary.simpleMessage("Program"), - "reference_sigarra_help" : MessageLookupByLibrary.simpleMessage("The generated reference data will appear in Sigarra, checking account.\nProfile > Checking Account"), - "reference_success" : MessageLookupByLibrary.simpleMessage("Reference created successfully!"), - "remaining_instructors" : MessageLookupByLibrary.simpleMessage("Remaining Instructors"), - "remove" : MessageLookupByLibrary.simpleMessage("Delete"), - "report_error" : MessageLookupByLibrary.simpleMessage("Report error"), - "restaurant_main_page" : MessageLookupByLibrary.simpleMessage("Do you want to see your favorite restaurants in the main page?"), - "restaurant_period" : m4, - "restaurants" : MessageLookupByLibrary.simpleMessage("Restaurants"), - "room" : MessageLookupByLibrary.simpleMessage("Room"), - "save" : MessageLookupByLibrary.simpleMessage("Save"), - "schedule" : MessageLookupByLibrary.simpleMessage("Schedule"), - "school_calendar" : MessageLookupByLibrary.simpleMessage("School Calendar"), - "search" : MessageLookupByLibrary.simpleMessage("Search"), - "see_more" : MessageLookupByLibrary.simpleMessage("See more"), - "select_all" : MessageLookupByLibrary.simpleMessage("Select All"), - "semester" : MessageLookupByLibrary.simpleMessage("Semester"), - "send" : MessageLookupByLibrary.simpleMessage("Send"), - "sent_error" : MessageLookupByLibrary.simpleMessage("An error occurred in sending"), - "services" : MessageLookupByLibrary.simpleMessage("Services"), - "settings" : MessageLookupByLibrary.simpleMessage("Settings"), - "snackbar" : MessageLookupByLibrary.simpleMessage("Snackbar"), - "some_error" : MessageLookupByLibrary.simpleMessage("Some error!"), - "stcp_stops" : MessageLookupByLibrary.simpleMessage("STCP - Upcoming Trips"), - "student_number" : MessageLookupByLibrary.simpleMessage("Student Number"), - "success" : MessageLookupByLibrary.simpleMessage("Sent with success"), - "successful_open" : MessageLookupByLibrary.simpleMessage("File opened successfully"), - "tele_assistance" : MessageLookupByLibrary.simpleMessage("Telephone assistance"), - "tele_personal_assistance" : MessageLookupByLibrary.simpleMessage("Face-to-face and telephone assistance"), - "telephone" : MessageLookupByLibrary.simpleMessage("Telephone"), - "terms" : MessageLookupByLibrary.simpleMessage("Terms and Conditions"), - "theme" : MessageLookupByLibrary.simpleMessage("Theme"), - "title" : MessageLookupByLibrary.simpleMessage("Title"), - "today" : MessageLookupByLibrary.simpleMessage("today:"), - "tomorrow" : MessageLookupByLibrary.simpleMessage("tomorrow:"), - "try_again" : MessageLookupByLibrary.simpleMessage("Try again"), - "try_different_login" : MessageLookupByLibrary.simpleMessage("Having trouble signing in?"), - "uc_info" : MessageLookupByLibrary.simpleMessage("Open UC page"), - "ucs" : MessageLookupByLibrary.simpleMessage("UCS"), - "unavailable" : MessageLookupByLibrary.simpleMessage("Unavailable"), - "until" : MessageLookupByLibrary.simpleMessage("Until"), - "valid_email" : MessageLookupByLibrary.simpleMessage("Please enter a valid email"), - "view_course_details" : MessageLookupByLibrary.simpleMessage("View course details"), - "widget_prompt" : MessageLookupByLibrary.simpleMessage("Choose a widget to add to your personal area:"), - "wrong_credentials_exception" : MessageLookupByLibrary.simpleMessage("Invalid credentials"), - "year" : MessageLookupByLibrary.simpleMessage("Year"), - "yes" : MessageLookupByLibrary.simpleMessage("Yes") + static _notInlinedMessages(_) => { + "about": MessageLookupByLibrary.simpleMessage("About us"), + "academic_services": MessageLookupByLibrary.simpleMessage( + "Academic services", + ), + "account_card_title": MessageLookupByLibrary.simpleMessage( + "Checking account", + ), + "add": MessageLookupByLibrary.simpleMessage("Add"), + "add_photo": MessageLookupByLibrary.simpleMessage("Add photo"), + "add_quota": MessageLookupByLibrary.simpleMessage("Add quota"), + "add_restaurants": MessageLookupByLibrary.simpleMessage("Add restaurants"), + "add_to_calendar": MessageLookupByLibrary.simpleMessage("Add to calendar"), + "add_widget": MessageLookupByLibrary.simpleMessage("Add widget"), + "agree_terms": MessageLookupByLibrary.simpleMessage( + "By entering you agree with these", + ), + "all": MessageLookupByLibrary.simpleMessage("All"), + "all_feminine": MessageLookupByLibrary.simpleMessage("All"), + "all_widgets_added": MessageLookupByLibrary.simpleMessage( + "All available widgets have already been added to your personal area!", + ), + "apply": MessageLookupByLibrary.simpleMessage("Apply"), + "assessments": MessageLookupByLibrary.simpleMessage("Assessments"), + "at_least_one_college": MessageLookupByLibrary.simpleMessage( + "Select at least one college", + ), + "available_amount": MessageLookupByLibrary.simpleMessage( + "Available amount", + ), + "available_elements": MessageLookupByLibrary.simpleMessage( + "Available elements", + ), + "average": MessageLookupByLibrary.simpleMessage("Average"), + "balance": MessageLookupByLibrary.simpleMessage("Balance"), + "banner_info": MessageLookupByLibrary.simpleMessage( + "We collect anonymous usage data to help improve your experience. You can opt out anytime in the settings.", + ), + "bibliography": MessageLookupByLibrary.simpleMessage("Bibliography"), + "breakfast": MessageLookupByLibrary.simpleMessage("Breakfast"), + "bs_description": MessageLookupByLibrary.simpleMessage( + "Did you find any bugs in the application?\nDo you have any suggestions for the app?\nTell us so we can improve!", + ), + "bug_description": MessageLookupByLibrary.simpleMessage( + "Bug found, how to reproduce it, etc.", + ), + "bug_description_Suggestion": MessageLookupByLibrary.simpleMessage( + "Suggestion", + ), + "bug_description_error": MessageLookupByLibrary.simpleMessage("Error"), + "bug_description_other": MessageLookupByLibrary.simpleMessage("Other"), + "bug_description_unexpected_behaviour": + MessageLookupByLibrary.simpleMessage("Unexpected Behaviour"), + "bug_description_visual_detail": MessageLookupByLibrary.simpleMessage( + "Visual Detail", + ), + "bus_error": MessageLookupByLibrary.simpleMessage( + "Unable to get information", + ), + "bus_information": MessageLookupByLibrary.simpleMessage( + "Select the buses you want information about:", + ), + "buses_personalize": MessageLookupByLibrary.simpleMessage( + "Personalize your buses here", + ), + "buses_text": MessageLookupByLibrary.simpleMessage( + "Favorite buses will be displayed in the favorites \'Bus\' widget. The remaining ones will only be displayed on the page.", + ), + "calendar": MessageLookupByLibrary.simpleMessage("Calendar"), + "cancel": MessageLookupByLibrary.simpleMessage("Cancel"), + "change": MessageLookupByLibrary.simpleMessage("Change"), + "change_password": MessageLookupByLibrary.simpleMessage("Change password"), + "change_prompt": MessageLookupByLibrary.simpleMessage( + "Do you want to change the password?", + ), + "check_internet": MessageLookupByLibrary.simpleMessage( + "Check your internet connection", + ), + "class_registration": MessageLookupByLibrary.simpleMessage( + "Class Registration", + ), + "collect_usage_stats": MessageLookupByLibrary.simpleMessage( + "Collect usage statistics", + ), + "college": MessageLookupByLibrary.simpleMessage("College: "), + "college_select": MessageLookupByLibrary.simpleMessage( + "select your college(s)", + ), + "conclude": MessageLookupByLibrary.simpleMessage("Done"), + "configured_buses": MessageLookupByLibrary.simpleMessage( + "Configured Buses", + ), + "confirm": MessageLookupByLibrary.simpleMessage("Confirm"), + "confirm_logout": MessageLookupByLibrary.simpleMessage( + "Do you really want to log out? Your local data will be deleted and you will have to log in again.", + ), + "consent": MessageLookupByLibrary.simpleMessage( + "I consent to this information being reviewed by NIAEFEUP and may be deleted at my request.", + ), + "contact": MessageLookupByLibrary.simpleMessage("Contact (optional)"), + "copy_center": MessageLookupByLibrary.simpleMessage("Copy center"), + "copy_center_building": MessageLookupByLibrary.simpleMessage( + "Floor -1 of building B | AEFEUP building", + ), + "courseRegent": MessageLookupByLibrary.simpleMessage("Course Regent"), + "course_class": MessageLookupByLibrary.simpleMessage("Classes"), + "course_info": MessageLookupByLibrary.simpleMessage("Info"), + "courses": MessageLookupByLibrary.simpleMessage("Courses"), + "current_state": MessageLookupByLibrary.simpleMessage("Current state: "), + "current_year": MessageLookupByLibrary.simpleMessage( + "Current academic year: ", + ), + "decrement": MessageLookupByLibrary.simpleMessage("Decrement 1,00€"), + "description": MessageLookupByLibrary.simpleMessage("Description"), + "desired_email": MessageLookupByLibrary.simpleMessage( + "Email where you want to be contacted", + ), + "dinner": MessageLookupByLibrary.simpleMessage("Dinner"), + "dish_type": m0, + "dish_types": MessageLookupByLibrary.simpleMessage("Dish Types"), + "dona_bia": MessageLookupByLibrary.simpleMessage( + "D. Beatriz\'s stationery store", + ), + "dona_bia_building": MessageLookupByLibrary.simpleMessage( + "Floor -1 of building B (B-142)", + ), + "download_error": MessageLookupByLibrary.simpleMessage( + "Error downloading the file", + ), + "drag_and_drop": MessageLookupByLibrary.simpleMessage( + "Drag and drop elements", + ), + "ects": MessageLookupByLibrary.simpleMessage("ECTS performed: "), + "edit_off": MessageLookupByLibrary.simpleMessage("Edit"), + "edit_on": MessageLookupByLibrary.simpleMessage("Finish editing"), + "email": MessageLookupByLibrary.simpleMessage("Email"), + "empty_text": MessageLookupByLibrary.simpleMessage( + "Please fill in this field", + ), + "evaluation": MessageLookupByLibrary.simpleMessage("Evaluation"), + "exams": MessageLookupByLibrary.simpleMessage("Exams"), + "exams_filter": MessageLookupByLibrary.simpleMessage( + "Exams Filter Settings", + ), + "exit_confirm": MessageLookupByLibrary.simpleMessage( + "Do you really want to exit?", + ), + "expired_password": MessageLookupByLibrary.simpleMessage( + "Your password has expired", + ), + "fail_to_authenticate": MessageLookupByLibrary.simpleMessage( + "Failed to authenticate", + ), + "failed_login": MessageLookupByLibrary.simpleMessage("Login failed"), + "failed_upload": MessageLookupByLibrary.simpleMessage("Failed to upload"), + "favorite_filter": MessageLookupByLibrary.simpleMessage("Favorites"), + "fee_date": MessageLookupByLibrary.simpleMessage("Deadline"), + "fee_notification": MessageLookupByLibrary.simpleMessage("Fee deadline"), + "feedback_description": MessageLookupByLibrary.simpleMessage( + "Report an issue or suggest an improvement", + ), + "files": MessageLookupByLibrary.simpleMessage("Files"), + "first_year_registration": MessageLookupByLibrary.simpleMessage( + "Year of first registration: ", + ), + "floor": MessageLookupByLibrary.simpleMessage("Floor"), + "floors": MessageLookupByLibrary.simpleMessage("Floors"), + "forgot_password": MessageLookupByLibrary.simpleMessage("Forgot password?"), + "frequency": MessageLookupByLibrary.simpleMessage("Eligibility for exams"), + "generate_reference": MessageLookupByLibrary.simpleMessage( + "Generate reference", + ), + "geral_registration": MessageLookupByLibrary.simpleMessage( + "General Registration", + ), + "goi": MessageLookupByLibrary.simpleMessage( + "Orientation and Integration Office", + ), + "improvement_registration": MessageLookupByLibrary.simpleMessage( + "Enrollment for Improvement", + ), + "increment": MessageLookupByLibrary.simpleMessage("Increment 1,00€"), + "instructor": MessageLookupByLibrary.simpleMessage("Instructor"), + "instructors": MessageLookupByLibrary.simpleMessage("Instructors"), + "internet_status_exception": MessageLookupByLibrary.simpleMessage( + "Check your internet connection", + ), + "invalid_credentials": MessageLookupByLibrary.simpleMessage( + "Invalid credentials", + ), + "keep_login": MessageLookupByLibrary.simpleMessage("Remember me"), + "language": MessageLookupByLibrary.simpleMessage("Language"), + "last_refresh_time": m1, + "last_timestamp": m2, + "leave_feedback": MessageLookupByLibrary.simpleMessage("Leave feedback"), + "lectures": MessageLookupByLibrary.simpleMessage("Lectures"), + "library": MessageLookupByLibrary.simpleMessage("Library"), + "library_occupation": MessageLookupByLibrary.simpleMessage( + "Library Occupation", + ), + "load_error": MessageLookupByLibrary.simpleMessage( + "Error loading the information", + ), + "loading_terms": MessageLookupByLibrary.simpleMessage( + "Loading Terms and Conditions...", + ), + "location": MessageLookupByLibrary.simpleMessage("Location"), + "login": MessageLookupByLibrary.simpleMessage("Login"), + "login_with_credentials": MessageLookupByLibrary.simpleMessage( + "Login with credentials", + ), + "logout": MessageLookupByLibrary.simpleMessage("Log out"), + "lunch": MessageLookupByLibrary.simpleMessage("Lunch"), + "menus": MessageLookupByLibrary.simpleMessage("Menus"), + "min_value_reference": MessageLookupByLibrary.simpleMessage( + "Minimum value: 1,00 €", + ), + "multimedia_center": MessageLookupByLibrary.simpleMessage( + "Multimedia center", + ), + "nav_title": m3, + "news": MessageLookupByLibrary.simpleMessage("News"), + "nextclasses": MessageLookupByLibrary.simpleMessage( + "Here are your classes for ", + ), + "no": MessageLookupByLibrary.simpleMessage("No"), + "noExamsScheduled": MessageLookupByLibrary.simpleMessage( + "No exams scheduled", + ), + "noInstructors": MessageLookupByLibrary.simpleMessage( + "No instructors assigned", + ), + "no_app": MessageLookupByLibrary.simpleMessage( + "No app found to open the file", + ), + "no_bus": MessageLookupByLibrary.simpleMessage("Don\'t miss any bus!"), + "no_bus_stops": MessageLookupByLibrary.simpleMessage("No configured stops"), + "no_class": MessageLookupByLibrary.simpleMessage( + "There are no classes to display", + ), + "no_classes": MessageLookupByLibrary.simpleMessage("No classes to present"), + "no_classes_on": MessageLookupByLibrary.simpleMessage( + "You don\'t have classes on", + ), + "no_classes_on_weekend": MessageLookupByLibrary.simpleMessage( + "You don\'t have classes on", + ), + "no_classes_this_week": MessageLookupByLibrary.simpleMessage( + "You have no classes this week", + ), + "no_classes_today": MessageLookupByLibrary.simpleMessage( + "You don\'t have any more classes today.", + ), + "no_college": MessageLookupByLibrary.simpleMessage("no college"), + "no_course_units": MessageLookupByLibrary.simpleMessage( + "No course units in the selected period", + ), + "no_courses": MessageLookupByLibrary.simpleMessage( + "No courses we\'re found", + ), + "no_courses_description": MessageLookupByLibrary.simpleMessage( + "Try to refresh the page", + ), + "no_data": MessageLookupByLibrary.simpleMessage( + "There is no data to show at this time", + ), + "no_date": MessageLookupByLibrary.simpleMessage("No date"), + "no_events": MessageLookupByLibrary.simpleMessage("No events found"), + "no_exams": MessageLookupByLibrary.simpleMessage( + "You have no exams scheduled\n", + ), + "no_exams_label": MessageLookupByLibrary.simpleMessage( + "Looks like you are on vacation!", + ), + "no_favorite_restaurants": MessageLookupByLibrary.simpleMessage( + "No favorite restaurants open", + ), + "no_files": MessageLookupByLibrary.simpleMessage( + "There\'s no files attached", + ), + "no_files_found": MessageLookupByLibrary.simpleMessage("No files found"), + "no_files_label": MessageLookupByLibrary.simpleMessage( + "You have nothing to see!", + ), + "no_info": MessageLookupByLibrary.simpleMessage( + "There is no information to display", + ), + "no_internet": MessageLookupByLibrary.simpleMessage( + "It looks like you\'re offline", + ), + "no_library_info": MessageLookupByLibrary.simpleMessage( + "No library occupation information available", + ), + "no_link": MessageLookupByLibrary.simpleMessage( + "We couldn\'t open the link", + ), + "no_menu_info": MessageLookupByLibrary.simpleMessage( + "There is no information available about meals", + ), + "no_menus": MessageLookupByLibrary.simpleMessage( + "There are no meals available", + ), + "no_name_course": MessageLookupByLibrary.simpleMessage("Unnamed course"), + "no_places_info": MessageLookupByLibrary.simpleMessage( + "There is no information available about places", + ), + "no_print_info": MessageLookupByLibrary.simpleMessage( + "No print balance information", + ), + "no_references": MessageLookupByLibrary.simpleMessage( + "There are no references to pay", + ), + "no_results": MessageLookupByLibrary.simpleMessage("No match"), + "no_selected_courses": MessageLookupByLibrary.simpleMessage( + "There are no course units to display", + ), + "no_selected_exams": MessageLookupByLibrary.simpleMessage( + "There are no exams to present", + ), + "no_trips": MessageLookupByLibrary.simpleMessage( + "No trips found at the moment", + ), + "notifications": MessageLookupByLibrary.simpleMessage("Notifications"), + "now": MessageLookupByLibrary.simpleMessage("Now"), + "occurrence_type": MessageLookupByLibrary.simpleMessage( + "Type of occurrence", + ), + "of_month": MessageLookupByLibrary.simpleMessage("of"), + "open_error": MessageLookupByLibrary.simpleMessage( + "Error opening the file", + ), + "other_links": MessageLookupByLibrary.simpleMessage("Other links"), + "pass_change_request": MessageLookupByLibrary.simpleMessage( + "For security reasons, passwords must be changed periodically.", + ), + "password": MessageLookupByLibrary.simpleMessage("Password"), + "pendent_references": MessageLookupByLibrary.simpleMessage( + "Pending references", + ), + "permission_denied": MessageLookupByLibrary.simpleMessage( + "Permission denied", + ), + "personal_assistance": MessageLookupByLibrary.simpleMessage( + "Face-to-face assistance", + ), + "press_again": MessageLookupByLibrary.simpleMessage("Press again to exit"), + "print": MessageLookupByLibrary.simpleMessage("Print"), + "print_balance": MessageLookupByLibrary.simpleMessage("Print balance"), + "prints": MessageLookupByLibrary.simpleMessage("Prints"), + "problem_id": MessageLookupByLibrary.simpleMessage( + "Brief identification of the problem", + ), + "program": MessageLookupByLibrary.simpleMessage("Program"), + "reference_sigarra_help": MessageLookupByLibrary.simpleMessage( + "The generated reference data will appear in Sigarra, checking account.\nProfile > Checking Account", + ), + "reference_success": MessageLookupByLibrary.simpleMessage( + "Reference created successfully!", + ), + "remaining_instructors": MessageLookupByLibrary.simpleMessage( + "Remaining Instructors", + ), + "remove": MessageLookupByLibrary.simpleMessage("Delete"), + "report_error": MessageLookupByLibrary.simpleMessage("Report error"), + "restaurant_main_page": MessageLookupByLibrary.simpleMessage( + "Do you want to see your favorite restaurants in the main page?", + ), + "restaurant_period": m4, + "restaurants": MessageLookupByLibrary.simpleMessage("Restaurants"), + "room": MessageLookupByLibrary.simpleMessage("Room"), + "save": MessageLookupByLibrary.simpleMessage("Save"), + "schedule": MessageLookupByLibrary.simpleMessage("Schedule"), + "school_calendar": MessageLookupByLibrary.simpleMessage("School Calendar"), + "search": MessageLookupByLibrary.simpleMessage("Search"), + "see_more": MessageLookupByLibrary.simpleMessage("See more"), + "select_all": MessageLookupByLibrary.simpleMessage("Select All"), + "semester": MessageLookupByLibrary.simpleMessage("Semester"), + "send": MessageLookupByLibrary.simpleMessage("Send"), + "sent_error": MessageLookupByLibrary.simpleMessage( + "An error occurred in sending", + ), + "services": MessageLookupByLibrary.simpleMessage("Services"), + "settings": MessageLookupByLibrary.simpleMessage("Settings"), + "snackbar": MessageLookupByLibrary.simpleMessage("Snackbar"), + "some_error": MessageLookupByLibrary.simpleMessage("Some error!"), + "stcp_stops": MessageLookupByLibrary.simpleMessage("STCP - Upcoming Trips"), + "student_number": MessageLookupByLibrary.simpleMessage("Student Number"), + "success": MessageLookupByLibrary.simpleMessage("Sent with success"), + "successful_open": MessageLookupByLibrary.simpleMessage( + "File opened successfully", + ), + "tele_assistance": MessageLookupByLibrary.simpleMessage( + "Telephone assistance", + ), + "tele_personal_assistance": MessageLookupByLibrary.simpleMessage( + "Face-to-face and telephone assistance", + ), + "telephone": MessageLookupByLibrary.simpleMessage("Telephone"), + "terms": MessageLookupByLibrary.simpleMessage("Terms and Conditions"), + "theme": MessageLookupByLibrary.simpleMessage("Theme"), + "title": MessageLookupByLibrary.simpleMessage("Title"), + "today": MessageLookupByLibrary.simpleMessage("today:"), + "tomorrow": MessageLookupByLibrary.simpleMessage("tomorrow:"), + "try_again": MessageLookupByLibrary.simpleMessage("Try again"), + "try_different_login": MessageLookupByLibrary.simpleMessage( + "Having trouble signing in?", + ), + "uc_info": MessageLookupByLibrary.simpleMessage("Open UC page"), + "ucs": MessageLookupByLibrary.simpleMessage("UCS"), + "unavailable": MessageLookupByLibrary.simpleMessage("Unavailable"), + "until": MessageLookupByLibrary.simpleMessage("Until"), + "valid_email": MessageLookupByLibrary.simpleMessage( + "Please enter a valid email", + ), + "view_course_details": MessageLookupByLibrary.simpleMessage( + "View course details", + ), + "widget_prompt": MessageLookupByLibrary.simpleMessage( + "Choose a widget to add to your personal area:", + ), + "wrong_credentials_exception": MessageLookupByLibrary.simpleMessage( + "Invalid credentials", + ), + "year": MessageLookupByLibrary.simpleMessage("Year"), + "yes": MessageLookupByLibrary.simpleMessage("Yes"), }; } diff --git a/packages/uni_app/lib/generated/intl/messages_pt_PT.dart b/packages/uni_app/lib/generated/intl/messages_pt_PT.dart index cf12cb4f8..d28f31fcd 100644 --- a/packages/uni_app/lib/generated/intl/messages_pt_PT.dart +++ b/packages/uni_app/lib/generated/intl/messages_pt_PT.dart @@ -19,240 +19,469 @@ typedef String MessageIfAbsent(String messageStr, List args); class MessageLookup extends MessageLookupByLibrary { String get localeName => 'pt_PT'; - static m0(type) => "${Intl.select(type, {'all_dishes': 'Todos os pratos', 'meat_dishes': 'Pratos de Carne', 'fish_dishes': 'Pratos de Peixe', 'vegetarian_dishes': 'Pratos Vegetarianos', 'soups': 'Sopas', 'salads': 'Saladas', 'diet_dishes': 'Pratos de Dieta', 'dishes_of_the_day': 'Pratos do Dia', 'closed': 'Encerrado', 'other': 'Outros', })}"; + static m0(type) => + "${Intl.select(type, {'all_dishes': 'Todos os pratos', 'meat_dishes': 'Pratos de Carne', 'fish_dishes': 'Pratos de Peixe', 'vegetarian_dishes': 'Pratos Vegetarianos', 'soups': 'Sopas', 'salads': 'Saladas', 'diet_dishes': 'Pratos de Dieta', 'dishes_of_the_day': 'Pratos do Dia', 'closed': 'Encerrado', 'other': 'Outros'})}"; static m1(time) => "última atualização às ${time}"; - static m2(time) => "${Intl.plural(time, zero: 'Atualizado há ${time} minutos', one: 'Atualizado há ${time} minuto', other: 'Atualizado há ${time} minutos')}"; + static m2(time) => + "${Intl.plural(time, zero: 'Atualizado há ${time} minutos', one: 'Atualizado há ${time} minuto', other: 'Atualizado há ${time} minutos')}"; - static m3(title) => "${Intl.select(title, {'horario': 'Horário', 'exames': 'Exames', 'area': 'Área Pessoal', 'cadeiras': 'Cadeiras', 'autocarros': 'Autocarros', 'locais': 'Locais', 'restaurantes': 'Restaurantes', 'calendario': 'Calendário', 'biblioteca': 'Biblioteca', 'percurso_academico': 'Percurso Académico', 'mapa': 'Mapa', 'faculdade': 'Faculdade', 'other': 'Outros', })}"; + static m3(title) => + "${Intl.select(title, {'horario': 'Horário', 'exames': 'Exames', 'area': 'Área Pessoal', 'cadeiras': 'Cadeiras', 'autocarros': 'Autocarros', 'locais': 'Locais', 'restaurantes': 'Restaurantes', 'calendario': 'Calendário', 'biblioteca': 'Biblioteca', 'percurso_academico': 'Percurso Académico', 'mapa': 'Mapa', 'faculdade': 'Faculdade', 'other': 'Outros'})}"; - static m4(period) => "${Intl.select(period, {'lunch': 'Almoço', 'dinner': 'Jantar', 'other': 'Other', })}"; + static m4(period) => + "${Intl.select(period, {'lunch': 'Almoço', 'dinner': 'Jantar', 'other': 'Other'})}"; final messages = _notInlinedMessages(_notInlinedMessages); - static _notInlinedMessages(_) => { - "about" : MessageLookupByLibrary.simpleMessage("Sobre nós"), - "academic_services" : MessageLookupByLibrary.simpleMessage("Serviços académicos"), - "account_card_title" : MessageLookupByLibrary.simpleMessage("Conta Corrente"), - "add" : MessageLookupByLibrary.simpleMessage("Adicionar"), - "add_photo" : MessageLookupByLibrary.simpleMessage("Adicionar foto"), - "add_quota" : MessageLookupByLibrary.simpleMessage("Adicionar quota"), - "add_restaurants" : MessageLookupByLibrary.simpleMessage("Adicione restaurantes"), - "add_to_calendar" : MessageLookupByLibrary.simpleMessage("Adicionar ao calendário"), - "add_widget" : MessageLookupByLibrary.simpleMessage("Adicionar widget"), - "agree_terms" : MessageLookupByLibrary.simpleMessage("Ao entrares confirmas que concordas com estes"), - "all" : MessageLookupByLibrary.simpleMessage("Todos"), - "all_feminine" : MessageLookupByLibrary.simpleMessage("Todas"), - "all_widgets_added" : MessageLookupByLibrary.simpleMessage("Todos os widgets disponíveis já foram adicionados à tua área pessoal!"), - "apply" : MessageLookupByLibrary.simpleMessage("Aplicar"), - "assessments" : MessageLookupByLibrary.simpleMessage("Avaliações"), - "at_least_one_college" : MessageLookupByLibrary.simpleMessage("Seleciona pelo menos uma faculdade"), - "available_amount" : MessageLookupByLibrary.simpleMessage("Valor disponível"), - "available_elements" : MessageLookupByLibrary.simpleMessage("Elementos disponíveis"), - "average" : MessageLookupByLibrary.simpleMessage("Média"), - "balance" : MessageLookupByLibrary.simpleMessage("Saldo"), - "banner_info" : MessageLookupByLibrary.simpleMessage("Recolhemos dados anónimos de utilização para ajudar a melhorar a sua experiência. Pode desativar esta opção a qualquer momento nas definições"), - "bibliography" : MessageLookupByLibrary.simpleMessage("Bibliografia"), - "breakfast" : MessageLookupByLibrary.simpleMessage("Pequeno Almoço"), - "bs_description" : MessageLookupByLibrary.simpleMessage("Encontraste algum bug na aplicação?\nTens alguma sugestão para a app?\nConta-nos para que possamos melhorar!"), - "bug_description" : MessageLookupByLibrary.simpleMessage("Bug encontrado, como o reproduzir, etc"), - "bug_description_Suggestion" : MessageLookupByLibrary.simpleMessage("Sugestão"), - "bug_description_error" : MessageLookupByLibrary.simpleMessage("Erro"), - "bug_description_other" : MessageLookupByLibrary.simpleMessage("Outro"), - "bug_description_unexpected_behaviour" : MessageLookupByLibrary.simpleMessage("Comportamento Inesperado"), - "bug_description_visual_detail" : MessageLookupByLibrary.simpleMessage("Detalhe Visual"), - "bus_error" : MessageLookupByLibrary.simpleMessage("Não foi possível obter informação"), - "bus_information" : MessageLookupByLibrary.simpleMessage("Seleciona os autocarros dos quais queres informação:"), - "buses_personalize" : MessageLookupByLibrary.simpleMessage("Configura aqui os teus autocarros"), - "buses_text" : MessageLookupByLibrary.simpleMessage("Os autocarros favoritos serão apresentados no widget \'Autocarros\' dos favoritos. Os restantes serão apresentados apenas na página."), - "calendar" : MessageLookupByLibrary.simpleMessage("Calendário"), - "cancel" : MessageLookupByLibrary.simpleMessage("Cancelar"), - "change" : MessageLookupByLibrary.simpleMessage("Alterar"), - "change_password" : MessageLookupByLibrary.simpleMessage("Alterar palavra-passe"), - "change_prompt" : MessageLookupByLibrary.simpleMessage("Deseja alterar a palavra-passe?"), - "check_internet" : MessageLookupByLibrary.simpleMessage("Verifica a tua ligação à internet"), - "class_registration" : MessageLookupByLibrary.simpleMessage("Inscrição de Turmas"), - "collect_usage_stats" : MessageLookupByLibrary.simpleMessage("Partilhar estatísticas de uso"), - "college" : MessageLookupByLibrary.simpleMessage("Faculdade: "), - "college_select" : MessageLookupByLibrary.simpleMessage("seleciona a(s) tua(s) faculdade(s)"), - "conclude" : MessageLookupByLibrary.simpleMessage("Concluído"), - "configured_buses" : MessageLookupByLibrary.simpleMessage("Autocarros Configurados"), - "confirm" : MessageLookupByLibrary.simpleMessage("Confirmar"), - "confirm_logout" : MessageLookupByLibrary.simpleMessage("Tens a certeza de que queres terminar sessão? Os teus dados locais serão apagados e terás de iniciar sessão novamente."), - "consent" : MessageLookupByLibrary.simpleMessage("Consinto que esta informação seja revista pelo NIAEFEUP, podendo ser eliminada a meu pedido."), - "contact" : MessageLookupByLibrary.simpleMessage("Contacto (opcional)"), - "copy_center" : MessageLookupByLibrary.simpleMessage("Centro de cópias"), - "copy_center_building" : MessageLookupByLibrary.simpleMessage("Piso -1 do edifício B | Edifício da AEFEUP"), - "courseRegent" : MessageLookupByLibrary.simpleMessage("Regente da Cadeira"), - "course_class" : MessageLookupByLibrary.simpleMessage("Turmas"), - "course_info" : MessageLookupByLibrary.simpleMessage("Ficha"), - "courses" : MessageLookupByLibrary.simpleMessage("Cursos"), - "current_state" : MessageLookupByLibrary.simpleMessage("Estado atual: "), - "current_year" : MessageLookupByLibrary.simpleMessage("Ano curricular atual: "), - "decrement" : MessageLookupByLibrary.simpleMessage("Decrementar 1,00€"), - "description" : MessageLookupByLibrary.simpleMessage("Descrição"), - "desired_email" : MessageLookupByLibrary.simpleMessage("Email em que desejas ser contactado"), - "dinner" : MessageLookupByLibrary.simpleMessage("Jantar"), - "dish_type" : m0, - "dish_types" : MessageLookupByLibrary.simpleMessage("Tipos de Prato"), - "dona_bia" : MessageLookupByLibrary.simpleMessage("Papelaria D. Beatriz"), - "dona_bia_building" : MessageLookupByLibrary.simpleMessage("Piso -1 do edifício B (B-142)"), - "download_error" : MessageLookupByLibrary.simpleMessage("Erro ao descarregar o ficheiro"), - "drag_and_drop" : MessageLookupByLibrary.simpleMessage("Arrasta e solta os elementos"), - "ects" : MessageLookupByLibrary.simpleMessage("ECTS realizados: "), - "edit_off" : MessageLookupByLibrary.simpleMessage("Editar"), - "edit_on" : MessageLookupByLibrary.simpleMessage("Concluir edição"), - "email" : MessageLookupByLibrary.simpleMessage("Email"), - "empty_text" : MessageLookupByLibrary.simpleMessage("Por favor preenche este campo"), - "evaluation" : MessageLookupByLibrary.simpleMessage("Avaliação"), - "exams" : MessageLookupByLibrary.simpleMessage("Exames"), - "exams_filter" : MessageLookupByLibrary.simpleMessage("Definições Filtro de Exames"), - "exit_confirm" : MessageLookupByLibrary.simpleMessage("Tem a certeza de que pretende sair?"), - "expired_password" : MessageLookupByLibrary.simpleMessage("A tua palavra-passe expirou"), - "fail_to_authenticate" : MessageLookupByLibrary.simpleMessage("Falha ao autenticar"), - "failed_login" : MessageLookupByLibrary.simpleMessage("O login falhou"), - "failed_upload" : MessageLookupByLibrary.simpleMessage("Falha de carregamento"), - "favorite_filter" : MessageLookupByLibrary.simpleMessage("Favoritos"), - "fee_date" : MessageLookupByLibrary.simpleMessage("Data limite"), - "fee_notification" : MessageLookupByLibrary.simpleMessage("Data limite de propina"), - "feedback_description" : MessageLookupByLibrary.simpleMessage("Reporta um problema ou sugere uma melhoria"), - "files" : MessageLookupByLibrary.simpleMessage("Ficheiros"), - "first_year_registration" : MessageLookupByLibrary.simpleMessage("Ano da primeira inscrição: "), - "floor" : MessageLookupByLibrary.simpleMessage("Piso"), - "floors" : MessageLookupByLibrary.simpleMessage("Pisos"), - "forgot_password" : MessageLookupByLibrary.simpleMessage("Esqueceu a palavra-passe?"), - "frequency" : MessageLookupByLibrary.simpleMessage("Obtenção de Frequência"), - "generate_reference" : MessageLookupByLibrary.simpleMessage("Gerar referência"), - "geral_registration" : MessageLookupByLibrary.simpleMessage("Inscrição Geral"), - "goi" : MessageLookupByLibrary.simpleMessage("Gabinete de Orientação e Integração"), - "improvement_registration" : MessageLookupByLibrary.simpleMessage("Inscrição para Melhoria"), - "increment" : MessageLookupByLibrary.simpleMessage("Incrementar 1,00€"), - "instructor" : MessageLookupByLibrary.simpleMessage("Docente"), - "instructors" : MessageLookupByLibrary.simpleMessage("Docentes"), - "internet_status_exception" : MessageLookupByLibrary.simpleMessage("Verifique sua conexão com a internet"), - "invalid_credentials" : MessageLookupByLibrary.simpleMessage("Credenciais inválidas"), - "keep_login" : MessageLookupByLibrary.simpleMessage("Lembre-se de mim"), - "language" : MessageLookupByLibrary.simpleMessage("Idioma"), - "last_refresh_time" : m1, - "last_timestamp" : m2, - "leave_feedback" : MessageLookupByLibrary.simpleMessage("Feedback"), - "lectures" : MessageLookupByLibrary.simpleMessage("Aulas"), - "library" : MessageLookupByLibrary.simpleMessage("Biblioteca"), - "library_occupation" : MessageLookupByLibrary.simpleMessage("Ocupação da Biblioteca"), - "load_error" : MessageLookupByLibrary.simpleMessage("Erro ao carregar a informação"), - "loading_terms" : MessageLookupByLibrary.simpleMessage("Carregando os Termos e Condições..."), - "location" : MessageLookupByLibrary.simpleMessage("Localização"), - "login" : MessageLookupByLibrary.simpleMessage("Entrar"), - "login_with_credentials" : MessageLookupByLibrary.simpleMessage("Entrar com credenciais"), - "logout" : MessageLookupByLibrary.simpleMessage("Terminar sessão"), - "lunch" : MessageLookupByLibrary.simpleMessage("Almoço"), - "menus" : MessageLookupByLibrary.simpleMessage("Ementas"), - "min_value_reference" : MessageLookupByLibrary.simpleMessage("Valor mínimo: 1,00 €"), - "multimedia_center" : MessageLookupByLibrary.simpleMessage("Centro de multimédia"), - "nav_title" : m3, - "news" : MessageLookupByLibrary.simpleMessage("Notícias"), - "nextclasses" : MessageLookupByLibrary.simpleMessage("Aqui estão as tuas aulas para "), - "no" : MessageLookupByLibrary.simpleMessage("Não"), - "noExamsScheduled" : MessageLookupByLibrary.simpleMessage("Não há exames agendados"), - "noInstructors" : MessageLookupByLibrary.simpleMessage("Não há docentes atribuídos"), - "no_app" : MessageLookupByLibrary.simpleMessage("Nenhuma aplicação encontrada para abrir o ficheiro"), - "no_bus" : MessageLookupByLibrary.simpleMessage("Não percas nenhum autocarro!"), - "no_bus_stops" : MessageLookupByLibrary.simpleMessage("Não existe nenhuma paragem configurada"), - "no_class" : MessageLookupByLibrary.simpleMessage("Não existem turmas para apresentar"), - "no_classes" : MessageLookupByLibrary.simpleMessage("Não existem aulas para apresentar"), - "no_classes_on" : MessageLookupByLibrary.simpleMessage("Não possui aulas à"), - "no_classes_on_weekend" : MessageLookupByLibrary.simpleMessage("Não possui aulas ao"), - "no_classes_this_week" : MessageLookupByLibrary.simpleMessage("Não tens aulas esta semana"), - "no_classes_today" : MessageLookupByLibrary.simpleMessage("Não tens mais aulas hoje."), - "no_college" : MessageLookupByLibrary.simpleMessage("sem faculdade"), - "no_course_units" : MessageLookupByLibrary.simpleMessage("Sem cadeiras no período selecionado"), - "no_courses" : MessageLookupByLibrary.simpleMessage("Não foram encontrados cursos"), - "no_courses_description" : MessageLookupByLibrary.simpleMessage("Tenta refrescar a página"), - "no_data" : MessageLookupByLibrary.simpleMessage("Não há dados a mostrar neste momento"), - "no_date" : MessageLookupByLibrary.simpleMessage("Sem data"), - "no_events" : MessageLookupByLibrary.simpleMessage("Nenhum evento encontrado"), - "no_exams" : MessageLookupByLibrary.simpleMessage("Não possui exames marcados"), - "no_exams_label" : MessageLookupByLibrary.simpleMessage("Parece que estás de férias!"), - "no_favorite_restaurants" : MessageLookupByLibrary.simpleMessage("Sem restaurantes favoritos abertos"), - "no_files" : MessageLookupByLibrary.simpleMessage("Não possui ficheiros anexados"), - "no_files_found" : MessageLookupByLibrary.simpleMessage("Nenhum ficheiro encontrado"), - "no_files_label" : MessageLookupByLibrary.simpleMessage("Não tens nada para ver!"), - "no_info" : MessageLookupByLibrary.simpleMessage("Não existem informações para apresentar"), - "no_internet" : MessageLookupByLibrary.simpleMessage("Parece que estás offline"), - "no_library_info" : MessageLookupByLibrary.simpleMessage("Sem informação de ocupação"), - "no_link" : MessageLookupByLibrary.simpleMessage("Não conseguimos abrir o link"), - "no_menu_info" : MessageLookupByLibrary.simpleMessage("Não há informação disponível sobre refeições"), - "no_menus" : MessageLookupByLibrary.simpleMessage("Não há refeições disponíveis"), - "no_name_course" : MessageLookupByLibrary.simpleMessage("Curso sem nome"), - "no_places_info" : MessageLookupByLibrary.simpleMessage("Não há informação disponível sobre locais"), - "no_print_info" : MessageLookupByLibrary.simpleMessage("Sem informação de saldo"), - "no_references" : MessageLookupByLibrary.simpleMessage("Não existem referências a pagar"), - "no_results" : MessageLookupByLibrary.simpleMessage("Sem resultados"), - "no_selected_courses" : MessageLookupByLibrary.simpleMessage("Não existem cadeiras para apresentar"), - "no_selected_exams" : MessageLookupByLibrary.simpleMessage("Não existem exames para apresentar"), - "no_trips" : MessageLookupByLibrary.simpleMessage("Não há viagens planeadas de momento"), - "notifications" : MessageLookupByLibrary.simpleMessage("Notificações"), - "now" : MessageLookupByLibrary.simpleMessage("Agora"), - "occurrence_type" : MessageLookupByLibrary.simpleMessage("Tipo de ocorrência"), - "of_month" : MessageLookupByLibrary.simpleMessage("de"), - "open_error" : MessageLookupByLibrary.simpleMessage("Erro ao abrir o ficheiro"), - "other_links" : MessageLookupByLibrary.simpleMessage("Outros links"), - "pass_change_request" : MessageLookupByLibrary.simpleMessage("Por razões de segurança, as palavras-passe têm de ser alteradas periodicamente."), - "password" : MessageLookupByLibrary.simpleMessage("Palavra-passe"), - "pendent_references" : MessageLookupByLibrary.simpleMessage("Referências pendentes"), - "permission_denied" : MessageLookupByLibrary.simpleMessage("Sem permissão"), - "personal_assistance" : MessageLookupByLibrary.simpleMessage("Atendimento presencial"), - "press_again" : MessageLookupByLibrary.simpleMessage("Pressione novamente para sair"), - "print" : MessageLookupByLibrary.simpleMessage("Impressão"), - "print_balance" : MessageLookupByLibrary.simpleMessage("Saldo impressões"), - "prints" : MessageLookupByLibrary.simpleMessage("Impressões"), - "problem_id" : MessageLookupByLibrary.simpleMessage("Breve identificação do problema"), - "program" : MessageLookupByLibrary.simpleMessage("Programa"), - "reference_sigarra_help" : MessageLookupByLibrary.simpleMessage("Os dados da referência gerada aparecerão no Sigarra, conta corrente. Perfil > Conta Corrente"), - "reference_success" : MessageLookupByLibrary.simpleMessage("Referência criada com sucesso!"), - "remaining_instructors" : MessageLookupByLibrary.simpleMessage("Docentes Restantes"), - "remove" : MessageLookupByLibrary.simpleMessage("Remover"), - "report_error" : MessageLookupByLibrary.simpleMessage("Reportar erro"), - "restaurant_main_page" : MessageLookupByLibrary.simpleMessage("Queres ver os teus restaurantes favoritos na página principal?"), - "restaurant_period" : m4, - "restaurants" : MessageLookupByLibrary.simpleMessage("Restaurantes"), - "room" : MessageLookupByLibrary.simpleMessage("Sala"), - "save" : MessageLookupByLibrary.simpleMessage("Guardar"), - "schedule" : MessageLookupByLibrary.simpleMessage("Aulas"), - "school_calendar" : MessageLookupByLibrary.simpleMessage("Calendário Escolar"), - "search" : MessageLookupByLibrary.simpleMessage("Pesquisar"), - "see_more" : MessageLookupByLibrary.simpleMessage("Ver mais"), - "select_all" : MessageLookupByLibrary.simpleMessage("Selecionar Todos"), - "semester" : MessageLookupByLibrary.simpleMessage("Semestre"), - "send" : MessageLookupByLibrary.simpleMessage("Enviar"), - "sent_error" : MessageLookupByLibrary.simpleMessage("Ocorreu um erro no envio"), - "services" : MessageLookupByLibrary.simpleMessage("Serviços"), - "settings" : MessageLookupByLibrary.simpleMessage("Definições"), - "snackbar" : MessageLookupByLibrary.simpleMessage("Snackbar"), - "some_error" : MessageLookupByLibrary.simpleMessage("Algum erro!"), - "stcp_stops" : MessageLookupByLibrary.simpleMessage("STCP - Próximas Viagens"), - "student_number" : MessageLookupByLibrary.simpleMessage("Número de Estudante"), - "success" : MessageLookupByLibrary.simpleMessage("Enviado com sucesso"), - "successful_open" : MessageLookupByLibrary.simpleMessage("Ficheiro aberto com sucesso"), - "tele_assistance" : MessageLookupByLibrary.simpleMessage("Atendimento telefónico"), - "tele_personal_assistance" : MessageLookupByLibrary.simpleMessage("Atendimento presencial e telefónico"), - "telephone" : MessageLookupByLibrary.simpleMessage("Telefone"), - "terms" : MessageLookupByLibrary.simpleMessage("Termos e Condições"), - "theme" : MessageLookupByLibrary.simpleMessage("Tema"), - "title" : MessageLookupByLibrary.simpleMessage("Título"), - "today" : MessageLookupByLibrary.simpleMessage("hoje:"), - "tomorrow" : MessageLookupByLibrary.simpleMessage("amanhã:"), - "try_again" : MessageLookupByLibrary.simpleMessage("Tentar de novo"), - "try_different_login" : MessageLookupByLibrary.simpleMessage("Problemas ao iniciar sessão?"), - "uc_info" : MessageLookupByLibrary.simpleMessage("Abrir página da UC"), - "ucs" : MessageLookupByLibrary.simpleMessage("UCS"), - "unavailable" : MessageLookupByLibrary.simpleMessage("Indisponível"), - "until" : MessageLookupByLibrary.simpleMessage("Até"), - "valid_email" : MessageLookupByLibrary.simpleMessage("Por favor insere um email válido"), - "view_course_details" : MessageLookupByLibrary.simpleMessage("Ver detalhes da Unidade Curricular"), - "widget_prompt" : MessageLookupByLibrary.simpleMessage("Escolhe um widget para adicionares à tua área pessoal:"), - "wrong_credentials_exception" : MessageLookupByLibrary.simpleMessage("Credenciais inválidas"), - "year" : MessageLookupByLibrary.simpleMessage("Ano"), - "yes" : MessageLookupByLibrary.simpleMessage("Sim") + static _notInlinedMessages(_) => { + "about": MessageLookupByLibrary.simpleMessage("Sobre nós"), + "academic_services": MessageLookupByLibrary.simpleMessage( + "Serviços académicos", + ), + "account_card_title": MessageLookupByLibrary.simpleMessage( + "Conta Corrente", + ), + "add": MessageLookupByLibrary.simpleMessage("Adicionar"), + "add_photo": MessageLookupByLibrary.simpleMessage("Adicionar foto"), + "add_quota": MessageLookupByLibrary.simpleMessage("Adicionar quota"), + "add_restaurants": MessageLookupByLibrary.simpleMessage( + "Adicione restaurantes", + ), + "add_to_calendar": MessageLookupByLibrary.simpleMessage( + "Adicionar ao calendário", + ), + "add_widget": MessageLookupByLibrary.simpleMessage("Adicionar widget"), + "agree_terms": MessageLookupByLibrary.simpleMessage( + "Ao entrares confirmas que concordas com estes", + ), + "all": MessageLookupByLibrary.simpleMessage("Todos"), + "all_feminine": MessageLookupByLibrary.simpleMessage("Todas"), + "all_widgets_added": MessageLookupByLibrary.simpleMessage( + "Todos os widgets disponíveis já foram adicionados à tua área pessoal!", + ), + "apply": MessageLookupByLibrary.simpleMessage("Aplicar"), + "assessments": MessageLookupByLibrary.simpleMessage("Avaliações"), + "at_least_one_college": MessageLookupByLibrary.simpleMessage( + "Seleciona pelo menos uma faculdade", + ), + "available_amount": MessageLookupByLibrary.simpleMessage( + "Valor disponível", + ), + "available_elements": MessageLookupByLibrary.simpleMessage( + "Elementos disponíveis", + ), + "average": MessageLookupByLibrary.simpleMessage("Média"), + "balance": MessageLookupByLibrary.simpleMessage("Saldo"), + "banner_info": MessageLookupByLibrary.simpleMessage( + "Recolhemos dados anónimos de utilização para ajudar a melhorar a sua experiência. Pode desativar esta opção a qualquer momento nas definições", + ), + "bibliography": MessageLookupByLibrary.simpleMessage("Bibliografia"), + "breakfast": MessageLookupByLibrary.simpleMessage("Pequeno Almoço"), + "bs_description": MessageLookupByLibrary.simpleMessage( + "Encontraste algum bug na aplicação?\nTens alguma sugestão para a app?\nConta-nos para que possamos melhorar!", + ), + "bug_description": MessageLookupByLibrary.simpleMessage( + "Bug encontrado, como o reproduzir, etc", + ), + "bug_description_Suggestion": MessageLookupByLibrary.simpleMessage( + "Sugestão", + ), + "bug_description_error": MessageLookupByLibrary.simpleMessage("Erro"), + "bug_description_other": MessageLookupByLibrary.simpleMessage("Outro"), + "bug_description_unexpected_behaviour": + MessageLookupByLibrary.simpleMessage("Comportamento Inesperado"), + "bug_description_visual_detail": MessageLookupByLibrary.simpleMessage( + "Detalhe Visual", + ), + "bus_error": MessageLookupByLibrary.simpleMessage( + "Não foi possível obter informação", + ), + "bus_information": MessageLookupByLibrary.simpleMessage( + "Seleciona os autocarros dos quais queres informação:", + ), + "buses_personalize": MessageLookupByLibrary.simpleMessage( + "Configura aqui os teus autocarros", + ), + "buses_text": MessageLookupByLibrary.simpleMessage( + "Os autocarros favoritos serão apresentados no widget \'Autocarros\' dos favoritos. Os restantes serão apresentados apenas na página.", + ), + "calendar": MessageLookupByLibrary.simpleMessage("Calendário"), + "cancel": MessageLookupByLibrary.simpleMessage("Cancelar"), + "change": MessageLookupByLibrary.simpleMessage("Alterar"), + "change_password": MessageLookupByLibrary.simpleMessage( + "Alterar palavra-passe", + ), + "change_prompt": MessageLookupByLibrary.simpleMessage( + "Deseja alterar a palavra-passe?", + ), + "check_internet": MessageLookupByLibrary.simpleMessage( + "Verifica a tua ligação à internet", + ), + "class_registration": MessageLookupByLibrary.simpleMessage( + "Inscrição de Turmas", + ), + "collect_usage_stats": MessageLookupByLibrary.simpleMessage( + "Partilhar estatísticas de uso", + ), + "college": MessageLookupByLibrary.simpleMessage("Faculdade: "), + "college_select": MessageLookupByLibrary.simpleMessage( + "seleciona a(s) tua(s) faculdade(s)", + ), + "conclude": MessageLookupByLibrary.simpleMessage("Concluído"), + "configured_buses": MessageLookupByLibrary.simpleMessage( + "Autocarros Configurados", + ), + "confirm": MessageLookupByLibrary.simpleMessage("Confirmar"), + "confirm_logout": MessageLookupByLibrary.simpleMessage( + "Tens a certeza de que queres terminar sessão? Os teus dados locais serão apagados e terás de iniciar sessão novamente.", + ), + "consent": MessageLookupByLibrary.simpleMessage( + "Consinto que esta informação seja revista pelo NIAEFEUP, podendo ser eliminada a meu pedido.", + ), + "contact": MessageLookupByLibrary.simpleMessage("Contacto (opcional)"), + "copy_center": MessageLookupByLibrary.simpleMessage("Centro de cópias"), + "copy_center_building": MessageLookupByLibrary.simpleMessage( + "Piso -1 do edifício B | Edifício da AEFEUP", + ), + "courseRegent": MessageLookupByLibrary.simpleMessage("Regente da Cadeira"), + "course_class": MessageLookupByLibrary.simpleMessage("Turmas"), + "course_info": MessageLookupByLibrary.simpleMessage("Ficha"), + "courses": MessageLookupByLibrary.simpleMessage("Cursos"), + "current_state": MessageLookupByLibrary.simpleMessage("Estado atual: "), + "current_year": MessageLookupByLibrary.simpleMessage( + "Ano curricular atual: ", + ), + "decrement": MessageLookupByLibrary.simpleMessage("Decrementar 1,00€"), + "description": MessageLookupByLibrary.simpleMessage("Descrição"), + "desired_email": MessageLookupByLibrary.simpleMessage( + "Email em que desejas ser contactado", + ), + "dinner": MessageLookupByLibrary.simpleMessage("Jantar"), + "dish_type": m0, + "dish_types": MessageLookupByLibrary.simpleMessage("Tipos de Prato"), + "dona_bia": MessageLookupByLibrary.simpleMessage("Papelaria D. Beatriz"), + "dona_bia_building": MessageLookupByLibrary.simpleMessage( + "Piso -1 do edifício B (B-142)", + ), + "download_error": MessageLookupByLibrary.simpleMessage( + "Erro ao descarregar o ficheiro", + ), + "drag_and_drop": MessageLookupByLibrary.simpleMessage( + "Arrasta e solta os elementos", + ), + "ects": MessageLookupByLibrary.simpleMessage("ECTS realizados: "), + "edit_off": MessageLookupByLibrary.simpleMessage("Editar"), + "edit_on": MessageLookupByLibrary.simpleMessage("Concluir edição"), + "email": MessageLookupByLibrary.simpleMessage("Email"), + "empty_text": MessageLookupByLibrary.simpleMessage( + "Por favor preenche este campo", + ), + "evaluation": MessageLookupByLibrary.simpleMessage("Avaliação"), + "exams": MessageLookupByLibrary.simpleMessage("Exames"), + "exams_filter": MessageLookupByLibrary.simpleMessage( + "Definições Filtro de Exames", + ), + "exit_confirm": MessageLookupByLibrary.simpleMessage( + "Tem a certeza de que pretende sair?", + ), + "expired_password": MessageLookupByLibrary.simpleMessage( + "A tua palavra-passe expirou", + ), + "fail_to_authenticate": MessageLookupByLibrary.simpleMessage( + "Falha ao autenticar", + ), + "failed_login": MessageLookupByLibrary.simpleMessage("O login falhou"), + "failed_upload": MessageLookupByLibrary.simpleMessage( + "Falha de carregamento", + ), + "favorite_filter": MessageLookupByLibrary.simpleMessage("Favoritos"), + "fee_date": MessageLookupByLibrary.simpleMessage("Data limite"), + "fee_notification": MessageLookupByLibrary.simpleMessage( + "Data limite de propina", + ), + "feedback_description": MessageLookupByLibrary.simpleMessage( + "Reporta um problema ou sugere uma melhoria", + ), + "files": MessageLookupByLibrary.simpleMessage("Ficheiros"), + "first_year_registration": MessageLookupByLibrary.simpleMessage( + "Ano da primeira inscrição: ", + ), + "floor": MessageLookupByLibrary.simpleMessage("Piso"), + "floors": MessageLookupByLibrary.simpleMessage("Pisos"), + "forgot_password": MessageLookupByLibrary.simpleMessage( + "Esqueceu a palavra-passe?", + ), + "frequency": MessageLookupByLibrary.simpleMessage("Obtenção de Frequência"), + "generate_reference": MessageLookupByLibrary.simpleMessage( + "Gerar referência", + ), + "geral_registration": MessageLookupByLibrary.simpleMessage( + "Inscrição Geral", + ), + "goi": MessageLookupByLibrary.simpleMessage( + "Gabinete de Orientação e Integração", + ), + "improvement_registration": MessageLookupByLibrary.simpleMessage( + "Inscrição para Melhoria", + ), + "increment": MessageLookupByLibrary.simpleMessage("Incrementar 1,00€"), + "instructor": MessageLookupByLibrary.simpleMessage("Docente"), + "instructors": MessageLookupByLibrary.simpleMessage("Docentes"), + "internet_status_exception": MessageLookupByLibrary.simpleMessage( + "Verifique sua conexão com a internet", + ), + "invalid_credentials": MessageLookupByLibrary.simpleMessage( + "Credenciais inválidas", + ), + "keep_login": MessageLookupByLibrary.simpleMessage("Lembre-se de mim"), + "language": MessageLookupByLibrary.simpleMessage("Idioma"), + "last_refresh_time": m1, + "last_timestamp": m2, + "leave_feedback": MessageLookupByLibrary.simpleMessage("Feedback"), + "lectures": MessageLookupByLibrary.simpleMessage("Aulas"), + "library": MessageLookupByLibrary.simpleMessage("Biblioteca"), + "library_occupation": MessageLookupByLibrary.simpleMessage( + "Ocupação da Biblioteca", + ), + "load_error": MessageLookupByLibrary.simpleMessage( + "Erro ao carregar a informação", + ), + "loading_terms": MessageLookupByLibrary.simpleMessage( + "Carregando os Termos e Condições...", + ), + "location": MessageLookupByLibrary.simpleMessage("Localização"), + "login": MessageLookupByLibrary.simpleMessage("Entrar"), + "login_with_credentials": MessageLookupByLibrary.simpleMessage( + "Entrar com credenciais", + ), + "logout": MessageLookupByLibrary.simpleMessage("Terminar sessão"), + "lunch": MessageLookupByLibrary.simpleMessage("Almoço"), + "menus": MessageLookupByLibrary.simpleMessage("Ementas"), + "min_value_reference": MessageLookupByLibrary.simpleMessage( + "Valor mínimo: 1,00 €", + ), + "multimedia_center": MessageLookupByLibrary.simpleMessage( + "Centro de multimédia", + ), + "nav_title": m3, + "news": MessageLookupByLibrary.simpleMessage("Notícias"), + "nextclasses": MessageLookupByLibrary.simpleMessage( + "Aqui estão as tuas aulas para ", + ), + "no": MessageLookupByLibrary.simpleMessage("Não"), + "noExamsScheduled": MessageLookupByLibrary.simpleMessage( + "Não há exames agendados", + ), + "noInstructors": MessageLookupByLibrary.simpleMessage( + "Não há docentes atribuídos", + ), + "no_app": MessageLookupByLibrary.simpleMessage( + "Nenhuma aplicação encontrada para abrir o ficheiro", + ), + "no_bus": MessageLookupByLibrary.simpleMessage( + "Não percas nenhum autocarro!", + ), + "no_bus_stops": MessageLookupByLibrary.simpleMessage( + "Não existe nenhuma paragem configurada", + ), + "no_class": MessageLookupByLibrary.simpleMessage( + "Não existem turmas para apresentar", + ), + "no_classes": MessageLookupByLibrary.simpleMessage( + "Não existem aulas para apresentar", + ), + "no_classes_on": MessageLookupByLibrary.simpleMessage("Não possui aulas à"), + "no_classes_on_weekend": MessageLookupByLibrary.simpleMessage( + "Não possui aulas ao", + ), + "no_classes_this_week": MessageLookupByLibrary.simpleMessage( + "Não tens aulas esta semana", + ), + "no_classes_today": MessageLookupByLibrary.simpleMessage( + "Não tens mais aulas hoje.", + ), + "no_college": MessageLookupByLibrary.simpleMessage("sem faculdade"), + "no_course_units": MessageLookupByLibrary.simpleMessage( + "Sem cadeiras no período selecionado", + ), + "no_courses": MessageLookupByLibrary.simpleMessage( + "Não foram encontrados cursos", + ), + "no_courses_description": MessageLookupByLibrary.simpleMessage( + "Tenta refrescar a página", + ), + "no_data": MessageLookupByLibrary.simpleMessage( + "Não há dados a mostrar neste momento", + ), + "no_date": MessageLookupByLibrary.simpleMessage("Sem data"), + "no_events": MessageLookupByLibrary.simpleMessage( + "Nenhum evento encontrado", + ), + "no_exams": MessageLookupByLibrary.simpleMessage( + "Não possui exames marcados", + ), + "no_exams_label": MessageLookupByLibrary.simpleMessage( + "Parece que estás de férias!", + ), + "no_favorite_restaurants": MessageLookupByLibrary.simpleMessage( + "Sem restaurantes favoritos abertos", + ), + "no_files": MessageLookupByLibrary.simpleMessage( + "Não possui ficheiros anexados", + ), + "no_files_found": MessageLookupByLibrary.simpleMessage( + "Nenhum ficheiro encontrado", + ), + "no_files_label": MessageLookupByLibrary.simpleMessage( + "Não tens nada para ver!", + ), + "no_info": MessageLookupByLibrary.simpleMessage( + "Não existem informações para apresentar", + ), + "no_internet": MessageLookupByLibrary.simpleMessage( + "Parece que estás offline", + ), + "no_library_info": MessageLookupByLibrary.simpleMessage( + "Sem informação de ocupação", + ), + "no_link": MessageLookupByLibrary.simpleMessage( + "Não conseguimos abrir o link", + ), + "no_menu_info": MessageLookupByLibrary.simpleMessage( + "Não há informação disponível sobre refeições", + ), + "no_menus": MessageLookupByLibrary.simpleMessage( + "Não há refeições disponíveis", + ), + "no_name_course": MessageLookupByLibrary.simpleMessage("Curso sem nome"), + "no_places_info": MessageLookupByLibrary.simpleMessage( + "Não há informação disponível sobre locais", + ), + "no_print_info": MessageLookupByLibrary.simpleMessage( + "Sem informação de saldo", + ), + "no_references": MessageLookupByLibrary.simpleMessage( + "Não existem referências a pagar", + ), + "no_results": MessageLookupByLibrary.simpleMessage("Sem resultados"), + "no_selected_courses": MessageLookupByLibrary.simpleMessage( + "Não existem cadeiras para apresentar", + ), + "no_selected_exams": MessageLookupByLibrary.simpleMessage( + "Não existem exames para apresentar", + ), + "no_trips": MessageLookupByLibrary.simpleMessage( + "Não há viagens planeadas de momento", + ), + "notifications": MessageLookupByLibrary.simpleMessage("Notificações"), + "now": MessageLookupByLibrary.simpleMessage("Agora"), + "occurrence_type": MessageLookupByLibrary.simpleMessage( + "Tipo de ocorrência", + ), + "of_month": MessageLookupByLibrary.simpleMessage("de"), + "open_error": MessageLookupByLibrary.simpleMessage( + "Erro ao abrir o ficheiro", + ), + "other_links": MessageLookupByLibrary.simpleMessage("Outros links"), + "pass_change_request": MessageLookupByLibrary.simpleMessage( + "Por razões de segurança, as palavras-passe têm de ser alteradas periodicamente.", + ), + "password": MessageLookupByLibrary.simpleMessage("Palavra-passe"), + "pendent_references": MessageLookupByLibrary.simpleMessage( + "Referências pendentes", + ), + "permission_denied": MessageLookupByLibrary.simpleMessage("Sem permissão"), + "personal_assistance": MessageLookupByLibrary.simpleMessage( + "Atendimento presencial", + ), + "press_again": MessageLookupByLibrary.simpleMessage( + "Pressione novamente para sair", + ), + "print": MessageLookupByLibrary.simpleMessage("Impressão"), + "print_balance": MessageLookupByLibrary.simpleMessage("Saldo impressões"), + "prints": MessageLookupByLibrary.simpleMessage("Impressões"), + "problem_id": MessageLookupByLibrary.simpleMessage( + "Breve identificação do problema", + ), + "program": MessageLookupByLibrary.simpleMessage("Programa"), + "reference_sigarra_help": MessageLookupByLibrary.simpleMessage( + "Os dados da referência gerada aparecerão no Sigarra, conta corrente. Perfil > Conta Corrente", + ), + "reference_success": MessageLookupByLibrary.simpleMessage( + "Referência criada com sucesso!", + ), + "remaining_instructors": MessageLookupByLibrary.simpleMessage( + "Docentes Restantes", + ), + "remove": MessageLookupByLibrary.simpleMessage("Remover"), + "report_error": MessageLookupByLibrary.simpleMessage("Reportar erro"), + "restaurant_main_page": MessageLookupByLibrary.simpleMessage( + "Queres ver os teus restaurantes favoritos na página principal?", + ), + "restaurant_period": m4, + "restaurants": MessageLookupByLibrary.simpleMessage("Restaurantes"), + "room": MessageLookupByLibrary.simpleMessage("Sala"), + "save": MessageLookupByLibrary.simpleMessage("Guardar"), + "schedule": MessageLookupByLibrary.simpleMessage("Aulas"), + "school_calendar": MessageLookupByLibrary.simpleMessage( + "Calendário Escolar", + ), + "search": MessageLookupByLibrary.simpleMessage("Pesquisar"), + "see_more": MessageLookupByLibrary.simpleMessage("Ver mais"), + "select_all": MessageLookupByLibrary.simpleMessage("Selecionar Todos"), + "semester": MessageLookupByLibrary.simpleMessage("Semestre"), + "send": MessageLookupByLibrary.simpleMessage("Enviar"), + "sent_error": MessageLookupByLibrary.simpleMessage( + "Ocorreu um erro no envio", + ), + "services": MessageLookupByLibrary.simpleMessage("Serviços"), + "settings": MessageLookupByLibrary.simpleMessage("Definições"), + "snackbar": MessageLookupByLibrary.simpleMessage("Snackbar"), + "some_error": MessageLookupByLibrary.simpleMessage("Algum erro!"), + "stcp_stops": MessageLookupByLibrary.simpleMessage( + "STCP - Próximas Viagens", + ), + "student_number": MessageLookupByLibrary.simpleMessage( + "Número de Estudante", + ), + "success": MessageLookupByLibrary.simpleMessage("Enviado com sucesso"), + "successful_open": MessageLookupByLibrary.simpleMessage( + "Ficheiro aberto com sucesso", + ), + "tele_assistance": MessageLookupByLibrary.simpleMessage( + "Atendimento telefónico", + ), + "tele_personal_assistance": MessageLookupByLibrary.simpleMessage( + "Atendimento presencial e telefónico", + ), + "telephone": MessageLookupByLibrary.simpleMessage("Telefone"), + "terms": MessageLookupByLibrary.simpleMessage("Termos e Condições"), + "theme": MessageLookupByLibrary.simpleMessage("Tema"), + "title": MessageLookupByLibrary.simpleMessage("Título"), + "today": MessageLookupByLibrary.simpleMessage("hoje:"), + "tomorrow": MessageLookupByLibrary.simpleMessage("amanhã:"), + "try_again": MessageLookupByLibrary.simpleMessage("Tentar de novo"), + "try_different_login": MessageLookupByLibrary.simpleMessage( + "Problemas ao iniciar sessão?", + ), + "uc_info": MessageLookupByLibrary.simpleMessage("Abrir página da UC"), + "ucs": MessageLookupByLibrary.simpleMessage("UCS"), + "unavailable": MessageLookupByLibrary.simpleMessage("Indisponível"), + "until": MessageLookupByLibrary.simpleMessage("Até"), + "valid_email": MessageLookupByLibrary.simpleMessage( + "Por favor insere um email válido", + ), + "view_course_details": MessageLookupByLibrary.simpleMessage( + "Ver detalhes da Unidade Curricular", + ), + "widget_prompt": MessageLookupByLibrary.simpleMessage( + "Escolhe um widget para adicionares à tua área pessoal:", + ), + "wrong_credentials_exception": MessageLookupByLibrary.simpleMessage( + "Credenciais inválidas", + ), + "year": MessageLookupByLibrary.simpleMessage("Ano"), + "yes": MessageLookupByLibrary.simpleMessage("Sim"), }; } diff --git a/packages/uni_app/lib/generated/l10n.dart b/packages/uni_app/lib/generated/l10n.dart index b15bdb194..b2c5ba2c1 100644 --- a/packages/uni_app/lib/generated/l10n.dart +++ b/packages/uni_app/lib/generated/l10n.dart @@ -18,28 +18,36 @@ class S { static S? _current; static S get current { - assert(_current != null, 'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.'); + assert( + _current != null, + 'No instance of S was loaded. Try to initialize the S delegate before accessing S.current.', + ); return _current!; } - static const AppLocalizationDelegate delegate = - AppLocalizationDelegate(); + static const AppLocalizationDelegate delegate = AppLocalizationDelegate(); static Future load(Locale locale) { - final name = (locale.countryCode?.isEmpty ?? false) ? locale.languageCode : locale.toString(); - final localeName = Intl.canonicalizedLocale(name); + final name = + (locale.countryCode?.isEmpty ?? false) + ? locale.languageCode + : locale.toString(); + final localeName = Intl.canonicalizedLocale(name); return initializeMessages(localeName).then((_) { Intl.defaultLocale = localeName; final instance = S(); S._current = instance; - + return instance; }); - } + } static S of(BuildContext context) { final instance = S.maybeOf(context); - assert(instance != null, 'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?'); + assert( + instance != null, + 'No instance of S present in the widget tree. Did you add S.delegate in localizationsDelegates?', + ); return instance!; } @@ -59,52 +67,27 @@ class S { /// `No` String get no { - return Intl.message( - 'No', - name: 'no', - desc: '', - args: [], - ); + return Intl.message('No', name: 'no', desc: '', args: []); } /// `Yes` String get yes { - return Intl.message( - 'Yes', - name: 'yes', - desc: '', - args: [], - ); + return Intl.message('Yes', name: 'yes', desc: '', args: []); } /// `About us` String get about { - return Intl.message( - 'About us', - name: 'about', - desc: '', - args: [], - ); + return Intl.message('About us', name: 'about', desc: '', args: []); } /// `Language` String get language { - return Intl.message( - 'Language', - name: 'language', - desc: '', - args: [], - ); + return Intl.message('Language', name: 'language', desc: '', args: []); } /// `Theme` String get theme { - return Intl.message( - 'Theme', - name: 'theme', - desc: '', - args: [], - ); + return Intl.message('Theme', name: 'theme', desc: '', args: []); } /// `Notifications` @@ -139,32 +122,17 @@ class S { /// `Add` String get add { - return Intl.message( - 'Add', - name: 'add', - desc: '', - args: [], - ); + return Intl.message('Add', name: 'add', desc: '', args: []); } /// `Add quota` String get add_quota { - return Intl.message( - 'Add quota', - name: 'add_quota', - desc: '', - args: [], - ); + return Intl.message('Add quota', name: 'add_quota', desc: '', args: []); } /// `Add widget` String get add_widget { - return Intl.message( - 'Add widget', - name: 'add_widget', - desc: '', - args: [], - ); + return Intl.message('Add widget', name: 'add_widget', desc: '', args: []); } /// `Add restaurants` @@ -219,12 +187,7 @@ class S { /// `Average` String get average { - return Intl.message( - 'Average', - name: 'average', - desc: '', - args: [], - ); + return Intl.message('Average', name: 'average', desc: '', args: []); } /// `We collect anonymous usage data to help improve your experience. You can opt out anytime in the settings.` @@ -239,12 +202,7 @@ class S { /// `Balance` String get balance { - return Intl.message( - 'Balance', - name: 'balance', - desc: '', - args: [], - ); + return Intl.message('Balance', name: 'balance', desc: '', args: []); } /// `Bibliography` @@ -259,12 +217,7 @@ class S { /// `Breakfast` String get breakfast { - return Intl.message( - 'Breakfast', - name: 'breakfast', - desc: '', - args: [], - ); + return Intl.message('Breakfast', name: 'breakfast', desc: '', args: []); } /// `Did you find any bugs in the application?\nDo you have any suggestions for the app?\nTell us so we can improve!` @@ -329,32 +282,17 @@ class S { /// `Cancel` String get cancel { - return Intl.message( - 'Cancel', - name: 'cancel', - desc: '', - args: [], - ); + return Intl.message('Cancel', name: 'cancel', desc: '', args: []); } /// `Apply` String get apply { - return Intl.message( - 'Apply', - name: 'apply', - desc: '', - args: [], - ); + return Intl.message('Apply', name: 'apply', desc: '', args: []); } /// `Change` String get change { - return Intl.message( - 'Change', - name: 'change', - desc: '', - args: [], - ); + return Intl.message('Change', name: 'change', desc: '', args: []); } /// `Change password` @@ -389,12 +327,7 @@ class S { /// `Classes` String get course_class { - return Intl.message( - 'Classes', - name: 'course_class', - desc: '', - args: [], - ); + return Intl.message('Classes', name: 'course_class', desc: '', args: []); } /// `Class Registration` @@ -409,12 +342,7 @@ class S { /// `College: ` String get college { - return Intl.message( - 'College: ', - name: 'college', - desc: '', - args: [], - ); + return Intl.message('College: ', name: 'college', desc: '', args: []); } /// `select your college(s)` @@ -429,12 +357,7 @@ class S { /// `Done` String get conclude { - return Intl.message( - 'Done', - name: 'conclude', - desc: '', - args: [], - ); + return Intl.message('Done', name: 'conclude', desc: '', args: []); } /// `Configured Buses` @@ -449,12 +372,7 @@ class S { /// `Confirm` String get confirm { - return Intl.message( - 'Confirm', - name: 'confirm', - desc: '', - args: [], - ); + return Intl.message('Confirm', name: 'confirm', desc: '', args: []); } /// `I consent to this information being reviewed by NIAEFEUP and may be deleted at my request.` @@ -479,12 +397,7 @@ class S { /// `Copy center` String get copy_center { - return Intl.message( - 'Copy center', - name: 'copy_center', - desc: '', - args: [], - ); + return Intl.message('Copy center', name: 'copy_center', desc: '', args: []); } /// `Floor -1 of building B | AEFEUP building` @@ -499,12 +412,7 @@ class S { /// `Info` String get course_info { - return Intl.message( - 'Info', - name: 'course_info', - desc: '', - args: [], - ); + return Intl.message('Info', name: 'course_info', desc: '', args: []); } /// `Current state: ` @@ -539,12 +447,7 @@ class S { /// `Description` String get description { - return Intl.message( - 'Description', - name: 'description', - desc: '', - args: [], - ); + return Intl.message('Description', name: 'description', desc: '', args: []); } /// `Email where you want to be contacted` @@ -559,12 +462,7 @@ class S { /// `Dinner` String get dinner { - return Intl.message( - 'Dinner', - name: 'dinner', - desc: '', - args: [], - ); + return Intl.message('Dinner', name: 'dinner', desc: '', args: []); } /// `D. Beatriz's stationery store` @@ -589,32 +487,17 @@ class S { /// `ECTS performed: ` String get ects { - return Intl.message( - 'ECTS performed: ', - name: 'ects', - desc: '', - args: [], - ); + return Intl.message('ECTS performed: ', name: 'ects', desc: '', args: []); } /// `Edit` String get edit_off { - return Intl.message( - 'Edit', - name: 'edit_off', - desc: '', - args: [], - ); + return Intl.message('Edit', name: 'edit_off', desc: '', args: []); } /// `Finish editing` String get edit_on { - return Intl.message( - 'Finish editing', - name: 'edit_on', - desc: '', - args: [], - ); + return Intl.message('Finish editing', name: 'edit_on', desc: '', args: []); } /// `Please fill in this field` @@ -629,12 +512,7 @@ class S { /// `Evaluation` String get evaluation { - return Intl.message( - 'Evaluation', - name: 'evaluation', - desc: '', - args: [], - ); + return Intl.message('Evaluation', name: 'evaluation', desc: '', args: []); } /// `Eligibility for exams` @@ -679,12 +557,7 @@ class S { /// `Deadline` String get fee_date { - return Intl.message( - 'Deadline', - name: 'fee_date', - desc: '', - args: [], - ); + return Intl.message('Deadline', name: 'fee_date', desc: '', args: []); } /// `Fee deadline` @@ -719,22 +592,12 @@ class S { /// `Floor` String get floor { - return Intl.message( - 'Floor', - name: 'floor', - desc: '', - args: [], - ); + return Intl.message('Floor', name: 'floor', desc: '', args: []); } /// `Floors` String get floors { - return Intl.message( - 'Floors', - name: 'floors', - desc: '', - args: [], - ); + return Intl.message('Floors', name: 'floors', desc: '', args: []); } /// `Forgot password?` @@ -799,12 +662,7 @@ class S { /// `Remember me` String get keep_login { - return Intl.message( - 'Remember me', - name: 'keep_login', - desc: '', - args: [], - ); + return Intl.message('Remember me', name: 'keep_login', desc: '', args: []); } /// `last refresh at {time}` @@ -852,12 +710,7 @@ class S { /// `Lunch` String get lunch { - return Intl.message( - 'Lunch', - name: 'lunch', - desc: '', - args: [], - ); + return Intl.message('Lunch', name: 'lunch', desc: '', args: []); } /// `Error downloading the file` @@ -882,52 +735,27 @@ class S { /// `Login` String get login { - return Intl.message( - 'Login', - name: 'login', - desc: '', - args: [], - ); + return Intl.message('Login', name: 'login', desc: '', args: []); } /// `Settings` String get settings { - return Intl.message( - 'Settings', - name: 'settings', - desc: '', - args: [], - ); + return Intl.message('Settings', name: 'settings', desc: '', args: []); } /// `Snackbar` String get snackbar { - return Intl.message( - 'Snackbar', - name: 'snackbar', - desc: '', - args: [], - ); + return Intl.message('Snackbar', name: 'snackbar', desc: '', args: []); } /// `Log out` String get logout { - return Intl.message( - 'Log out', - name: 'logout', - desc: '', - args: [], - ); + return Intl.message('Log out', name: 'logout', desc: '', args: []); } /// `Menus` String get menus { - return Intl.message( - 'Menus', - name: 'menus', - desc: '', - args: [], - ); + return Intl.message('Menus', name: 'menus', desc: '', args: []); } /// `Minimum value: 1,00 €` @@ -977,12 +805,7 @@ class S { /// `News` String get news { - return Intl.message( - 'News', - name: 'news', - desc: '', - args: [], - ); + return Intl.message('News', name: 'news', desc: '', args: []); } /// `Don't miss any bus!` @@ -1067,12 +890,7 @@ class S { /// `no college` String get no_college { - return Intl.message( - 'no college', - name: 'no_college', - desc: '', - args: [], - ); + return Intl.message('no college', name: 'no_college', desc: '', args: []); } /// `No course units in the selected period` @@ -1097,12 +915,7 @@ class S { /// `No date` String get no_date { - return Intl.message( - 'No date', - name: 'no_date', - desc: '', - args: [], - ); + return Intl.message('No date', name: 'no_date', desc: '', args: []); } /// `No events found` @@ -1227,12 +1040,7 @@ class S { /// `No match` String get no_results { - return Intl.message( - 'No match', - name: 'no_results', - desc: '', - args: [], - ); + return Intl.message('No match', name: 'no_results', desc: '', args: []); } /// `There are no course units to display` @@ -1287,12 +1095,7 @@ class S { /// `of` String get of_month { - return Intl.message( - 'of', - name: 'of_month', - desc: '', - args: [], - ); + return Intl.message('of', name: 'of_month', desc: '', args: []); } /// `We couldn't open the link` @@ -1337,12 +1140,7 @@ class S { /// `Other links` String get other_links { - return Intl.message( - 'Other links', - name: 'other_links', - desc: '', - args: [], - ); + return Intl.message('Other links', name: 'other_links', desc: '', args: []); } /// `For security reasons, passwords must be changed periodically.` @@ -1357,12 +1155,7 @@ class S { /// `Password` String get password { - return Intl.message( - 'Password', - name: 'password', - desc: '', - args: [], - ); + return Intl.message('Password', name: 'password', desc: '', args: []); } /// `Pending references` @@ -1397,12 +1190,7 @@ class S { /// `Print` String get print { - return Intl.message( - 'Print', - name: 'print', - desc: '', - args: [], - ); + return Intl.message('Print', name: 'print', desc: '', args: []); } /// `Print balance` @@ -1437,12 +1225,7 @@ class S { /// `Program` String get program { - return Intl.message( - 'Program', - name: 'program', - desc: '', - args: [], - ); + return Intl.message('Program', name: 'program', desc: '', args: []); } /// `Error opening the file` @@ -1477,12 +1260,7 @@ class S { /// `Prints` String get prints { - return Intl.message( - 'Prints', - name: 'prints', - desc: '', - args: [], - ); + return Intl.message('Prints', name: 'prints', desc: '', args: []); } /// `Brief identification of the problem` @@ -1517,12 +1295,7 @@ class S { /// `Delete` String get remove { - return Intl.message( - 'Delete', - name: 'remove', - desc: '', - args: [], - ); + return Intl.message('Delete', name: 'remove', desc: '', args: []); } /// `Report error` @@ -1547,22 +1320,12 @@ class S { /// `Room` String get room { - return Intl.message( - 'Room', - name: 'room', - desc: '', - args: [], - ); + return Intl.message('Room', name: 'room', desc: '', args: []); } /// `Files` String get files { - return Intl.message( - 'Files', - name: 'files', - desc: '', - args: [], - ); + return Intl.message('Files', name: 'files', desc: '', args: []); } /// `School Calendar` @@ -1577,22 +1340,12 @@ class S { /// `Semester` String get semester { - return Intl.message( - 'Semester', - name: 'semester', - desc: '', - args: [], - ); + return Intl.message('Semester', name: 'semester', desc: '', args: []); } /// `Send` String get send { - return Intl.message( - 'Send', - name: 'send', - desc: '', - args: [], - ); + return Intl.message('Send', name: 'send', desc: '', args: []); } /// `An error occurred in sending` @@ -1607,12 +1360,7 @@ class S { /// `Some error!` String get some_error { - return Intl.message( - 'Some error!', - name: 'some_error', - desc: '', - args: [], - ); + return Intl.message('Some error!', name: 'some_error', desc: '', args: []); } /// `STCP - Upcoming Trips` @@ -1667,12 +1415,7 @@ class S { /// `Telephone` String get telephone { - return Intl.message( - 'Telephone', - name: 'telephone', - desc: '', - args: [], - ); + return Intl.message('Telephone', name: 'telephone', desc: '', args: []); } /// `Terms and Conditions` @@ -1687,32 +1430,17 @@ class S { /// `Title` String get title { - return Intl.message( - 'Title', - name: 'title', - desc: '', - args: [], - ); + return Intl.message('Title', name: 'title', desc: '', args: []); } /// `Open UC page` String get uc_info { - return Intl.message( - 'Open UC page', - name: 'uc_info', - desc: '', - args: [], - ); + return Intl.message('Open UC page', name: 'uc_info', desc: '', args: []); } /// `Unavailable` String get unavailable { - return Intl.message( - 'Unavailable', - name: 'unavailable', - desc: '', - args: [], - ); + return Intl.message('Unavailable', name: 'unavailable', desc: '', args: []); } /// `Please enter a valid email` @@ -1737,32 +1465,17 @@ class S { /// `Year` String get year { - return Intl.message( - 'Year', - name: 'year', - desc: '', - args: [], - ); + return Intl.message('Year', name: 'year', desc: '', args: []); } /// `See more` String get see_more { - return Intl.message( - 'See more', - name: 'see_more', - desc: '', - args: [], - ); + return Intl.message('See more', name: 'see_more', desc: '', args: []); } /// `Search` String get search { - return Intl.message( - 'Search', - name: 'search', - desc: '', - args: [], - ); + return Intl.message('Search', name: 'search', desc: '', args: []); } /// `Do you really want to log out? Your local data will be deleted and you will have to log in again.` @@ -1787,12 +1500,7 @@ class S { /// `Try again` String get try_again { - return Intl.message( - 'Try again', - name: 'try_again', - desc: '', - args: [], - ); + return Intl.message('Try again', name: 'try_again', desc: '', args: []); } /// `Having trouble signing in?` @@ -1897,12 +1605,7 @@ class S { /// `Add photo` String get add_photo { - return Intl.message( - 'Add photo', - name: 'add_photo', - desc: '', - args: [], - ); + return Intl.message('Add photo', name: 'add_photo', desc: '', args: []); } /// `Failed to upload` @@ -1917,22 +1620,12 @@ class S { /// `Schedule` String get schedule { - return Intl.message( - 'Schedule', - name: 'schedule', - desc: '', - args: [], - ); + return Intl.message('Schedule', name: 'schedule', desc: '', args: []); } /// `Instructors` String get instructors { - return Intl.message( - 'Instructors', - name: 'instructors', - desc: '', - args: [], - ); + return Intl.message('Instructors', name: 'instructors', desc: '', args: []); } /// `Remaining Instructors` @@ -1947,12 +1640,7 @@ class S { /// `Assessments` String get assessments { - return Intl.message( - 'Assessments', - name: 'assessments', - desc: '', - args: [], - ); + return Intl.message('Assessments', name: 'assessments', desc: '', args: []); } /// `No exams scheduled` @@ -1987,52 +1675,27 @@ class S { /// `Instructor` String get instructor { - return Intl.message( - 'Instructor', - name: 'instructor', - desc: '', - args: [], - ); + return Intl.message('Instructor', name: 'instructor', desc: '', args: []); } /// `Lectures` String get lectures { - return Intl.message( - 'Lectures', - name: 'lectures', - desc: '', - args: [], - ); + return Intl.message('Lectures', name: 'lectures', desc: '', args: []); } /// `Exams` String get exams { - return Intl.message( - 'Exams', - name: 'exams', - desc: '', - args: [], - ); + return Intl.message('Exams', name: 'exams', desc: '', args: []); } /// `Courses` String get courses { - return Intl.message( - 'Courses', - name: 'courses', - desc: '', - args: [], - ); + return Intl.message('Courses', name: 'courses', desc: '', args: []); } /// `All` String get all_feminine { - return Intl.message( - 'All', - name: 'all_feminine', - desc: '', - args: [], - ); + return Intl.message('All', name: 'all_feminine', desc: '', args: []); } /// `{type, select, all_dishes{All dishes} meat_dishes{Meat dishes} fish_dishes{Fish dishes} vegetarian_dishes{Vegetarian dishes} soups{Soups} salads{Salads} diet_dishes{Diet dishes} dishes_of_the_day{Dishes of the Day} closed{Closed} other{Other}}` @@ -2059,22 +1722,12 @@ class S { /// `Dish Types` String get dish_types { - return Intl.message( - 'Dish Types', - name: 'dish_types', - desc: '', - args: [], - ); + return Intl.message('Dish Types', name: 'dish_types', desc: '', args: []); } /// `Select All` String get select_all { - return Intl.message( - 'Select All', - name: 'select_all', - desc: '', - args: [], - ); + return Intl.message('Select All', name: 'select_all', desc: '', args: []); } /// `Favorites` @@ -2091,11 +1744,7 @@ class S { String restaurant_period(Object period) { return Intl.select( period, - { - 'lunch': 'Lunch', - 'dinner': 'Dinner', - 'other': 'Other', - }, + {'lunch': 'Lunch', 'dinner': 'Dinner', 'other': 'Other'}, name: 'restaurant_period', desc: '', args: [period], @@ -2124,22 +1773,12 @@ class S { /// `Now` String get now { - return Intl.message( - 'Now', - name: 'now', - desc: '', - args: [], - ); + return Intl.message('Now', name: 'now', desc: '', args: []); } /// `All` String get all { - return Intl.message( - 'All', - name: 'all', - desc: '', - args: [], - ); + return Intl.message('All', name: 'all', desc: '', args: []); } /// `Drag and drop elements` @@ -2164,72 +1803,37 @@ class S { /// `Library` String get library { - return Intl.message( - 'Library', - name: 'library', - desc: '', - args: [], - ); + return Intl.message('Library', name: 'library', desc: '', args: []); } /// `Restaurants` String get restaurants { - return Intl.message( - 'Restaurants', - name: 'restaurants', - desc: '', - args: [], - ); + return Intl.message('Restaurants', name: 'restaurants', desc: '', args: []); } /// `Calendar` String get calendar { - return Intl.message( - 'Calendar', - name: 'calendar', - desc: '', - args: [], - ); + return Intl.message('Calendar', name: 'calendar', desc: '', args: []); } /// `UCS` String get ucs { - return Intl.message( - 'UCS', - name: 'ucs', - desc: '', - args: [], - ); + return Intl.message('UCS', name: 'ucs', desc: '', args: []); } /// `Save` String get save { - return Intl.message( - 'Save', - name: 'save', - desc: '', - args: [], - ); + return Intl.message('Save', name: 'save', desc: '', args: []); } /// `Location` String get location { - return Intl.message( - 'Location', - name: 'location', - desc: '', - args: [], - ); + return Intl.message('Location', name: 'location', desc: '', args: []); } /// `Email` String get email { - return Intl.message( - 'Email', - name: 'email', - desc: '', - args: [], - ); + return Intl.message('Email', name: 'email', desc: '', args: []); } /// `Add to calendar` @@ -2254,22 +1858,12 @@ class S { /// `Until` String get until { - return Intl.message( - 'Until', - name: 'until', - desc: '', - args: [], - ); + return Intl.message('Until', name: 'until', desc: '', args: []); } /// `Services` String get services { - return Intl.message( - 'Services', - name: 'services', - desc: '', - args: [], - ); + return Intl.message('Services', name: 'services', desc: '', args: []); } /// `Orientation and Integration Office` @@ -2284,22 +1878,12 @@ class S { /// `tomorrow:` String get tomorrow { - return Intl.message( - 'tomorrow:', - name: 'tomorrow', - desc: '', - args: [], - ); + return Intl.message('tomorrow:', name: 'tomorrow', desc: '', args: []); } /// `today:` String get today { - return Intl.message( - 'today:', - name: 'today', - desc: '', - args: [], - ); + return Intl.message('today:', name: 'today', desc: '', args: []); } /// `Here are your classes for ` @@ -2338,4 +1922,4 @@ class AppLocalizationDelegate extends LocalizationsDelegate { } return false; } -} \ No newline at end of file +} diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index def0cf0d7..a30078268 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -90,11 +90,11 @@ class ScheduleHomeCard extends GenericHomecard { upcomingLectures.sort((a, b) => a.startTime.compareTo(b.startTime)); final nextLecture = upcomingLectures.first; Lecture secondLecture = nextLecture; - if(upcomingLectures.length > 1){ + if (upcomingLectures.length > 1) { secondLecture = upcomingLectures[1]; } - - if(secondLecture.startTime.day != nextLecture.startTime.day){ + + if (secondLecture.startTime.day != nextLecture.startTime.day) { upcomingLectures ..clear() ..add(nextLecture); @@ -119,7 +119,10 @@ class ScheduleHomeCard extends GenericHomecard { const SizedBox(height: 18), CardTimeline( items: - buildTimelineItems(upcomingLectures, context).take(2).toList(), + buildTimelineItems( + upcomingLectures, + context, + ).take(2).toList(), ), ], ); @@ -141,20 +144,25 @@ class ScheduleHomeCard extends GenericHomecard { fontSize: 14, color: Theme.of(context).colorScheme.primary, ), - ) + ), ], ), const SizedBox(height: 18), CardTimeline( items: - buildTimelineItems(upcomingLectures, context).take(2).toList(), + buildTimelineItems( + upcomingLectures, + context, + ).take(2).toList(), ), ], ); } else if (nextLecture.startTime.isBefore(weekEnd) && nextLecture.startTime.isAfter(tomorrowEnd)) { - dateText = DateFormat('EEEE', Localizations.localeOf(context).toString()) - .format(nextLecture.startTime); + dateText = DateFormat( + 'EEEE', + Localizations.localeOf(context).toString(), + ).format(nextLecture.startTime); return Column( mainAxisSize: MainAxisSize.min, children: [ @@ -170,25 +178,29 @@ class ScheduleHomeCard extends GenericHomecard { fontSize: 14, color: Theme.of(context).colorScheme.primary, ), - ) + ), ], ), const SizedBox(height: 18), CardTimeline( items: - buildTimelineItems(upcomingLectures, context).take(2).toList(), + buildTimelineItems( + upcomingLectures, + context, + ).take(2).toList(), ), ], ); } else { - return Center(child: - IconLabel(icon: const UniIcon(size : 45, UniIcons.sun), - label: S.of(context).no_classes_this_week, - labelTextStyle: TextStyle( + return Center( + child: IconLabel( + icon: const UniIcon(size: 45, UniIcons.sun), + label: S.of(context).no_classes_this_week, + labelTextStyle: TextStyle( fontSize: 14, color: Theme.of(context).colorScheme.primary, ), - ) + ), ); } } else { @@ -216,55 +228,58 @@ class ScheduleHomeCard extends GenericHomecard { } List buildTimelineItems( - List lectures, BuildContext context) { + List lectures, + BuildContext context, + ) { final now = DateTime.now(); - final period = TimePeriod(start: now, end: now.add(const Duration(days: 7))); + final period = TimePeriod( + start: now, + end: now.add(const Duration(days: 7)), + ); final week = Week(start: now); - final session = ProviderScope.containerOf(context, listen: false) - .read(sessionProvider); + final session = ProviderScope.containerOf( + context, + listen: false, + ).read(sessionProvider); final sortedLectures = lectures .where((lecture) => period.contains(lecture.startTime)) .toList() .sortedBy((lecture) => week.getWeekday(lecture.startTime.weekday)); - return sortedLectures - .map( - (element) { - final isActive = now.isAfter(element.startTime) && - now.isBefore(element.endTime); - return TimelineItem( - isActive: isActive, - title: DateFormat('HH:mm').format(element.startTime), - subtitle: DateFormat('HH:mm').format(element.endTime), - card: FutureBuilder( - future: session.value != null - ? ProfileNotifier.fetchOrGetCachedProfilePicture( - session.value!, - studentNumber: element.teacherId, - ) - : Future.value(null), - builder: (context, snapshot) { - final teacherPhoto = (snapshot.hasData && snapshot.data != null) - ? Image.file(snapshot.data!) - : Image.asset( - 'assets/images/profile_placeholder.png', - ); + return sortedLectures.map((element) { + final isActive = + now.isAfter(element.startTime) && now.isBefore(element.endTime); + return TimelineItem( + isActive: isActive, + title: DateFormat('HH:mm').format(element.startTime), + subtitle: DateFormat('HH:mm').format(element.endTime), + card: FutureBuilder( + future: + session.value != null + ? ProfileNotifier.fetchOrGetCachedProfilePicture( + session.value!, + studentNumber: element.teacherId, + ) + : Future.value(null), + builder: (context, snapshot) { + final teacherPhoto = + (snapshot.hasData && snapshot.data != null) + ? Image.file(snapshot.data!) + : Image.asset('assets/images/profile_placeholder.png'); - return ScheduleCard( - isActive: isActive, - name: element.subject, - acronym: element.acronym, - room: element.room, - type: element.typeClass, - teacherName: element.teacherName, - teacherPhoto: teacherPhoto, - ); - }, - ), + return ScheduleCard( + isActive: isActive, + name: element.subject, + acronym: element.acronym, + room: element.room, + type: element.typeClass, + teacherName: element.teacherName, + teacherPhoto: teacherPhoto, ); }, - ) - .toList(); + ), + ); + }).toList(); } -} \ No newline at end of file +} From bc7d4f580075fc75843c0134c24c63bca9306bf3 Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 14:34:44 +0000 Subject: [PATCH 08/17] removed the sun and added the beer --- .../home/widgets/schedule/schedule_home_card.dart | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index 2815b8ec1..fe97908f6 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -37,8 +37,8 @@ List getMockLectures() { 'ESOF', 'ESOF', 'T', - now.add(const Duration(days: 7, hours: 1)), - now.add(const Duration(days: 7, hours: 2)), + now.add(const Duration(days: 0, hours: -2)), + now.add(const Duration(days: 0, hours: -1)), 'Room B123', 'ademaraguiar', 'ademaraguiar', @@ -50,8 +50,8 @@ List getMockLectures() { 'LTW', 'LTW', 'TP', - now.add(const Duration(days: 7, hours: 2)), - now.add(const Duration(days: 7, hours: 3)), + now.add(const Duration(days: 1, hours: 2)), + now.add(const Duration(days: 1, hours: 3)), 'Room B234', 'arestivo', 'arestivo', @@ -139,7 +139,7 @@ class ScheduleHomeCard extends GenericHomecard { Column( mainAxisSize: MainAxisSize.min, children: [ - const UniIcon(size: 45, UniIcons.sun), + const UniIcon(size: 45, UniIcons.beer), const SizedBox(height: 8), Text( '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText', @@ -173,7 +173,7 @@ class ScheduleHomeCard extends GenericHomecard { Column( mainAxisSize: MainAxisSize.min, children: [ - const UniIcon(size: 45, UniIcons.sun), + const UniIcon(size: 45, UniIcons.beer), const SizedBox(height: 8), Text( '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText:', @@ -198,7 +198,7 @@ class ScheduleHomeCard extends GenericHomecard { } else { return Center( child: IconLabel( - icon: const UniIcon(size: 45, UniIcons.sun), + icon: const UniIcon(size: 45, UniIcons.beer), label: S.of(context).no_classes_this_week, labelTextStyle: TextStyle( fontSize: 14, From fa9f92eef0e089e03691878a9e521c6cb01a783d Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 15:24:42 +0000 Subject: [PATCH 09/17] further logic fixes and some code cleanup --- .../widgets/schedule/schedule_home_card.dart | 244 ++++++++---------- 1 file changed, 107 insertions(+), 137 deletions(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index fe97908f6..843d54e2e 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -27,7 +27,9 @@ class TimePeriod { Duration get duration => end.difference(start); - bool contains(DateTime date) => date.isAfter(start) && date.isBefore(end); + bool contains(DateTime date) => + (date.isAfter(start) || date.isAtSameMomentAs(start)) && + date.isBefore(end); } List getMockLectures() { @@ -37,8 +39,8 @@ List getMockLectures() { 'ESOF', 'ESOF', 'T', - now.add(const Duration(days: 0, hours: -2)), - now.add(const Duration(days: 0, hours: -1)), + now.subtract(const Duration(hours: 2)), + now.subtract(const Duration(hours: 1)), 'Room B123', 'ademaraguiar', 'ademaraguiar', @@ -50,8 +52,8 @@ List getMockLectures() { 'LTW', 'LTW', 'TP', - now.add(const Duration(days: 1, hours: 2)), - now.add(const Duration(days: 1, hours: 3)), + now.add(const Duration(hours: 0)), + now.add(const Duration(hours: 1)), 'Room B234', 'arestivo', 'arestivo', @@ -79,135 +81,15 @@ class ScheduleHomeCard extends GenericHomecard { final mockLectures = getMockLectures(); final now = DateTime.now(); - final todayStart = DateTime(now.year, now.month, now.day); - final todayEnd = todayStart.add(const Duration(days: 1)); - final tomorrowStart = todayStart.add(const Duration(days: 1)); - final tomorrowEnd = tomorrowStart.add(const Duration(days: 1)); - final weekEnd = todayStart.add(const Duration(days: 7)); - - // Upcoming lectures (from now) - final upcomingLectures = - mockLectures.where((lecture) => lecture.endTime.isAfter(now)).toList(); - - if (upcomingLectures.isNotEmpty) { - // ensure the list is sorted so first == next - upcomingLectures.sort((a, b) => a.startTime.compareTo(b.startTime)); - final nextLecture = upcomingLectures.first; - Lecture secondLecture = nextLecture; - if (upcomingLectures.length > 1) { - secondLecture = upcomingLectures[1]; - } + // Get upcoming lectures (end time is after now) + final upcomingLectures = mockLectures + .where((lecture) => lecture.endTime.isAfter(now)) + .toList() + ..sort((a, b) => a.startTime.compareTo(b.startTime)); - if (secondLecture.startTime.day != nextLecture.startTime.day) { - upcomingLectures - ..clear() - ..add(nextLecture); - } + print('Upcoming lectures: ${upcomingLectures.length}'); - // Determine display text for date - String dateText; - if (nextLecture.startTime.isAfter(todayStart) && - nextLecture.startTime.isBefore(todayEnd)) { - dateText = S.of(context).today; - return Column( - mainAxisSize: MainAxisSize.min, - children: [ - Text( - dateText, - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 14, - color: Theme.of(context).colorScheme.primary, - ), - ), - const SizedBox(height: 18), - CardTimeline( - items: - buildTimelineItems( - upcomingLectures, - context, - ).take(2).toList(), - ), - ], - ); - } else if (nextLecture.startTime.isAfter(tomorrowStart) && - nextLecture.startTime.isBefore(tomorrowEnd)) { - dateText = S.of(context).tomorrow; - return Column( - mainAxisSize: MainAxisSize.min, - children: [ - Column( - mainAxisSize: MainAxisSize.min, - children: [ - const UniIcon(size: 45, UniIcons.beer), - const SizedBox(height: 8), - Text( - '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText', - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 14, - color: Theme.of(context).colorScheme.primary, - ), - ), - ], - ), - const SizedBox(height: 18), - CardTimeline( - items: - buildTimelineItems( - upcomingLectures, - context, - ).take(2).toList(), - ), - ], - ); - } else if (nextLecture.startTime.isBefore(weekEnd) && - nextLecture.startTime.isAfter(tomorrowEnd)) { - dateText = DateFormat( - 'EEEE', - Localizations.localeOf(context).toString(), - ).format(nextLecture.startTime); - return Column( - mainAxisSize: MainAxisSize.min, - children: [ - Column( - mainAxisSize: MainAxisSize.min, - children: [ - const UniIcon(size: 45, UniIcons.beer), - const SizedBox(height: 8), - Text( - '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText:', - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 14, - color: Theme.of(context).colorScheme.primary, - ), - ), - ], - ), - const SizedBox(height: 18), - CardTimeline( - items: - buildTimelineItems( - upcomingLectures, - context, - ).take(2).toList(), - ), - ], - ); - } else { - return Center( - child: IconLabel( - icon: const UniIcon(size: 45, UniIcons.beer), - label: S.of(context).no_classes_this_week, - labelTextStyle: TextStyle( - fontSize: 14, - color: Theme.of(context).colorScheme.primary, - ), - ), - ); - } - } else { + if (upcomingLectures.isEmpty) { return Center( child: IconLabel( icon: const UniIcon(size: 45, UniIcons.beer), @@ -219,6 +101,92 @@ class ScheduleHomeCard extends GenericHomecard { ), ); } + + // Check if any lecture is currently happening + final hasCurrentLecture = mockLectures.any((lecture) => _isLectureCurrent(lecture, now)); + + // If there's a current lecture, just show the timeline without any message + if (hasCurrentLecture) { + return CardTimeline( + items: buildTimelineItems(upcomingLectures, context), + ); + } + + // Otherwise, determine what message to show + final nextLecture = upcomingLectures.first; + final today = DateTime(now.year, now.month, now.day); + final tomorrow = today.add(const Duration(days: 1)); + + if (nextLecture.startTime.isAfter(today) && + nextLecture.startTime.isBefore(today.add(const Duration(days: 1)))) { + // Next lecture is today - just show the timeline without "Today" message + return CardTimeline( + items: buildTimelineItems(upcomingLectures, context), + ); + } else if (nextLecture.startTime.isAfter(tomorrow) && + nextLecture.startTime.isBefore(tomorrow.add(const Duration(days: 1)))) { + // Next lecture is tomorrow + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + const UniIcon(size: 45, UniIcons.beer), + const SizedBox(height: 8), + Text( + '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}${S.of(context).tomorrow}', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ), + ], + ), + const SizedBox(height: 18), + CardTimeline( + items: buildTimelineItems(upcomingLectures, context), + ), + ], + ); + } else { + // Next lecture is later this week + final dateText = DateFormat( + 'EEEE', + Localizations.localeOf(context).toString(), + ).format(nextLecture.startTime); + + return Column( + mainAxisSize: MainAxisSize.min, + children: [ + Column( + mainAxisSize: MainAxisSize.min, + children: [ + const UniIcon(size: 45, UniIcons.beer), + const SizedBox(height: 8), + Text( + '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText:', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ), + ], + ), + const SizedBox(height: 18), + CardTimeline( + items: buildTimelineItems(upcomingLectures, context), + ), + ], + ); + } + } + + bool _isLectureCurrent(Lecture lecture, DateTime now) { + return (now.isAfter(lecture.startTime) || now.isAtSameMomentAs(lecture.startTime)) && + now.isBefore(lecture.endTime); } @override @@ -245,14 +213,16 @@ class ScheduleHomeCard extends GenericHomecard { listen: false, ).read(sessionProvider); + // Use the lectures directly without filtering by period + // The lectures are already filtered to be upcoming final sortedLectures = lectures - .where((lecture) => period.contains(lecture.startTime)) .toList() .sortedBy((lecture) => week.getWeekday(lecture.startTime.weekday)); - return sortedLectures.map((element) { - final isActive = - now.isAfter(element.startTime) && now.isBefore(element.endTime); + + // Take only the first 2 lectures for the home card + return sortedLectures.take(2).map((element) { + final isActive = _isLectureCurrent(element, now); return TimelineItem( isActive: isActive, title: DateFormat('HH:mm').format(element.startTime), @@ -285,4 +255,4 @@ class ScheduleHomeCard extends GenericHomecard { ); }).toList(); } -} +} \ No newline at end of file From f18c4efd3da3a113b474addcd3bd26a26f9ad5ad Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 15:25:33 +0000 Subject: [PATCH 10/17] removed debugging message --- .../lib/view/home/widgets/schedule/schedule_home_card.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index 843d54e2e..c8ff29ba5 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -87,7 +87,6 @@ class ScheduleHomeCard extends GenericHomecard { .toList() ..sort((a, b) => a.startTime.compareTo(b.startTime)); - print('Upcoming lectures: ${upcomingLectures.length}'); if (upcomingLectures.isEmpty) { return Center( From 128400b25397c1ed4dbdf01d6764465de812fcbc Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:09:16 +0000 Subject: [PATCH 11/17] cringe ahh bug when sorting the classes was found --- .../widgets/schedule/schedule_home_card.dart | 333 +++++++++++------- 1 file changed, 199 insertions(+), 134 deletions(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index c8ff29ba5..df50a9517 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -32,38 +32,6 @@ class TimePeriod { date.isBefore(end); } -List getMockLectures() { - final now = DateTime.now(); - return [ - Lecture( - 'ESOF', - 'ESOF', - 'T', - now.subtract(const Duration(hours: 2)), - now.subtract(const Duration(hours: 1)), - 'Room B123', - 'ademaraguiar', - 'ademaraguiar', - 101, - '1', - 1001, - ), - Lecture( - 'LTW', - 'LTW', - 'TP', - now.add(const Duration(hours: 0)), - now.add(const Duration(hours: 1)), - 'Room B234', - 'arestivo', - 'arestivo', - 102, - '2', - 1002, - ), - ]; -} - class ScheduleHomeCard extends GenericHomecard { const ScheduleHomeCard({super.key}) : super( @@ -78,114 +46,184 @@ class ScheduleHomeCard extends GenericHomecard { @override Widget buildCardContent(BuildContext context) { - final mockLectures = getMockLectures(); - final now = DateTime.now(); + return DefaultConsumer>( + provider: lectureProvider, + builder: (context, ref, lectures) { + final now = DateTime.now(); - // Get upcoming lectures (end time is after now) - final upcomingLectures = mockLectures - .where((lecture) => lecture.endTime.isAfter(now)) - .toList() - ..sort((a, b) => a.startTime.compareTo(b.startTime)); + // Debug: Print current time and all lectures + print('=== SCHEDULE DEBUG - START ==='); + print('Current time: $now'); + print('Total lectures from provider: ${lectures.length}'); + + for (var i = 0; i < lectures.length; i++) { + final lecture = lectures[i]; + print('Lecture $i: ${lecture.subject}'); + print(' Start: ${lecture.startTime}'); + print(' End: ${lecture.endTime}'); + print(' Is current: ${_isLectureCurrent(lecture, now)}'); + print(' Start is after now: ${lecture.startTime.isAfter(now)}'); + print(' End is after now: ${lecture.endTime.isAfter(now)}'); + } + // Get upcoming lectures (end time is after now) + final upcomingLectures = lectures + .where((lecture) => lecture.endTime.isAfter(now)) + .toList() + ..sort((a, b) => a.startTime.compareTo(b.startTime)); - if (upcomingLectures.isEmpty) { - return Center( - child: IconLabel( - icon: const UniIcon(size: 45, UniIcons.beer), - label: S.of(context).no_classes, - labelTextStyle: TextStyle( - fontSize: 14, - color: Theme.of(context).colorScheme.primary, - ), - ), - ); - } + print('=== UPCOMING LECTURES FILTERED ==='); + print('Upcoming lectures count: ${upcomingLectures.length}'); + for (var i = 0; i < upcomingLectures.length; i++) { + final lecture = upcomingLectures[i]; + print('Upcoming $i: ${lecture.subject} | ${lecture.startTime} -> ${lecture.endTime}'); + } - // Check if any lecture is currently happening - final hasCurrentLecture = mockLectures.any((lecture) => _isLectureCurrent(lecture, now)); + if (upcomingLectures.isEmpty) { + print('No upcoming lectures - showing no_classes message'); + return Center( + child: IconLabel( + icon: const UniIcon(size: 45, UniIcons.beer), + label: S.of(context).no_classes, + labelTextStyle: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ), + ); + } - // If there's a current lecture, just show the timeline without any message - if (hasCurrentLecture) { - return CardTimeline( - items: buildTimelineItems(upcomingLectures, context), - ); - } + // Check if any lecture is currently happening + final hasCurrentLecture = upcomingLectures.any((lecture) => _isLectureCurrent(lecture, now)); + print('Has current lecture: $hasCurrentLecture'); - // Otherwise, determine what message to show - final nextLecture = upcomingLectures.first; - final today = DateTime(now.year, now.month, now.day); - final tomorrow = today.add(const Duration(days: 1)); + // If there's a current lecture, just show the timeline without any message + if (hasCurrentLecture) { + print('Showing current lecture timeline'); + return CardTimeline( + items: buildTimelineItems(upcomingLectures, ref), + ); + } - if (nextLecture.startTime.isAfter(today) && - nextLecture.startTime.isBefore(today.add(const Duration(days: 1)))) { - // Next lecture is today - just show the timeline without "Today" message - return CardTimeline( - items: buildTimelineItems(upcomingLectures, context), - ); - } else if (nextLecture.startTime.isAfter(tomorrow) && - nextLecture.startTime.isBefore(tomorrow.add(const Duration(days: 1)))) { - // Next lecture is tomorrow - return Column( - mainAxisSize: MainAxisSize.min, - children: [ - Column( + // Otherwise, determine what message to show + final nextLecture = upcomingLectures.first; + final today = DateTime(now.year, now.month, now.day); + final tomorrow = today.add(const Duration(days: 1)); + final weekEnd = today.add(const Duration(days: 7)); + + // Check if next lecture is within this week + final isWithinThisWeek = nextLecture.startTime.isBefore(weekEnd); + print('Next lecture: ${nextLecture.subject} at ${nextLecture.startTime}'); + print('Is within this week: $isWithinThisWeek'); + print('Today: $today'); + print('Tomorrow: $tomorrow'); + print('Week end: $weekEnd'); + + if (!isWithinThisWeek) { + // Next class is beyond this week - show "no classes this week" message + print('Next lecture is beyond this week - showing no_classes_this_week message'); + return Center( + child: IconLabel( + icon: const UniIcon(size: 45, UniIcons.beer), + label: S.of(context).no_classes_this_week, + labelTextStyle: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ), + ); + } + + if (nextLecture.startTime.isAfter(today) && + nextLecture.startTime.isBefore(today.add(const Duration(days: 1)))) { + // Next lecture is today - just show the timeline without "Today" message + print('Next lecture is today - showing timeline without message'); + return CardTimeline( + items: buildTimelineItems(upcomingLectures, ref), + ); + } else if (nextLecture.startTime.isAfter(tomorrow) && + nextLecture.startTime.isBefore(tomorrow.add(const Duration(days: 1)))) { + // Next lecture is tomorrow + print('Next lecture is tomorrow - showing tomorrow message with timeline'); + return Column( mainAxisSize: MainAxisSize.min, children: [ - const UniIcon(size: 45, UniIcons.beer), - const SizedBox(height: 8), - Text( - '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}${S.of(context).tomorrow}', - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 14, - color: Theme.of(context).colorScheme.primary, - ), + Column( + mainAxisSize: MainAxisSize.min, + children: [ + const UniIcon(size: 45, UniIcons.beer), + const SizedBox(height: 8), + Text( + '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}${S.of(context).tomorrow}', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ), + ], + ), + const SizedBox(height: 18), + CardTimeline( + items: buildTimelineItems(upcomingLectures, ref), ), ], - ), - const SizedBox(height: 18), - CardTimeline( - items: buildTimelineItems(upcomingLectures, context), - ), - ], - ); - } else { - // Next lecture is later this week - final dateText = DateFormat( - 'EEEE', - Localizations.localeOf(context).toString(), - ).format(nextLecture.startTime); - - return Column( - mainAxisSize: MainAxisSize.min, - children: [ - Column( + ); + } else { + // Next lecture is later this week (but within this week) + final dateText = DateFormat( + 'EEEE', + Localizations.localeOf(context).toString(), + ).format(nextLecture.startTime); + print('Next lecture is later this week ($dateText) - showing weekday message with timeline'); + + return Column( mainAxisSize: MainAxisSize.min, children: [ - const UniIcon(size: 45, UniIcons.beer), - const SizedBox(height: 8), - Text( - '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText:', - textAlign: TextAlign.center, - style: TextStyle( - fontSize: 14, - color: Theme.of(context).colorScheme.primary, - ), + Column( + mainAxisSize: MainAxisSize.min, + children: [ + const UniIcon(size: 45, UniIcons.beer), + const SizedBox(height: 8), + Text( + '${S.of(context).no_classes_today}\n${S.of(context).nextclasses}$dateText:', + textAlign: TextAlign.center, + style: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, + ), + ), + ], + ), + const SizedBox(height: 18), + CardTimeline( + items: buildTimelineItems(upcomingLectures, ref), ), ], + ); + } + }, + hasContent: (lectures) => lectures.isNotEmpty, + nullContentWidget: Center( + child: IconLabel( + icon: const UniIcon(size: 45, UniIcons.beer), + label: S.of(context).no_classes, + labelTextStyle: TextStyle( + fontSize: 14, + color: Theme.of(context).colorScheme.primary, ), - const SizedBox(height: 18), - CardTimeline( - items: buildTimelineItems(upcomingLectures, context), - ), - ], - ); - } + ), + ), + mapper: (lectures) => lectures, + loadingWidget: const ShimmerCardTimeline(), + ); } bool _isLectureCurrent(Lecture lecture, DateTime now) { - return (now.isAfter(lecture.startTime) || now.isAtSameMomentAs(lecture.startTime)) && + final isCurrent = (now.isAfter(lecture.startTime) || now.isAtSameMomentAs(lecture.startTime)) && now.isBefore(lecture.endTime); + print(' _isLectureCurrent check for ${lecture.subject}: $isCurrent (now: $now, start: ${lecture.startTime}, end: ${lecture.endTime})'); + return isCurrent; } @override @@ -197,31 +235,50 @@ class ScheduleHomeCard extends GenericHomecard { ); } - List buildTimelineItems( - List lectures, - BuildContext context, - ) { + List buildTimelineItems(List lectures, WidgetRef ref) { final now = DateTime.now(); final period = TimePeriod( start: now, end: now.add(const Duration(days: 7)), ); final week = Week(start: now); - final session = ProviderScope.containerOf( - context, - listen: false, - ).read(sessionProvider); + final session = ref.read(sessionProvider); - // Use the lectures directly without filtering by period - // The lectures are already filtered to be upcoming - final sortedLectures = lectures - .toList() - .sortedBy((lecture) => week.getWeekday(lecture.startTime.weekday)); + print('=== BUILD TIMELINE ITEMS DEBUG ==='); + print('Input lectures count: ${lectures.length}'); + print('Period: ${period.start} to ${period.end}'); + + // Print all input lectures to timeline + for (var i = 0; i < lectures.length; i++) { + final lecture = lectures[i]; + print('Input lecture $i to timeline: ${lecture.subject} | ${lecture.startTime} -> ${lecture.endTime}'); + } + + // Filter lectures to only show those within the next 7 days + final lecturesThisWeek = lectures + .where((lecture) => period.contains(lecture.startTime)) + .toList(); + print('Lectures this week count: ${lecturesThisWeek.length}'); + for (var i = 0; i < lecturesThisWeek.length; i++) { + final lecture = lecturesThisWeek[i]; + print('Lecture this week $i: ${lecture.subject} | ${lecture.startTime} -> ${lecture.endTime}'); + } + + // FIX: Sort by actual date and time, not just weekday + final sortedLectures = lecturesThisWeek + .sortedBy((lecture) => lecture.startTime); + + print('Sorted lectures:'); + for (var i = 0; i < sortedLectures.length; i++) { + final lecture = sortedLectures[i]; + print('Sorted $i: ${lecture.subject} | ${lecture.startTime}'); + } // Take only the first 2 lectures for the home card - return sortedLectures.take(2).map((element) { + final timelineItems = sortedLectures.take(2).map((element) { final isActive = _isLectureCurrent(element, now); + print('Creating timeline item: ${element.subject} - Active: $isActive'); return TimelineItem( isActive: isActive, title: DateFormat('HH:mm').format(element.startTime), @@ -253,5 +310,13 @@ class ScheduleHomeCard extends GenericHomecard { ), ); }).toList(); + + print('Final timeline items count: ${timelineItems.length}'); + for (var i = 0; i < timelineItems.length; i++) { + final item = timelineItems[i]; + print('Final timeline item $i: ${item.title} - ${item.subtitle}'); + } + print('=== SCHEDULE DEBUG - END ==='); + return timelineItems; } } \ No newline at end of file From 3712f1c6d8576f324874ee9eeb71ea3370c38f7f Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:11:53 +0000 Subject: [PATCH 12/17] removed debugging messages --- .../widgets/schedule/schedule_home_card.dart | 64 +------------------ 1 file changed, 3 insertions(+), 61 deletions(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index df50a9517..fe6fd46dd 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -51,36 +51,14 @@ class ScheduleHomeCard extends GenericHomecard { builder: (context, ref, lectures) { final now = DateTime.now(); - // Debug: Print current time and all lectures - print('=== SCHEDULE DEBUG - START ==='); - print('Current time: $now'); - print('Total lectures from provider: ${lectures.length}'); - - for (var i = 0; i < lectures.length; i++) { - final lecture = lectures[i]; - print('Lecture $i: ${lecture.subject}'); - print(' Start: ${lecture.startTime}'); - print(' End: ${lecture.endTime}'); - print(' Is current: ${_isLectureCurrent(lecture, now)}'); - print(' Start is after now: ${lecture.startTime.isAfter(now)}'); - print(' End is after now: ${lecture.endTime.isAfter(now)}'); - } - // Get upcoming lectures (end time is after now) final upcomingLectures = lectures .where((lecture) => lecture.endTime.isAfter(now)) .toList() ..sort((a, b) => a.startTime.compareTo(b.startTime)); - print('=== UPCOMING LECTURES FILTERED ==='); - print('Upcoming lectures count: ${upcomingLectures.length}'); - for (var i = 0; i < upcomingLectures.length; i++) { - final lecture = upcomingLectures[i]; - print('Upcoming $i: ${lecture.subject} | ${lecture.startTime} -> ${lecture.endTime}'); - } if (upcomingLectures.isEmpty) { - print('No upcoming lectures - showing no_classes message'); return Center( child: IconLabel( icon: const UniIcon(size: 45, UniIcons.beer), @@ -95,11 +73,9 @@ class ScheduleHomeCard extends GenericHomecard { // Check if any lecture is currently happening final hasCurrentLecture = upcomingLectures.any((lecture) => _isLectureCurrent(lecture, now)); - print('Has current lecture: $hasCurrentLecture'); // If there's a current lecture, just show the timeline without any message if (hasCurrentLecture) { - print('Showing current lecture timeline'); return CardTimeline( items: buildTimelineItems(upcomingLectures, ref), ); @@ -113,15 +89,9 @@ class ScheduleHomeCard extends GenericHomecard { // Check if next lecture is within this week final isWithinThisWeek = nextLecture.startTime.isBefore(weekEnd); - print('Next lecture: ${nextLecture.subject} at ${nextLecture.startTime}'); - print('Is within this week: $isWithinThisWeek'); - print('Today: $today'); - print('Tomorrow: $tomorrow'); - print('Week end: $weekEnd'); if (!isWithinThisWeek) { // Next class is beyond this week - show "no classes this week" message - print('Next lecture is beyond this week - showing no_classes_this_week message'); return Center( child: IconLabel( icon: const UniIcon(size: 45, UniIcons.beer), @@ -137,14 +107,12 @@ class ScheduleHomeCard extends GenericHomecard { if (nextLecture.startTime.isAfter(today) && nextLecture.startTime.isBefore(today.add(const Duration(days: 1)))) { // Next lecture is today - just show the timeline without "Today" message - print('Next lecture is today - showing timeline without message'); return CardTimeline( items: buildTimelineItems(upcomingLectures, ref), ); } else if (nextLecture.startTime.isAfter(tomorrow) && nextLecture.startTime.isBefore(tomorrow.add(const Duration(days: 1)))) { // Next lecture is tomorrow - print('Next lecture is tomorrow - showing tomorrow message with timeline'); return Column( mainAxisSize: MainAxisSize.min, children: [ @@ -175,7 +143,7 @@ class ScheduleHomeCard extends GenericHomecard { 'EEEE', Localizations.localeOf(context).toString(), ).format(nextLecture.startTime); - print('Next lecture is later this week ($dateText) - showing weekday message with timeline'); + return Column( mainAxisSize: MainAxisSize.min, @@ -222,7 +190,6 @@ class ScheduleHomeCard extends GenericHomecard { bool _isLectureCurrent(Lecture lecture, DateTime now) { final isCurrent = (now.isAfter(lecture.startTime) || now.isAtSameMomentAs(lecture.startTime)) && now.isBefore(lecture.endTime); - print(' _isLectureCurrent check for ${lecture.subject}: $isCurrent (now: $now, start: ${lecture.startTime}, end: ${lecture.endTime})'); return isCurrent; } @@ -244,41 +211,22 @@ class ScheduleHomeCard extends GenericHomecard { final week = Week(start: now); final session = ref.read(sessionProvider); - print('=== BUILD TIMELINE ITEMS DEBUG ==='); - print('Input lectures count: ${lectures.length}'); - print('Period: ${period.start} to ${period.end}'); - - // Print all input lectures to timeline - for (var i = 0; i < lectures.length; i++) { - final lecture = lectures[i]; - print('Input lecture $i to timeline: ${lecture.subject} | ${lecture.startTime} -> ${lecture.endTime}'); - } + // Filter lectures to only show those within the next 7 days final lecturesThisWeek = lectures .where((lecture) => period.contains(lecture.startTime)) .toList(); - print('Lectures this week count: ${lecturesThisWeek.length}'); - for (var i = 0; i < lecturesThisWeek.length; i++) { - final lecture = lecturesThisWeek[i]; - print('Lecture this week $i: ${lecture.subject} | ${lecture.startTime} -> ${lecture.endTime}'); - } - // FIX: Sort by actual date and time, not just weekday + //Sort by actual date and time final sortedLectures = lecturesThisWeek .sortedBy((lecture) => lecture.startTime); - print('Sorted lectures:'); - for (var i = 0; i < sortedLectures.length; i++) { - final lecture = sortedLectures[i]; - print('Sorted $i: ${lecture.subject} | ${lecture.startTime}'); - } // Take only the first 2 lectures for the home card final timelineItems = sortedLectures.take(2).map((element) { final isActive = _isLectureCurrent(element, now); - print('Creating timeline item: ${element.subject} - Active: $isActive'); return TimelineItem( isActive: isActive, title: DateFormat('HH:mm').format(element.startTime), @@ -311,12 +259,6 @@ class ScheduleHomeCard extends GenericHomecard { ); }).toList(); - print('Final timeline items count: ${timelineItems.length}'); - for (var i = 0; i < timelineItems.length; i++) { - final item = timelineItems[i]; - print('Final timeline item $i: ${item.title} - ${item.subtitle}'); - } - print('=== SCHEDULE DEBUG - END ==='); return timelineItems; } } \ No newline at end of file From a9549a3c8a3ec0d4c1c3b6e9d2d5e5fea17d6edb Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:27:22 +0000 Subject: [PATCH 13/17] added back the mocklectures as comment --- .../widgets/schedule/schedule_home_card.dart | 103 ++++++++++++++++++ 1 file changed, 103 insertions(+) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index fe6fd46dd..ee089c813 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -32,6 +32,98 @@ class TimePeriod { date.isBefore(end); } +List getMockLectures() { + + + final now = DateTime.now(); + + + return [ + + + Lecture( + + + 'ESOF', + + + 'ESOF', + + + 'T', + + + now.subtract(const Duration(hours: 2)), + + + now.subtract(const Duration(hours: 1)), + + + 'Room B123', + + + 'ademaraguiar', + + + 'ademaraguiar', + + + 101, + + + '1', + + + 1001, + + + ), + + + Lecture( + + + 'LTW', + + + 'LTW', + + + 'TP', + + + now.add(const Duration(hours: 0)), + + + now.add(const Duration(hours: 1)), + + + 'Room B234', + + + 'arestivo', + + + 'arestivo', + + + 102, + + + '2', + + + 1002, + + + ), + + + ]; + + +} + class ScheduleHomeCard extends GenericHomecard { const ScheduleHomeCard({super.key}) : super( @@ -50,7 +142,18 @@ class ScheduleHomeCard extends GenericHomecard { provider: lectureProvider, builder: (context, ref, lectures) { final now = DateTime.now(); + final mockLectures = getMockLectures(); + + // For the sake of testing uncomment what's below + /* + final upcomingLectures = mockLectures + .where((lecture) => lecture.endTime.isAfter(now)) + .toList() + ..sort((a, b) => a.startTime.compareTo(b.startTime)); + + */ + // For the sake of testing comment what's below // Get upcoming lectures (end time is after now) final upcomingLectures = lectures .where((lecture) => lecture.endTime.isAfter(now)) From 965000f3266b60e9de29dbeb5e898a9b1a6e7caf Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:31:18 +0000 Subject: [PATCH 14/17] formatting --- .../widgets/schedule/schedule_home_card.dart | 176 +++++++----------- 1 file changed, 67 insertions(+), 109 deletions(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index ee089c813..b8eddc54e 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -27,101 +27,63 @@ class TimePeriod { Duration get duration => end.difference(start); - bool contains(DateTime date) => - (date.isAfter(start) || date.isAtSameMomentAs(start)) && + bool contains(DateTime date) => + (date.isAfter(start) || date.isAtSameMomentAs(start)) && date.isBefore(end); } List getMockLectures() { - - final now = DateTime.now(); - return [ - - Lecture( - - 'ESOF', - 'ESOF', - 'T', - now.subtract(const Duration(hours: 2)), - now.subtract(const Duration(hours: 1)), - 'Room B123', - 'ademaraguiar', - 'ademaraguiar', - 101, - '1', - 1001, - - ), - Lecture( - - 'LTW', - 'LTW', - 'TP', - now.add(const Duration(hours: 0)), - now.add(const Duration(hours: 1)), - 'Room B234', - 'arestivo', - 'arestivo', - 102, - '2', - 1002, - - ), - - ]; - - } class ScheduleHomeCard extends GenericHomecard { @@ -153,13 +115,11 @@ class ScheduleHomeCard extends GenericHomecard { */ - // For the sake of testing comment what's below + // For the sake of testing comment what's below // Get upcoming lectures (end time is after now) - final upcomingLectures = lectures - .where((lecture) => lecture.endTime.isAfter(now)) - .toList() - ..sort((a, b) => a.startTime.compareTo(b.startTime)); - + final upcomingLectures = + lectures.where((lecture) => lecture.endTime.isAfter(now)).toList() + ..sort((a, b) => a.startTime.compareTo(b.startTime)); if (upcomingLectures.isEmpty) { return Center( @@ -175,13 +135,13 @@ class ScheduleHomeCard extends GenericHomecard { } // Check if any lecture is currently happening - final hasCurrentLecture = upcomingLectures.any((lecture) => _isLectureCurrent(lecture, now)); + final hasCurrentLecture = upcomingLectures.any( + (lecture) => _isLectureCurrent(lecture, now), + ); // If there's a current lecture, just show the timeline without any message if (hasCurrentLecture) { - return CardTimeline( - items: buildTimelineItems(upcomingLectures, ref), - ); + return CardTimeline(items: buildTimelineItems(upcomingLectures, ref)); } // Otherwise, determine what message to show @@ -207,14 +167,16 @@ class ScheduleHomeCard extends GenericHomecard { ); } - if (nextLecture.startTime.isAfter(today) && - nextLecture.startTime.isBefore(today.add(const Duration(days: 1)))) { + if (nextLecture.startTime.isAfter(today) && + nextLecture.startTime.isBefore( + today.add(const Duration(days: 1)), + )) { // Next lecture is today - just show the timeline without "Today" message - return CardTimeline( - items: buildTimelineItems(upcomingLectures, ref), - ); - } else if (nextLecture.startTime.isAfter(tomorrow) && - nextLecture.startTime.isBefore(tomorrow.add(const Duration(days: 1)))) { + return CardTimeline(items: buildTimelineItems(upcomingLectures, ref)); + } else if (nextLecture.startTime.isAfter(tomorrow) && + nextLecture.startTime.isBefore( + tomorrow.add(const Duration(days: 1)), + )) { // Next lecture is tomorrow return Column( mainAxisSize: MainAxisSize.min, @@ -235,9 +197,7 @@ class ScheduleHomeCard extends GenericHomecard { ], ), const SizedBox(height: 18), - CardTimeline( - items: buildTimelineItems(upcomingLectures, ref), - ), + CardTimeline(items: buildTimelineItems(upcomingLectures, ref)), ], ); } else { @@ -247,7 +207,6 @@ class ScheduleHomeCard extends GenericHomecard { Localizations.localeOf(context).toString(), ).format(nextLecture.startTime); - return Column( mainAxisSize: MainAxisSize.min, children: [ @@ -267,9 +226,7 @@ class ScheduleHomeCard extends GenericHomecard { ], ), const SizedBox(height: 18), - CardTimeline( - items: buildTimelineItems(upcomingLectures, ref), - ), + CardTimeline(items: buildTimelineItems(upcomingLectures, ref)), ], ); } @@ -291,8 +248,10 @@ class ScheduleHomeCard extends GenericHomecard { } bool _isLectureCurrent(Lecture lecture, DateTime now) { - final isCurrent = (now.isAfter(lecture.startTime) || now.isAtSameMomentAs(lecture.startTime)) && - now.isBefore(lecture.endTime); + final isCurrent = + (now.isAfter(lecture.startTime) || + now.isAtSameMomentAs(lecture.startTime)) && + now.isBefore(lecture.endTime); return isCurrent; } @@ -314,54 +273,53 @@ class ScheduleHomeCard extends GenericHomecard { final week = Week(start: now); final session = ref.read(sessionProvider); - - // Filter lectures to only show those within the next 7 days - final lecturesThisWeek = lectures - .where((lecture) => period.contains(lecture.startTime)) - .toList(); - + final lecturesThisWeek = + lectures + .where((lecture) => period.contains(lecture.startTime)) + .toList(); //Sort by actual date and time - final sortedLectures = lecturesThisWeek - .sortedBy((lecture) => lecture.startTime); - + final sortedLectures = lecturesThisWeek.sortedBy( + (lecture) => lecture.startTime, + ); // Take only the first 2 lectures for the home card - final timelineItems = sortedLectures.take(2).map((element) { - final isActive = _isLectureCurrent(element, now); - return TimelineItem( - isActive: isActive, - title: DateFormat('HH:mm').format(element.startTime), - subtitle: DateFormat('HH:mm').format(element.endTime), - card: FutureBuilder( - future: - session.value != null - ? ProfileNotifier.fetchOrGetCachedProfilePicture( - session.value!, - studentNumber: element.teacherId, - ) - : Future.value(null), - builder: (context, snapshot) { - final teacherPhoto = - (snapshot.hasData && snapshot.data != null) - ? Image.file(snapshot.data!) - : Image.asset('assets/images/profile_placeholder.png'); - - return ScheduleCard( - isActive: isActive, - name: element.subject, - acronym: element.acronym, - room: element.room, - type: element.typeClass, - teacherName: element.teacherName, - teacherPhoto: teacherPhoto, - ); - }, - ), - ); - }).toList(); + final timelineItems = + sortedLectures.take(2).map((element) { + final isActive = _isLectureCurrent(element, now); + return TimelineItem( + isActive: isActive, + title: DateFormat('HH:mm').format(element.startTime), + subtitle: DateFormat('HH:mm').format(element.endTime), + card: FutureBuilder( + future: + session.value != null + ? ProfileNotifier.fetchOrGetCachedProfilePicture( + session.value!, + studentNumber: element.teacherId, + ) + : Future.value(null), + builder: (context, snapshot) { + final teacherPhoto = + (snapshot.hasData && snapshot.data != null) + ? Image.file(snapshot.data!) + : Image.asset('assets/images/profile_placeholder.png'); + + return ScheduleCard( + isActive: isActive, + name: element.subject, + acronym: element.acronym, + room: element.room, + type: element.typeClass, + teacherName: element.teacherName, + teacherPhoto: teacherPhoto, + ); + }, + ), + ); + }).toList(); return timelineItems; } -} \ No newline at end of file +} From d93340e9aeff40a1c569794b095f12d83b9b956e Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:49:07 +0000 Subject: [PATCH 15/17] linting? --- .../lib/view/home/widgets/schedule/schedule_home_card.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index b8eddc54e..cf1924651 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -104,7 +104,7 @@ class ScheduleHomeCard extends GenericHomecard { provider: lectureProvider, builder: (context, ref, lectures) { final now = DateTime.now(); - final mockLectures = getMockLectures(); + //final mockLectures = getMockLectures(); // For the sake of testing uncomment what's below /* @@ -299,7 +299,7 @@ class ScheduleHomeCard extends GenericHomecard { session.value!, studentNumber: element.teacherId, ) - : Future.value(null), + : Future.value(), builder: (context, snapshot) { final teacherPhoto = (snapshot.hasData && snapshot.data != null) From d28441f9117e583d488683949e68bc7b9a41be2b Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:54:30 +0000 Subject: [PATCH 16/17] linting again --- .../lib/view/home/widgets/schedule/schedule_home_card.dart | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index cf1924651..6ccad7234 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -32,7 +32,7 @@ class TimePeriod { date.isBefore(end); } -List getMockLectures() { +/*List getMockLectures() { final now = DateTime.now(); return [ @@ -84,7 +84,7 @@ List getMockLectures() { 1002, ), ]; -} +}*/ class ScheduleHomeCard extends GenericHomecard { const ScheduleHomeCard({super.key}) @@ -270,7 +270,7 @@ class ScheduleHomeCard extends GenericHomecard { start: now, end: now.add(const Duration(days: 7)), ); - final week = Week(start: now); + //final week = Week(start: now); final session = ref.read(sessionProvider); // Filter lectures to only show those within the next 7 days From dc1aa8bb15b2a7425f3d35d9be232b3d27652080 Mon Sep 17 00:00:00 2001 From: Martim Cadilhe <169788723+martim07833@users.noreply.github.com> Date: Tue, 11 Nov 2025 16:57:53 +0000 Subject: [PATCH 17/17] third linting --- .../lib/view/home/widgets/schedule/schedule_home_card.dart | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart index 6ccad7234..d84eee6e0 100644 --- a/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart +++ b/packages/uni_app/lib/view/home/widgets/schedule/schedule_home_card.dart @@ -10,7 +10,6 @@ import 'package:uni/model/providers/riverpod/default_consumer.dart'; import 'package:uni/model/providers/riverpod/lecture_provider.dart'; import 'package:uni/model/providers/riverpod/profile_provider.dart'; import 'package:uni/model/providers/riverpod/session_provider.dart'; -import 'package:uni/model/utils/time/week.dart'; import 'package:uni/utils/navigation_items.dart'; import 'package:uni/view/home/widgets/generic_home_card.dart'; import 'package:uni/view/home/widgets/schedule/timeline_shimmer.dart';