From 526a3eecde7390a340d46e3952d8a597b4bcc91b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Palma?= Date: Fri, 24 May 2019 16:32:13 +0200 Subject: [PATCH] Translations Fix (#56) * Closes #48 Closes #51 Closes #52 * Updated translations --- ios/Podfile.lock | 16 +- ios/Runner.xcodeproj/project.pbxproj | 4 +- lib/localization/fogos_localizations.dart | 269 +++++++++++++++- .../generated/l10n/intl_messages_en.arb | 301 +++++++++++++++++- .../generated/l10n/intl_messages_pt.arb | 273 +++++++++++++++- .../generated/l10n/messages_all.dart | 19 +- .../generated/l10n/messages_en.dart | 109 ++++--- .../generated/l10n/messages_messages_en.dart | 93 ++++++ .../generated/l10n/messages_messages_pt.dart | 93 ++++++ .../generated/l10n/messages_pt.dart | 113 ++++--- lib/main.dart | 12 +- lib/screens/about/about.dart | 11 +- lib/screens/components/fireRisk.dart | 23 +- lib/screens/components/fire_details.dart | 4 +- .../components/lastHoursStatistics.dart | 9 +- .../components/lastNightStatistics.dart | 3 +- lib/screens/components/meansStatistics.dart | 7 +- lib/screens/components/todayStatistics.dart | 5 +- lib/screens/components/weekStatistics.dart | 5 +- .../components/yesterdayStatistics.dart | 5 +- lib/screens/fire_details.dart | 7 +- lib/screens/info_page.dart | 20 +- lib/screens/settings/notifications.dart | 3 +- lib/screens/settings/other_notifications.dart | 5 +- lib/screens/settings/settings.dart | 2 +- lib/screens/statistics_page.dart | 10 +- pubspec.lock | 6 +- 27 files changed, 1254 insertions(+), 173 deletions(-) create mode 100644 lib/localization/generated/l10n/messages_messages_en.dart create mode 100644 lib/localization/generated/l10n/messages_messages_pt.dart diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 864f30c..522e83c 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -121,24 +121,24 @@ EXTERNAL SOURCES: SPEC CHECKSUMS: Firebase: 6df9a6114bc9f106a98fe83d5438d4d9833c2019 - firebase_messaging: b25b2fa94e685146bcf9d706ed87b4e95cd2a17d + firebase_messaging: a5f5d4a9491b660f33a1f94bd0596558f820bad1 FirebaseAnalytics: 63202d2665de4e6adcbdce189135255d8b5962ba FirebaseAnalyticsInterop: e5f21be9af6548372e2f0815834ff909bff395a2 FirebaseCore: fba2bfaa691c49028309b92e4dd37cc4b5512fbe FirebaseInstanceID: e2fa4cb35ef5558c200f7f0ad8a53e212215f93e FirebaseMessaging: 0f14a264b0d7f867e8eff5d3556bc5d0d4e57888 - Flutter: 58dd7d1b27887414a370fcccb9e645c08ffd7a6a + Flutter: 9d0fac939486c9aba2809b7982dfdbb47a7b0296 FMDB: 2ce00b547f966261cd18927a3ddb07cb6f3db82a GoogleAppMeasurement: 5029d78f2b438bd30ffb44e6c558b57c21622727 GoogleUtilities: 95996bea7c7d9b8fb811b7507669a4a8762f80c7 nanopb: 2901f78ea1b7b4015c860c2fdd1ea2fee1a18d48 - path_provider: f96fff6166a8867510d2c25fdcc346327cc4b259 + path_provider: 09407919825bfe3c2deae39453b7a5b44f467873 Protobuf: 1eb9700044745f00181c136ef21b8ff3ad5a0fd5 - share: 7d22fe8baedfe93aefd864bf0b73f29711fbb0a3 - shared_preferences: 1feebfa37bb57264736e16865e7ffae7fc99b523 - sqflite: ff1d9da63c06588cc8d1faf7256d741f16989d5a - url_launcher: 0067ddb8f10d36786672aa0722a21717dba3a298 + share: 222b5dcc8031238af9d7de91149df65bad1aef75 + shared_preferences: 5a1d487c427ee18fcd3ea1f2a131569481834b53 + sqflite: d1612813fa7db7c667bed9f1d1b508deffc56999 + url_launcher: 92b89c1029a0373879933c21642958c874539095 PODFILE CHECKSUM: aff02bfeed411c636180d6812254b2daeea14d09 -COCOAPODS: 1.6.1 +COCOAPODS: 1.5.3 diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 7bd9d84..172b0a0 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -261,7 +261,7 @@ inputFileListPaths = ( ); inputPaths = ( - "${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", + "${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh", "${PODS_ROOT}/../.symlinks/flutter/ios/Flutter.framework", ); name = "[CP] Embed Pods Frameworks"; @@ -272,7 +272,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; + shellScript = "\"${SRCROOT}/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh\"\n"; showEnvVarsInLog = 0; }; 9740EEB61CF901F6004384FC /* Run Script */ = { diff --git a/lib/localization/fogos_localizations.dart b/lib/localization/fogos_localizations.dart index 539c8ae..4da0307 100644 --- a/lib/localization/fogos_localizations.dart +++ b/lib/localization/fogos_localizations.dart @@ -87,6 +87,12 @@ class FogosLocalizations { desc: 'Texto de estatísticas - App Drawer', ); + String get textAbout => Intl.message( + "Sobre", + name: 'textAbout', + desc: 'Texto de about - App Drawer', + ); + String get textCounty => Intl.message( "Concelho", name: 'textCounty', @@ -106,13 +112,13 @@ class FogosLocalizations { ); String get textHumanMeans => Intl.message( - "Meios humanos", + "Bombeiros", name: 'textHumanMeans', desc: 'Human means label', ); String get textTerrainMeans => Intl.message( - "Meios terrestres", + "Viaturas", name: 'textTerrainMeans', desc: 'Terrain means label', ); @@ -219,6 +225,264 @@ class FogosLocalizations { desc: 'Fire status: Dispatch', ); + String get textInformationIncidentStatus => Intl.message( + "Estado das Ocorrências", + name: 'textInformationIncidentStatus', + desc: 'Incident Status', + ); + + String get textInformationFirstOrderDispatch => Intl.message( + "Despacho de 1º alerta – Meios em trânsito para o teatro de operações.", + name: 'textInformationFirstOrderDispatch', + desc: 'Information Screen - First Order Dispatch', + ); + + String get textInformationArrival => Intl.message( + "Chegada ao TO – chegada ao teatro de operações.", + name: 'textInformationArrival', + desc: 'Information Screen - Arrival', + ); + + String get textInformationOngoing => Intl.message( + "Em curso - Incêndio em evolução sem limitação de área", + name: 'textInformationOngoing', + desc: 'Information Screen - Ongoing', + ); + + String get textInformationSettling => Intl.message( + "Em resolução – Incêndio sem perigo de propagação para além do perímetro já atingido", + name: 'textInformationSettling', + desc: 'Information Screen - Settling', + ); + + String get textInformationClosing => Intl.message( + "Em conclusão – Incêndio extinto, com pequenos focos de combustão dentro do perímetro do incêndio", + name: 'textInformationClosing', + desc: 'Information Screen - Closing', + ); + + String get textInformationSupervision => Intl.message( + "Vigilância – Meios no local para actuar em caso de necessidade", + name: 'textInformationSupervision', + desc: 'InformationScreen - Supervision', + ); + + String get textInformationClosed => Intl.message( + "Encerrada – Entrada, nas respectivas entidades, de todos os meios envolvidos", + name: 'textInformationClosed', + desc: 'Information Screen - Closed', + ); + + String get textFalseAlarm => Intl.message( + "Falso alarme", + name: 'textFalseAlarm', + desc: 'False alarm', + ); + + String get textFalseAlert => Intl.message( + "Falso alerta", + name: 'textFalseAlert', + desc: 'False Alert', + ); + + String textShare(String city, String id) => Intl.message( + 'Incêndio em $city https://fogos.pt/fogo/$id', + name: 'textShare', + args: [city, id], + desc: 'Share Text', + examples: const {'city' : 'Grândola', 'id' : '1'} + ); + + String get textRiskReduced => + Intl.message( + "Reduzido", + name: 'textRiskReduced', + desc: 'Risk reduzed', + ); + + String get textRiskModerate => + Intl.message( + "Moderado", + name: 'textRiskModerate', + desc: 'Risk Moderate', + ); + + String get textRiskHigh => + Intl.message( + "Elevado", + name: 'textRiskHigh', + desc: 'High Risk', + ); + + String get textRiskVeryHigh => + Intl.message( + "Muito Elevado", + name: 'textRiskVeryHigh', + desc: 'Very high risk', + ); + + String get textMaximumRisk => + Intl.message( + "Máximo", + name: 'textMaximumRisk', + desc: 'Maximum Risk', + ); + + String get textFires => + Intl.message( + "Incêndios", + name: 'textFires', + desc: 'Text Fires', + ); + + String get textFireman => + Intl.message( + "Bombeiros", + name: 'textFireman', + desc: 'Fireman', + ); + + String get textVehicles => + Intl.message( + "Veículos", + name: 'textVehicles', + desc: 'Vehicles', + ); + + String get textAerial => + Intl.message( + "Aéreos", + name: 'textAerial', + desc: 'Text Aerial', + ); + + String get textLastNightStatistics => + Intl.message( + "Estatísticas da última noite", + name: 'textLastNightStatistics', + desc: 'Last Night Statísticas', + ); + + String get textTodayInterval => + Intl.message( + "Intervalo do dia", + name: 'textTodayInterval', + desc: 'Text today Interval', + ); + + String get textTodayDistricts => + Intl.message( + "Distritos do dia", + name: 'textTodayDistricts', + desc: 'Text today Districts', + ); + + String get textTotal => + Intl.message( + "Total", + name: 'textTotal', + desc: 'Total', + ); + + String get textYesterdayInterval => + Intl.message( + "Intervalo de ontem", + name: 'textYesterdayInterval', + desc: 'Text Yesterday Interval', + ); + + String get textYesterdayDistricts => + Intl.message( + "Distritos de ontem", + name: 'textYesterdayDistricts', + desc: 'Text Yesterday Districts', + ); + + String get textSignificatOccurences => Intl.message( + "Ocorrências significativas", + name: 'textSignificatOccurences', + desc: 'Significant Occurences', + ); + + String get textOther => Intl.message( + "Outras", + name: 'textOther', + desc: 'Other', + ); + + String get textResources => Intl.message( + "Meios", + name: 'textResources', + desc: 'Resources', + ); + + String get textRiskOfFire => Intl.message( + "Risco de Incêndio", + name: 'textRiskOfFire', + desc: 'Risk of Fire', + ); + + String get textNow => Intl.message( + "Agora", + name: 'textNow', + desc: 'Now', + ); + + String get textToday => Intl.message( + "Hoje", + name: 'textToday', + desc: 'Today', + ); + + String get textYesterday => Intl.message( + "Ontem", + name: 'textYesterday', + desc: 'Yesterday', + ); + + String get textLastNight => Intl.message( + "Última Noite", + name: 'textLastNight', + desc: 'Last Night', + ); + + String get textPreviousDays => Intl.message( + "Últimos Dias", + name: 'textPreviousDays', + desc: 'Last Few Days', + ); + + String get textRecordsFrom => Intl.message( + "Registos retirados da", + name: 'textRecordsFrom', + desc: 'Data collected From', + ); + + String get textCivilProtection => Intl.message( + "Página da Protecção Civil Portuguesa.", + name: 'textCivilProtection', + desc: 'Portuguese Civil Protection Agency website.', + ); + + String get textDataUpdate => Intl.message( + "Actualizações de 2 em 2 minutos.", + name: 'textDataUpdate', + desc: 'Data is updated in 2 minute intervals.', + ); + + String get textLocationApproximate => Intl.message( + "Localização aproximada.", + name: 'textLocationApproximate', + desc: 'Location may not be exact.', + ); + + String get textBugs => Intl.message( + "Sugestões / Bugs -", + name: 'textBugs', + desc: 'Suggestions / Bug reporting -', + ); + + String textFireStatus(FireStatus status) { switch (status) { case FireStatus.arrival: @@ -253,3 +517,4 @@ class FogosLocalizations { static FogosLocalizations of(BuildContext context) => Localizations.of(context, FogosLocalizations); } + diff --git a/lib/localization/generated/l10n/intl_messages_en.arb b/lib/localization/generated/l10n/intl_messages_en.arb index b38572f..da027da 100644 --- a/lib/localization/generated/l10n/intl_messages_en.arb +++ b/lib/localization/generated/l10n/intl_messages_en.arb @@ -1,18 +1,36 @@ { -"@@locale": "en", - "@@last_modified": "2019-05-10T08:54:25.970182", + "@@locale": "en", + "@@last_modified": "2019-05-24T15:49:27.430395", "appTitle": "Fogos.pt", "@appTitle": { "description": "App title", "type": "text", "placeholders": {} }, + "textInformations": "Informations", + "@textInformations": { + "description": "Texto de informações - App Drawer", + "type": "text", + "placeholders": {} + }, "textNotifications": "Notifications", "@textNotifications": { "description": "Texto de notificações - App Drawer", "type": "text", "placeholders": {} }, + "textStatistics": "Statistics", + "@textStatistics": { + "description": "Texto de estatísticas - App Drawer", + "type": "text", + "placeholders": {} + }, + "textAbout": "About", + "@textAbout": { + "description": "Texto de about - App Drawer", + "type": "text", + "placeholders": {} + }, "textCounty": "County", "@textCounty": { "description": "County Text - List of Counties", @@ -31,19 +49,19 @@ "type": "text", "placeholders": {} }, - "textHumanMeans": "Human means", + "textHumanMeans": "Firemen", "@textHumanMeans": { "description": "Human means label", "type": "text", "placeholders": {} }, - "textTerrainMeans": "Terrain means", + "textTerrainMeans": "Vehicles", "@textTerrainMeans": { "description": "Terrain means label", "type": "text", "placeholders": {} }, - "textAerealMeans": "Aereal Means", + "textAerealMeans": "Aerial Resources", "@textAerealMeans": { "description": "Aereal Means label", "type": "text", @@ -55,6 +73,30 @@ "type": "text", "placeholders": {} }, + "textWarnings": "Warnings", + "@textWarnings": { + "description": "Texto de avisos - App Drawer", + "type": "text", + "placeholders": {} + }, + "textNoConnection": "We were unnable to connect to the server", + "@textNoConnection": { + "description": "Warning text for when working offline", + "type": "text", + "placeholders": {} + }, + "textRefreshButton": "Refresh", + "@textRefreshButton": { + "description": "Text for button refresh, when working offline", + "type": "text", + "placeholders": {} + }, + "textPartners": "Partners", + "@textPartners": { + "description": "Texto de Parcerias - App Drawer", + "type": "text", + "placeholders": {} + }, "textFireStatusArrival": "Ground arrival", "@textFireStatusArrival": { "description": "Fire status: arrival", @@ -120,5 +162,252 @@ "description": "Fire status: Dispatch", "type": "text", "placeholders": {} - } + }, + "textInformationIncidentStatus": "Incident Status", + "@textInformationIncidentStatus": { + "description": "Incident Status", + "type": "text", + "placeholders": {} + }, + "textInformationFirstOrderDispatch": "First alert dispatch - Resources are moving to incident location.", + "@textInformationFirstOrderDispatch": { + "description": "Information Screen - First Order Dispatch", + "type": "text", + "placeholders": {} + }, + "textInformationArrival": "Arrival to Incident Scene - Resources arrived at incidient location.", + "@textInformationArrival": { + "description": "Information Screen - Arrival", + "type": "text", + "placeholders": {} + }, + "textInformationOngoing": "Ongoing - Fire is ongoing without boundaries", + "@textInformationOngoing": { + "description": "Information Screen - Ongoing", + "type": "text", + "placeholders": {} + }, + "textInformationSettling": "Settling - Fire without risk of propagation beyond boundaries", + "@textInformationSettling": { + "description": "Information Screen - Settling", + "type": "text", + "placeholders": {} + }, + "textInformationClosing": "Closing - Fire is extinguished, while there could be still some fire spots within incident boundaries", + "@textInformationClosing": { + "description": "Information Screen - Closing", + "type": "text", + "placeholders": {} + }, + "textInformationSupervision": "Supervision - Resources at incident location to act if needed", + "@textInformationSupervision": { + "description": "InformationScreen - Supervision", + "type": "text", + "placeholders": {} + }, + "textInformationClosed": "Closed - All resources are back at their headquarters.", + "@textInformationClosed": { + "description": "Information Screen - Closed", + "type": "text", + "placeholders": {} + }, + "textFalseAlarm": "False alarm", + "@textFalseAlarm": { + "description": "False alarm", + "type": "text", + "placeholders": {} + }, + "textFalseAlert": "False Alert", + "@textFalseAlert": { + "description": "False Alert", + "type": "text", + "placeholders": {} + }, + "textShare": "Fire in {city} https://fogos.pt/fogo/{id}", + "@textShare": { + "description": "Share Text", + "type": "text", + "placeholders": { + "city": { + "example": "Grândola" + }, + "id": { + "example": "1" + } + } + }, + "textRiskReduced": "Reduced", + "@textRiskReduced": { + "description": "Risk reduzed", + "type": "text", + "placeholders": {} + }, + "textRiskModerate": "Moderate", + "@textRiskModerate": { + "description": "Risk Moderate", + "type": "text", + "placeholders": {} + }, + "textRiskHigh": "High", + "@textRiskHigh": { + "description": "High Risk", + "type": "text", + "placeholders": {} + }, + "textRiskVeryHigh": "Very High", + "@textRiskVeryHigh": { + "description": "Very high risk", + "type": "text", + "placeholders": {} + }, + "textMaximumRisk": "Maximum", + "@textMaximumRisk": { + "description": "Maximum Risk", + "type": "text", + "placeholders": {} + }, + "textFires": "Fires", + "@textFires": { + "description": "Text Fires", + "type": "text", + "placeholders": {} + }, + "textFireman": "Firemen", + "@textFireman": { + "description": "Fireman", + "type": "text", + "placeholders": {} + }, + "textVehicles": "Vehicles", + "@textVehicles": { + "description": "Vehicles", + "type": "text", + "placeholders": {} + }, + "textAerial": "Aerial", + "@textAerial": { + "description": "Text Aerial", + "type": "text", + "placeholders": {} + }, + "textLastNightStatistics": "Last Night Statistics", + "@textLastNightStatistics": { + "description": "Last Night Statísticas", + "type": "text", + "placeholders": {} + }, + "textTodayInterval": "Today's Interval", + "@textTodayInterval": { + "description": "Text today Interval", + "type": "text", + "placeholders": {} + }, + "textTodayDistricts": "Today's District", + "@textTodayDistricts": { + "description": "Text today Districts", + "type": "text", + "placeholders": {} + }, + "textTotal": "Total", + "@textTotal": { + "description": "Total", + "type": "text", + "placeholders": {} + }, + "textYesterdayInterval": "Yesterday's Interval", + "@textYesterdayInterval": { + "description": "Text Yesterday Interval", + "type": "text", + "placeholders": {} + }, + "textYesterdayDistricts": "Yesterday's Districts", + "@textYesterdayDistricts": { + "description": "Text Yesterday Districts", + "type": "text", + "placeholders": {} + }, + "textSignificatOccurences": "Significant Occurrences", + "@textSignificatOccurences": { + "description": "Significant Occurences", + "type": "text", + "placeholders": {} + }, + "textOther": "Other", + "@textOther": { + "description": "Other", + "type": "text", + "placeholders": {} + }, + "textResources": "Resources", + "@textResources": { + "description": "Resources", + "type": "text", + "placeholders": {} + }, + "textRiskOfFire": "Risk of Fire", + "@textRiskOfFire": { + "description": "Risk of Fire", + "type": "text", + "placeholders": {} + }, + "textNow": "Now", + "@textNow": { + "description": "Now", + "type": "text", + "placeholders": {} + }, + "textToday": "Today", + "@textToday": { + "description": "Today", + "type": "text", + "placeholders": {} + }, + "textYesterday": "Yesterday", + "@textYesterday": { + "description": "Yesterday", + "type": "text", + "placeholders": {} + }, + "textLastNight": "Last Night", + "@textLastNight": { + "description": "Last Night", + "type": "text", + "placeholders": {} + }, + "textPreviousDays": "Last Few Days", + "@textPreviousDays": { + "description": "Last Few Days", + "type": "text", + "placeholders": {} + }, + "textRecordsFrom": "Data collected from", + "@textRecordsFrom": { + "description": "Data collected From", + "type": "text", + "placeholders": {} + }, + "textCivilProtection": "Portuguese Civil Protection Agency website", + "@textCivilProtection": { + "description": " Portuguese Civil Protection Agency website.", + "type": "text", + "placeholders": {} + }, + "textDataUpdate": "Data is updated in 2 minute intervals.", + "@textDataUpdate": { + "description": "Data is updated in 2 minute intervals.", + "type": "text", + "placeholders": {} + }, + "textLocationApproximate": "Location may not be exact.", + "@textLocationApproximate": { + "description": "Location may not be exact.", + "type": "text", + "placeholders": {} + }, + "textBugs": "Suggestions/Bug reporting -", + "@textBugs": { + "description": "Suggestions / Bug reporting -", + "type": "text", + "placeholders": {} + } } \ No newline at end of file diff --git a/lib/localization/generated/l10n/intl_messages_pt.arb b/lib/localization/generated/l10n/intl_messages_pt.arb index 18015e6..2667a22 100644 --- a/lib/localization/generated/l10n/intl_messages_pt.arb +++ b/lib/localization/generated/l10n/intl_messages_pt.arb @@ -1,7 +1,6 @@ { -"@@locale": "pt", - - "@@last_modified": "2019-05-15T22:26:36.979983", + "@@locale": "pt", + "@@last_modified": "2019-05-24T15:49:27.430395", "appTitle": "Fogos.pt", "@appTitle": { "description": "App title", @@ -20,6 +19,18 @@ "type": "text", "placeholders": {} }, + "textStatistics": "Estatísticas", + "@textStatistics": { + "description": "Texto de estatísticas - App Drawer", + "type": "text", + "placeholders": {} + }, + "textAbout": "Sobre", + "@textAbout": { + "description": "Texto de about - App Drawer", + "type": "text", + "placeholders": {} + }, "textCounty": "Concelho", "@textCounty": { "description": "County Text - List of Counties", @@ -38,13 +49,13 @@ "type": "text", "placeholders": {} }, - "textHumanMeans": "Meios humanos", + "textHumanMeans": "Bombeiros", "@textHumanMeans": { "description": "Human means label", "type": "text", "placeholders": {} }, - "textTerrainMeans": "Meios terrestres", + "textTerrainMeans": "Viaturas", "@textTerrainMeans": { "description": "Terrain means label", "type": "text", @@ -83,13 +94,16 @@ "textPartners": "Parcerias", "@textPartners": { "description": "Texto de Parcerias - App Drawer", + "type": "text", + "placeholders": {} + }, "textFireStatusArrival": "Chegada ao TO", "@textFireStatusArrival": { "description": "Fire status: arrival", "type": "text", "placeholders": {} }, - "textFireStatusDone": "Encerrada", + "textFireStatusDone": "Chegada ao TO", "@textFireStatusDone": { "description": "Fire status: done", "type": "text", @@ -148,5 +162,252 @@ "description": "Fire status: Dispatch", "type": "text", "placeholders": {} + }, + "textInformationIncidentStatus": "Estado das Ocorrências", + "@textInformationIncidentStatus": { + "description": "Incident Status", + "type": "text", + "placeholders": {} + }, + "textInformationFirstOrderDispatch": "Despacho de 1º alerta – Meios em trânsito para o teatro de operações.", + "@textInformationFirstOrderDispatch": { + "description": "Information Screen - First Order Dispatch", + "type": "text", + "placeholders": {} + }, + "textInformationArrival": "Chegada ao TO – chegada ao teatro de operações.", + "@textInformationArrival": { + "description": "Information Screen - Arrival", + "type": "text", + "placeholders": {} + }, + "textInformationOngoing": "Em curso - Incêndio em evolução sem limitação de área", + "@textInformationOngoing": { + "description": "Information Screen - Ongoing", + "type": "text", + "placeholders": {} + }, + "textInformationSettling": "Em resolução – Incêndio sem perigo de propagação para além do perímetro já atingido", + "@textInformationSettling": { + "description": "Information Screen - Settling", + "type": "text", + "placeholders": {} + }, + "textInformationClosing": "Em conclusão – Incêndio extinto, com pequenos focos de combustão dentro do perímetro do incêndio", + "@textInformationClosing": { + "description": "Information Screen - Closing", + "type": "text", + "placeholders": {} + }, + "textInformationSupervision": "Vigilância – Meios no local para actuar em caso de necessidade", + "@textInformationSupervision": { + "description": "InformationScreen - Supervision", + "type": "text", + "placeholders": {} + }, + "textInformationClosed": "Encerrada – Entrada, nas respectivas entidades, de todos os meios envolvidos", + "@textInformationClosed": { + "description": "Information Screen - Closed", + "type": "text", + "placeholders": {} + }, + "textFalseAlarm": "Falso alarme", + "@textFalseAlarm": { + "description": "False alarm", + "type": "text", + "placeholders": {} + }, + "textFalseAlert": "Falso alerta", + "@textFalseAlert": { + "description": "False Alert", + "type": "text", + "placeholders": {} + }, + "textShare": "Incêndio em {city} https://fogos.pt/fogo/{id}", + "@textShare": { + "description": "Share Text", + "type": "text", + "placeholders": { + "city": { + "example": "Grândola" + }, + "id": { + "example": "1" + } + } + }, + "textRiskReduced": "Reduzido", + "@textRiskReduced": { + "description": "Risk reduzed", + "type": "text", + "placeholders": {} + }, + "textRiskModerate": "Moderado", + "@textRiskModerate": { + "description": "Risk Moderate", + "type": "text", + "placeholders": {} + }, + "textRiskHigh": "Elevado", + "@textRiskHigh": { + "description": "High Risk", + "type": "text", + "placeholders": {} + }, + "textRiskVeryHigh": "Muito Elevado", + "@textRiskVeryHigh": { + "description": "Very high risk", + "type": "text", + "placeholders": {} + }, + "textMaximumRisk": "Máximo", + "@textMaximumRisk": { + "description": "Maximum Risk", + "type": "text", + "placeholders": {} + }, + "textFires": "Incêndios", + "@textFires": { + "description": "Text Fires", + "type": "text", + "placeholders": {} + }, + "textFireman": "Bombeiros", + "@textFireman": { + "description": "Fireman", + "type": "text", + "placeholders": {} + }, + "textVehicles": "Veículos", + "@textVehicles": { + "description": "Vehicles", + "type": "text", + "placeholders": {} + }, + "textAerial": "Aéreos", + "@textAerial": { + "description": "Text Aerial", + "type": "text", + "placeholders": {} + }, + "textLastNightStatistics": "Estatísticas da última noite", + "@textLastNightStatistics": { + "description": "Last Night Statísticas", + "type": "text", + "placeholders": {} + }, + "textTodayInterval": "Intervalo do dia", + "@textTodayInterval": { + "description": "Text today Interval", + "type": "text", + "placeholders": {} + }, + "textTodayDistricts": "Distritos do dia", + "@textTodayDistricts": { + "description": "Text today Districts", + "type": "text", + "placeholders": {} + }, + "textTotal": "Total", + "@textTotal": { + "description": "Total", + "type": "text", + "placeholders": {} + }, + "textYesterdayInterval": "Intervalo de ontem", + "@textYesterdayInterval": { + "description": "Text Yesterday Interval", + "type": "text", + "placeholders": {} + }, + "textYesterdayDistricts": "Distritos de ontem", + "@textYesterdayDistricts": { + "description": "Text Yesterday Districts", + "type": "text", + "placeholders": {} + }, + "textSignificatOccurences": "Ocorrências significativas", + "@textSignificatOccurences": { + "description": "Significant Occurences", + "type": "text", + "placeholders": {} + }, + "textOther": "Outras", + "@textOther": { + "description": "Other", + "type": "text", + "placeholders": {} + }, + "textResources": "Meios", + "@textResources": { + "description": "Resources", + "type": "text", + "placeholders": {} + }, + "textRiskOfFire": "Risco de Incêndio", + "@textRiskOfFire": { + "description": "Risk of Fire", + "type": "text", + "placeholders": {} + }, + "textNow": "Agora", + "@textNow": { + "description": "Now", + "type": "text", + "placeholders": {} + }, + "textToday": "Hoje", + "@textToday": { + "description": "Today", + "type": "text", + "placeholders": {} + }, + "textYesterday": "Ontem", + "@textYesterday": { + "description": "Yesterday", + "type": "text", + "placeholders": {} + }, + "textLastNight": "Última Noite", + "@textLastNight": { + "description": "Last Night", + "type": "text", + "placeholders": {} + }, + "textPreviousDays": "Últimos Dias", + "@textPreviousDays": { + "description": "Last Few Days", + "type": "text", + "placeholders": {} + }, + "textRecordsFrom": "Registos retirados da", + "@textRecordsFrom": { + "description": "Data collected From", + "type": "text", + "placeholders": {} + }, + "textCivilProtection": " Página da Protecção Civil Portuguesa.", + "@textCivilProtection": { + "description": "Portuguese Civil Protection Agency website.", + "type": "text", + "placeholders": {} + }, + "textDataUpdate": "Actualizações de 2 em 2 minutos.", + "@textDataUpdate": { + "description": "Data is updated in 2 minute intervals.", + "type": "text", + "placeholders": {} + }, + "textLocationApproximate": "Localização aproximada.", + "@textLocationApproximate": { + "description": "Location may not be exact.", + "type": "text", + "placeholders": {} + }, + "textBugs": "Sugestões/Bugs -", + "@textBugs": { + "description": "Suggestions / Bug reporting -", + "type": "text", + "placeholders": {} } } \ No newline at end of file diff --git a/lib/localization/generated/l10n/messages_all.dart b/lib/localization/generated/l10n/messages_all.dart index 17aa1fe..74c6476 100644 --- a/lib/localization/generated/l10n/messages_all.dart +++ b/lib/localization/generated/l10n/messages_all.dart @@ -9,15 +9,13 @@ import 'package:intl/message_lookup_by_library.dart'; // ignore: implementation_imports import 'package:intl/src/intl_helpers.dart'; -import 'messages_en.dart' as messages_en; -import 'messages_pt.dart' as messages_pt; +import 'messages_en.dart' deferred as messages_en; +import 'messages_pt.dart' deferred as messages_pt; typedef Future LibraryLoader(); Map _deferredLibraries = { -// ignore: unnecessary_new - 'en': () => new Future.value(null), -// ignore: unnecessary_new - 'pt': () => new Future.value(null), + 'en': () => messages_en.loadLibrary(), + 'pt': () => messages_pt.loadLibrary(), }; MessageLookupByLibrary _findExact(localeName) { @@ -34,8 +32,9 @@ MessageLookupByLibrary _findExact(localeName) { /// User programs should call this before using [localeName] for messages. Future initializeMessages(String localeName) async { var availableLocale = Intl.verifiedLocale( - localeName, (locale) => _deferredLibraries[locale] != null, - onFailure: (_) => null); + localeName, + (locale) => _deferredLibraries[locale] != null, + onFailure: (_) => null); if (availableLocale == null) { // ignore: unnecessary_new return new Future.value(false); @@ -59,8 +58,8 @@ bool _messagesExistFor(String locale) { } MessageLookupByLibrary _findGeneratedMessagesFor(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/lib/localization/generated/l10n/messages_en.dart b/lib/localization/generated/l10n/messages_en.dart index 0a8cef8..4f496c4 100644 --- a/lib/localization/generated/l10n/messages_en.dart +++ b/lib/localization/generated/l10n/messages_en.dart @@ -18,43 +18,76 @@ typedef MessageIfAbsent(String message_str, List args); class MessageLookup extends MessageLookupByLibrary { get localeName => 'en'; + static m0(city, id) => "Fire in ${city} https://fogos.pt/fogo/${id}"; + final messages = _notInlinedMessages(_notInlinedMessages); - static _notInlinedMessages(_) => { - "appTitle": MessageLookupByLibrary.simpleMessage("Fogos.pt"), - "textAerealMeans": MessageLookupByLibrary.simpleMessage("Aereal Means"), - "textCounty": MessageLookupByLibrary.simpleMessage("County"), - "textEmptyNotifications": MessageLookupByLibrary.simpleMessage( - "You don\'t have any active notifications for Fires"), - "textFireStatusArrival": - MessageLookupByLibrary.simpleMessage("Ground arrival"), - "textFireStatusConclusion": - MessageLookupByLibrary.simpleMessage("In conclusion"), - "textFireStatusDispatch": - MessageLookupByLibrary.simpleMessage("Dispatch"), - "textFireStatusDone": MessageLookupByLibrary.simpleMessage("Done"), - "textFireStatusFalseAlarm": - MessageLookupByLibrary.simpleMessage("False Alarm"), - "textFireStatusFalseAlert": - MessageLookupByLibrary.simpleMessage("False Alert"), - "textFireStatusFirstAlert": - MessageLookupByLibrary.simpleMessage("First alert dispatch"), - "textFireStatusOngoing": - MessageLookupByLibrary.simpleMessage("Ongoing"), - "textFireStatusResolution": - MessageLookupByLibrary.simpleMessage("In resolution"), - "textFireStatusSignificativeOcurrence": - MessageLookupByLibrary.simpleMessage("Significative Ocurrence"), - "textFireStatusVigilance": - MessageLookupByLibrary.simpleMessage("Vigilance"), - "textHumanMeans": MessageLookupByLibrary.simpleMessage("Human means"), - "textMapboxImprove": - MessageLookupByLibrary.simpleMessage("Improve this map"), - "textNotifications": - MessageLookupByLibrary.simpleMessage("Notifications"), - "textInformations": - MessageLookupByLibrary.simpleMessage("Informations"), - "textStatus": MessageLookupByLibrary.simpleMessage("Status"), - "textTerrainMeans": - MessageLookupByLibrary.simpleMessage("Terrain means") - }; + static _notInlinedMessages(_) => { + "appTitle" : MessageLookupByLibrary.simpleMessage("Fogos.pt"), + "textAbout" : MessageLookupByLibrary.simpleMessage("About"), + "textAerealMeans" : MessageLookupByLibrary.simpleMessage("Aerial Resources"), + "textAerial" : MessageLookupByLibrary.simpleMessage("Aerial"), + "textBugs" : MessageLookupByLibrary.simpleMessage("Suggestions/Bug reporting -"), + "textCivilProtection" : MessageLookupByLibrary.simpleMessage("Portuguese Civil Protection Agency website"), + "textCounty" : MessageLookupByLibrary.simpleMessage("County"), + "textDataUpdate" : MessageLookupByLibrary.simpleMessage("Data is updated in 2 minute intervals."), + "textEmptyNotifications" : MessageLookupByLibrary.simpleMessage("You don\'t have any active notifications for Fires"), + "textFalseAlarm" : MessageLookupByLibrary.simpleMessage("False alarm"), + "textFalseAlert" : MessageLookupByLibrary.simpleMessage("False Alert"), + "textFireStatusArrival" : MessageLookupByLibrary.simpleMessage("Ground arrival"), + "textFireStatusConclusion" : MessageLookupByLibrary.simpleMessage("In conclusion"), + "textFireStatusDispatch" : MessageLookupByLibrary.simpleMessage("Dispatch"), + "textFireStatusDone" : MessageLookupByLibrary.simpleMessage("Done"), + "textFireStatusFalseAlarm" : MessageLookupByLibrary.simpleMessage("False Alarm"), + "textFireStatusFalseAlert" : MessageLookupByLibrary.simpleMessage("False Alert"), + "textFireStatusFirstAlert" : MessageLookupByLibrary.simpleMessage("First alert dispatch"), + "textFireStatusOngoing" : MessageLookupByLibrary.simpleMessage("Ongoing"), + "textFireStatusResolution" : MessageLookupByLibrary.simpleMessage("In resolution"), + "textFireStatusSignificativeOcurrence" : MessageLookupByLibrary.simpleMessage("Significative Ocurrence"), + "textFireStatusVigilance" : MessageLookupByLibrary.simpleMessage("Vigilance"), + "textFireman" : MessageLookupByLibrary.simpleMessage("Firemen"), + "textFires" : MessageLookupByLibrary.simpleMessage("Fires"), + "textHumanMeans" : MessageLookupByLibrary.simpleMessage("Firemen"), + "textInformationArrival" : MessageLookupByLibrary.simpleMessage("Arrival to Incident Scene - Resources arrived at incidient location."), + "textInformationClosed" : MessageLookupByLibrary.simpleMessage("Closed - All resources are back at their headquarters."), + "textInformationClosing" : MessageLookupByLibrary.simpleMessage("Closing - Fire is extinguished, while there could be still some fire spots within incident boundaries"), + "textInformationFirstOrderDispatch" : MessageLookupByLibrary.simpleMessage("First alert dispatch - Resources are moving to incident location."), + "textInformationIncidentStatus" : MessageLookupByLibrary.simpleMessage("Incident Status"), + "textInformationOngoing" : MessageLookupByLibrary.simpleMessage("Ongoing - Fire is ongoing without boundaries"), + "textInformationSettling" : MessageLookupByLibrary.simpleMessage("Settling - Fire without risk of propagation beyond boundaries"), + "textInformationSupervision" : MessageLookupByLibrary.simpleMessage("Supervision - Resources at incident location to act if needed"), + "textInformations" : MessageLookupByLibrary.simpleMessage("Informations"), + "textLastNight" : MessageLookupByLibrary.simpleMessage("Last Night"), + "textLastNightStatistics" : MessageLookupByLibrary.simpleMessage("Last Night Statistics"), + "textLocationApproximate" : MessageLookupByLibrary.simpleMessage("Location may not be exact."), + "textMapboxImprove" : MessageLookupByLibrary.simpleMessage("Improve this map"), + "textMaximumRisk" : MessageLookupByLibrary.simpleMessage("Maximum"), + "textNoConnection" : MessageLookupByLibrary.simpleMessage("We were unnable to connect to the server"), + "textNotifications" : MessageLookupByLibrary.simpleMessage("Notifications"), + "textNow" : MessageLookupByLibrary.simpleMessage("Now"), + "textOther" : MessageLookupByLibrary.simpleMessage("Other"), + "textPartners" : MessageLookupByLibrary.simpleMessage("Partners"), + "textPreviousDays" : MessageLookupByLibrary.simpleMessage("Last Few Days"), + "textRecordsFrom" : MessageLookupByLibrary.simpleMessage("Data collected from"), + "textRefreshButton" : MessageLookupByLibrary.simpleMessage("Refresh"), + "textResources" : MessageLookupByLibrary.simpleMessage("Resources"), + "textRiskHigh" : MessageLookupByLibrary.simpleMessage("High"), + "textRiskModerate" : MessageLookupByLibrary.simpleMessage("Moderate"), + "textRiskOfFire" : MessageLookupByLibrary.simpleMessage("Risk of Fire"), + "textRiskReduced" : MessageLookupByLibrary.simpleMessage("Reduced"), + "textRiskVeryHigh" : MessageLookupByLibrary.simpleMessage("Very High"), + "textShare" : m0, + "textSignificatOccurences" : MessageLookupByLibrary.simpleMessage("Significant Occurrences"), + "textStatistics" : MessageLookupByLibrary.simpleMessage("Statistics"), + "textStatus" : MessageLookupByLibrary.simpleMessage("Status"), + "textTerrainMeans" : MessageLookupByLibrary.simpleMessage("Vehicles"), + "textToday" : MessageLookupByLibrary.simpleMessage("Today"), + "textTodayDistricts" : MessageLookupByLibrary.simpleMessage("Today\'s District"), + "textTodayInterval" : MessageLookupByLibrary.simpleMessage("Today\'s Interval"), + "textTotal" : MessageLookupByLibrary.simpleMessage("Total"), + "textVehicles" : MessageLookupByLibrary.simpleMessage("Vehicles"), + "textWarnings" : MessageLookupByLibrary.simpleMessage("Warnings"), + "textYesterday" : MessageLookupByLibrary.simpleMessage("Yesterday"), + "textYesterdayDistricts" : MessageLookupByLibrary.simpleMessage("Yesterday\'s Districts"), + "textYesterdayInterval" : MessageLookupByLibrary.simpleMessage("Yesterday\'s Interval") + }; } diff --git a/lib/localization/generated/l10n/messages_messages_en.dart b/lib/localization/generated/l10n/messages_messages_en.dart new file mode 100644 index 0000000..0aaa362 --- /dev/null +++ b/lib/localization/generated/l10n/messages_messages_en.dart @@ -0,0 +1,93 @@ +// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart +// This is a library that provides messages for a messages_en locale. All the +// messages from the main program should be duplicated here with the same +// function name. + +import 'package:intl/intl.dart'; +import 'package:intl/message_lookup_by_library.dart'; + +// ignore: unnecessary_new +final messages = new MessageLookup(); + +// ignore: unused_element +final _keepAnalysisHappy = Intl.defaultLocale; + +// ignore: non_constant_identifier_names +typedef MessageIfAbsent(String message_str, List args); + +class MessageLookup extends MessageLookupByLibrary { + get localeName => 'messages_en'; + + static m0(city, id) => "Fire in ${city} https://fogos.pt/fogo/${id}"; + + final messages = _notInlinedMessages(_notInlinedMessages); + static _notInlinedMessages(_) => { + "appTitle" : MessageLookupByLibrary.simpleMessage("Fogos.pt"), + "textAbout" : MessageLookupByLibrary.simpleMessage("About"), + "textAerealMeans" : MessageLookupByLibrary.simpleMessage("Aerial Resources"), + "textAerial" : MessageLookupByLibrary.simpleMessage("Aerial"), + "textBugs" : MessageLookupByLibrary.simpleMessage("Suggestions / Bug reporting -"), + "textCivilProtection" : MessageLookupByLibrary.simpleMessage("Portuguese Civil Protection Agency website"), + "textCounty" : MessageLookupByLibrary.simpleMessage("County"), + "textDataUpdate" : MessageLookupByLibrary.simpleMessage("Data is updated in 2 minute intervals."), + "textEmptyNotifications" : MessageLookupByLibrary.simpleMessage("You don\'t have any active notifications for Fires"), + "textFalseAlarm" : MessageLookupByLibrary.simpleMessage("False alarm"), + "textFalseAlert" : MessageLookupByLibrary.simpleMessage("False Alert"), + "textFireStatusArrival" : MessageLookupByLibrary.simpleMessage("Ground arrival"), + "textFireStatusConclusion" : MessageLookupByLibrary.simpleMessage("In conclusion"), + "textFireStatusDispatch" : MessageLookupByLibrary.simpleMessage("Dispatch"), + "textFireStatusDone" : MessageLookupByLibrary.simpleMessage("Done"), + "textFireStatusFalseAlarm" : MessageLookupByLibrary.simpleMessage("False Alarm"), + "textFireStatusFalseAlert" : MessageLookupByLibrary.simpleMessage("False Alert"), + "textFireStatusFirstAlert" : MessageLookupByLibrary.simpleMessage("First alert dispatch"), + "textFireStatusOngoing" : MessageLookupByLibrary.simpleMessage("Ongoing"), + "textFireStatusResolution" : MessageLookupByLibrary.simpleMessage("In resolution"), + "textFireStatusSignificativeOcurrence" : MessageLookupByLibrary.simpleMessage("Significative Ocurrence"), + "textFireStatusVigilance" : MessageLookupByLibrary.simpleMessage("Vigilance"), + "textFireman" : MessageLookupByLibrary.simpleMessage("Firemen"), + "textFires" : MessageLookupByLibrary.simpleMessage("Fires"), + "textHumanMeans" : MessageLookupByLibrary.simpleMessage("Firemen"), + "textInformationArrival" : MessageLookupByLibrary.simpleMessage("Arrival to Incident Scene - Resources arrived at incidient location."), + "textInformationClosed" : MessageLookupByLibrary.simpleMessage("Closed - All resources are back at their headquarters."), + "textInformationClosing" : MessageLookupByLibrary.simpleMessage("Closing - Fire is extinguished, while there could be still some fire spots within incident boundaries"), + "textInformationFirstOrderDispatch" : MessageLookupByLibrary.simpleMessage("First alert dispatch - Resources are moving to incident location."), + "textInformationIncidentStatus" : MessageLookupByLibrary.simpleMessage("Incident Status"), + "textInformationOngoing" : MessageLookupByLibrary.simpleMessage("Ongoing - Fire is ongoing without boundaries"), + "textInformationSettling" : MessageLookupByLibrary.simpleMessage("Settling - Fire without risk of propagation beyond boundaries"), + "textInformationSupervision" : MessageLookupByLibrary.simpleMessage("Supervision - Resources at incident location to act if needed"), + "textInformations" : MessageLookupByLibrary.simpleMessage("Informations"), + "textLastNight" : MessageLookupByLibrary.simpleMessage("Last Night"), + "textLastNightStatistics" : MessageLookupByLibrary.simpleMessage("Last Night Statistics"), + "textLocationApproximate" : MessageLookupByLibrary.simpleMessage("Location may not be exact."), + "textMapboxImprove" : MessageLookupByLibrary.simpleMessage("Improve this map"), + "textMaximumRisk" : MessageLookupByLibrary.simpleMessage("Maximum"), + "textNoConnection" : MessageLookupByLibrary.simpleMessage("We were unnable to connect to the server"), + "textNotifications" : MessageLookupByLibrary.simpleMessage("Notifications"), + "textNow" : MessageLookupByLibrary.simpleMessage("Now"), + "textOther" : MessageLookupByLibrary.simpleMessage("Other"), + "textPartners" : MessageLookupByLibrary.simpleMessage("Partners"), + "textPreviousDays" : MessageLookupByLibrary.simpleMessage("Last Few Days"), + "textRecordsFrom" : MessageLookupByLibrary.simpleMessage("Data collected from"), + "textRefreshButton" : MessageLookupByLibrary.simpleMessage("Refresh"), + "textResources" : MessageLookupByLibrary.simpleMessage("Resources"), + "textRiskHigh" : MessageLookupByLibrary.simpleMessage("High"), + "textRiskModerate" : MessageLookupByLibrary.simpleMessage("Moderate"), + "textRiskOfFire" : MessageLookupByLibrary.simpleMessage("Risk of Fire"), + "textRiskReduced" : MessageLookupByLibrary.simpleMessage("Reduced"), + "textRiskVeryHigh" : MessageLookupByLibrary.simpleMessage("Very High"), + "textShare" : m0, + "textSignificatOccurences" : MessageLookupByLibrary.simpleMessage("Significant Occurrences"), + "textStatistics" : MessageLookupByLibrary.simpleMessage("Statistics"), + "textStatus" : MessageLookupByLibrary.simpleMessage("Status"), + "textTerrainMeans" : MessageLookupByLibrary.simpleMessage("Vehicles"), + "textToday" : MessageLookupByLibrary.simpleMessage("Today"), + "textTodayDistricts" : MessageLookupByLibrary.simpleMessage("Today\'s District"), + "textTodayInterval" : MessageLookupByLibrary.simpleMessage("Today\'s Interval"), + "textTotal" : MessageLookupByLibrary.simpleMessage("Total"), + "textVehicles" : MessageLookupByLibrary.simpleMessage("Vehicles"), + "textWarnings" : MessageLookupByLibrary.simpleMessage("Warnings"), + "textYesterday" : MessageLookupByLibrary.simpleMessage("Yesterday"), + "textYesterdayDistricts" : MessageLookupByLibrary.simpleMessage("Yesterday\'s Districts"), + "textYesterdayInterval" : MessageLookupByLibrary.simpleMessage("Yesterday\'s Interval") + }; +} diff --git a/lib/localization/generated/l10n/messages_messages_pt.dart b/lib/localization/generated/l10n/messages_messages_pt.dart new file mode 100644 index 0000000..e1b3a01 --- /dev/null +++ b/lib/localization/generated/l10n/messages_messages_pt.dart @@ -0,0 +1,93 @@ +// DO NOT EDIT. This is code generated via package:intl/generate_localized.dart +// This is a library that provides messages for a messages_pt locale. All the +// messages from the main program should be duplicated here with the same +// function name. + +import 'package:intl/intl.dart'; +import 'package:intl/message_lookup_by_library.dart'; + +// ignore: unnecessary_new +final messages = new MessageLookup(); + +// ignore: unused_element +final _keepAnalysisHappy = Intl.defaultLocale; + +// ignore: non_constant_identifier_names +typedef MessageIfAbsent(String message_str, List args); + +class MessageLookup extends MessageLookupByLibrary { + get localeName => 'messages_pt'; + + static m0(city, id) => "Incêndio em ${city} https://fogos.pt/fogo/${id}"; + + final messages = _notInlinedMessages(_notInlinedMessages); + static _notInlinedMessages(_) => { + "appTitle" : MessageLookupByLibrary.simpleMessage("Fogos.pt"), + "textAbout" : MessageLookupByLibrary.simpleMessage("Sobre"), + "textAerealMeans" : MessageLookupByLibrary.simpleMessage("Meios aéreos"), + "textAerial" : MessageLookupByLibrary.simpleMessage("Aéreos"), + "textBugs" : MessageLookupByLibrary.simpleMessage("Sugestões / Bugs -"), + "textCivilProtection" : MessageLookupByLibrary.simpleMessage("Página da Protecção Civil Portuguesa."), + "textCounty" : MessageLookupByLibrary.simpleMessage("Concelho"), + "textDataUpdate" : MessageLookupByLibrary.simpleMessage("Actualizações de 2 em 2 minutos."), + "textEmptyNotifications" : MessageLookupByLibrary.simpleMessage("Não tem notificações ativas para fogos"), + "textFalseAlarm" : MessageLookupByLibrary.simpleMessage("Falso alarme"), + "textFalseAlert" : MessageLookupByLibrary.simpleMessage("Falso alerta"), + "textFireStatusArrival" : MessageLookupByLibrary.simpleMessage("Chegada ao TO"), + "textFireStatusConclusion" : MessageLookupByLibrary.simpleMessage("Conclusão"), + "textFireStatusDispatch" : MessageLookupByLibrary.simpleMessage("Despacho"), + "textFireStatusDone" : MessageLookupByLibrary.simpleMessage("Chegada ao TO"), + "textFireStatusFalseAlarm" : MessageLookupByLibrary.simpleMessage("Falso Alarme"), + "textFireStatusFalseAlert" : MessageLookupByLibrary.simpleMessage("Falso Alerta"), + "textFireStatusFirstAlert" : MessageLookupByLibrary.simpleMessage("Despacho de 1º Alerta"), + "textFireStatusOngoing" : MessageLookupByLibrary.simpleMessage("Em curso"), + "textFireStatusResolution" : MessageLookupByLibrary.simpleMessage("Em resolução"), + "textFireStatusSignificativeOcurrence" : MessageLookupByLibrary.simpleMessage("Ocorrência Significativa"), + "textFireStatusVigilance" : MessageLookupByLibrary.simpleMessage("Vigilância"), + "textFireman" : MessageLookupByLibrary.simpleMessage("Bombeiros"), + "textFires" : MessageLookupByLibrary.simpleMessage("Incêndios"), + "textHumanMeans" : MessageLookupByLibrary.simpleMessage("Bombeiros"), + "textInformationArrival" : MessageLookupByLibrary.simpleMessage("Chegada ao TO – chegada ao teatro de operações."), + "textInformationClosed" : MessageLookupByLibrary.simpleMessage("Encerrada – Entrada, nas respectivas entidades, de todos os meios envolvidos"), + "textInformationClosing" : MessageLookupByLibrary.simpleMessage("Em conclusão – Incêndio extinto, com pequenos focos de combustão dentro do perímetro do incêndio"), + "textInformationFirstOrderDispatch" : MessageLookupByLibrary.simpleMessage("Despacho de 1º alerta – Meios em trânsito para o teatro de operações."), + "textInformationIncidentStatus" : MessageLookupByLibrary.simpleMessage("Estado das Ocorrências"), + "textInformationOngoing" : MessageLookupByLibrary.simpleMessage("Em curso - Incêndio em evolução sem limitação de área"), + "textInformationSettling" : MessageLookupByLibrary.simpleMessage("Em resolução – Incêndio sem perigo de propagação para além do perímetro já atingido"), + "textInformationSupervision" : MessageLookupByLibrary.simpleMessage("Vigilância – Meios no local para actuar em caso de necessidade"), + "textInformations" : MessageLookupByLibrary.simpleMessage("Informações"), + "textLastNight" : MessageLookupByLibrary.simpleMessage("Última Noite"), + "textLastNightStatistics" : MessageLookupByLibrary.simpleMessage("Estatísticas da última noite"), + "textLocationApproximate" : MessageLookupByLibrary.simpleMessage("Localização aproximada."), + "textMapboxImprove" : MessageLookupByLibrary.simpleMessage("Melhorar este mapa"), + "textMaximumRisk" : MessageLookupByLibrary.simpleMessage("Máximo"), + "textNoConnection" : MessageLookupByLibrary.simpleMessage("Não foi possível fazer a ligação"), + "textNotifications" : MessageLookupByLibrary.simpleMessage("Notificações"), + "textNow" : MessageLookupByLibrary.simpleMessage("Agora"), + "textOther" : MessageLookupByLibrary.simpleMessage("Outras"), + "textPartners" : MessageLookupByLibrary.simpleMessage("Parcerias"), + "textPreviousDays" : MessageLookupByLibrary.simpleMessage("Últimos Dias"), + "textRecordsFrom" : MessageLookupByLibrary.simpleMessage("Registos retirados da"), + "textRefreshButton" : MessageLookupByLibrary.simpleMessage("Refrescar"), + "textResources" : MessageLookupByLibrary.simpleMessage("Meios"), + "textRiskHigh" : MessageLookupByLibrary.simpleMessage("Elevado"), + "textRiskModerate" : MessageLookupByLibrary.simpleMessage("Moderado"), + "textRiskOfFire" : MessageLookupByLibrary.simpleMessage("Risco de Incêndio"), + "textRiskReduced" : MessageLookupByLibrary.simpleMessage("Reduzido"), + "textRiskVeryHigh" : MessageLookupByLibrary.simpleMessage("Muito Elevado"), + "textShare" : m0, + "textSignificatOccurences" : MessageLookupByLibrary.simpleMessage("Ocorrências significativas"), + "textStatistics" : MessageLookupByLibrary.simpleMessage("Estatísticas"), + "textStatus" : MessageLookupByLibrary.simpleMessage("Estado"), + "textTerrainMeans" : MessageLookupByLibrary.simpleMessage("Viaturas"), + "textToday" : MessageLookupByLibrary.simpleMessage("Hoje"), + "textTodayDistricts" : MessageLookupByLibrary.simpleMessage("Distritos do dia"), + "textTodayInterval" : MessageLookupByLibrary.simpleMessage("Intervalo do dia"), + "textTotal" : MessageLookupByLibrary.simpleMessage("Total"), + "textVehicles" : MessageLookupByLibrary.simpleMessage("Veículos"), + "textWarnings" : MessageLookupByLibrary.simpleMessage("Avisos"), + "textYesterday" : MessageLookupByLibrary.simpleMessage("Ontem"), + "textYesterdayDistricts" : MessageLookupByLibrary.simpleMessage("Distritos de ontem"), + "textYesterdayInterval" : MessageLookupByLibrary.simpleMessage("Intervalo de ontem") + }; +} diff --git a/lib/localization/generated/l10n/messages_pt.dart b/lib/localization/generated/l10n/messages_pt.dart index 9fbda85..ae0968f 100644 --- a/lib/localization/generated/l10n/messages_pt.dart +++ b/lib/localization/generated/l10n/messages_pt.dart @@ -18,47 +18,76 @@ typedef MessageIfAbsent(String message_str, List args); class MessageLookup extends MessageLookupByLibrary { get localeName => 'pt'; + static m0(city, id) => "Incêndio em ${city} https://fogos.pt/fogo/${id}"; + final messages = _notInlinedMessages(_notInlinedMessages); - static _notInlinedMessages(_) => { - "appTitle": MessageLookupByLibrary.simpleMessage("Fogos.pt"), - "textAerealMeans": MessageLookupByLibrary.simpleMessage("Meios aéreos"), - "textCounty": MessageLookupByLibrary.simpleMessage("Concelho"), - "textEmptyNotifications": MessageLookupByLibrary.simpleMessage( - "Não tem notificações ativas para fogos"), - "textFireStatusArrival": - MessageLookupByLibrary.simpleMessage("Chegada ao TO"), - "textFireStatusConclusion": - MessageLookupByLibrary.simpleMessage("Conclusão"), - "textFireStatusDispatch": - MessageLookupByLibrary.simpleMessage("Despacho"), - "textFireStatusDone": MessageLookupByLibrary.simpleMessage("Encerrada"), - "textFireStatusFalseAlarm": - MessageLookupByLibrary.simpleMessage("Falso Alarme"), - "textFireStatusFalseAlert": - MessageLookupByLibrary.simpleMessage("Falso Alerta"), - "textFireStatusFirstAlert": - MessageLookupByLibrary.simpleMessage("Despacho de 1º Alerta"), - "textFireStatusOngoing": - MessageLookupByLibrary.simpleMessage("Em curso"), - "textFireStatusResolution": - MessageLookupByLibrary.simpleMessage("Em resolução"), - "textFireStatusSignificativeOcurrence": - MessageLookupByLibrary.simpleMessage("Ocorrência Significativa"), - "textFireStatusVigilance": - MessageLookupByLibrary.simpleMessage("Vigilância"), - "textHumanMeans": MessageLookupByLibrary.simpleMessage("Meios humanos"), - "textInformations": MessageLookupByLibrary.simpleMessage("Informações"), - "textMapboxImprove": - MessageLookupByLibrary.simpleMessage("Melhorar este mapa"), - "textNoConnection": MessageLookupByLibrary.simpleMessage( - "Não foi possível fazer a ligação"), - "textNotifications": - MessageLookupByLibrary.simpleMessage("Notificações"), - "textPartners": MessageLookupByLibrary.simpleMessage("Parcerias"), - "textRefreshButton": MessageLookupByLibrary.simpleMessage("Refrescar"), - "textStatus": MessageLookupByLibrary.simpleMessage("Estado"), - "textTerrainMeans": - MessageLookupByLibrary.simpleMessage("Meios terrestres"), - "textWarnings": MessageLookupByLibrary.simpleMessage("Avisos") - }; + static _notInlinedMessages(_) => { + "appTitle" : MessageLookupByLibrary.simpleMessage("Fogos.pt"), + "textAbout" : MessageLookupByLibrary.simpleMessage("Sobre"), + "textAerealMeans" : MessageLookupByLibrary.simpleMessage("Meios aéreos"), + "textAerial" : MessageLookupByLibrary.simpleMessage("Aéreos"), + "textBugs" : MessageLookupByLibrary.simpleMessage("Sugestões/Bugs -"), + "textCivilProtection" : MessageLookupByLibrary.simpleMessage(" Página da Protecção Civil Portuguesa."), + "textCounty" : MessageLookupByLibrary.simpleMessage("Concelho"), + "textDataUpdate" : MessageLookupByLibrary.simpleMessage("Actualizações de 2 em 2 minutos."), + "textEmptyNotifications" : MessageLookupByLibrary.simpleMessage("Não tem notificações ativas para fogos"), + "textFalseAlarm" : MessageLookupByLibrary.simpleMessage("Falso alarme"), + "textFalseAlert" : MessageLookupByLibrary.simpleMessage("Falso alerta"), + "textFireStatusArrival" : MessageLookupByLibrary.simpleMessage("Chegada ao TO"), + "textFireStatusConclusion" : MessageLookupByLibrary.simpleMessage("Conclusão"), + "textFireStatusDispatch" : MessageLookupByLibrary.simpleMessage("Despacho"), + "textFireStatusDone" : MessageLookupByLibrary.simpleMessage("Chegada ao TO"), + "textFireStatusFalseAlarm" : MessageLookupByLibrary.simpleMessage("Falso Alarme"), + "textFireStatusFalseAlert" : MessageLookupByLibrary.simpleMessage("Falso Alerta"), + "textFireStatusFirstAlert" : MessageLookupByLibrary.simpleMessage("Despacho de 1º Alerta"), + "textFireStatusOngoing" : MessageLookupByLibrary.simpleMessage("Em curso"), + "textFireStatusResolution" : MessageLookupByLibrary.simpleMessage("Em resolução"), + "textFireStatusSignificativeOcurrence" : MessageLookupByLibrary.simpleMessage("Ocorrência Significativa"), + "textFireStatusVigilance" : MessageLookupByLibrary.simpleMessage("Vigilância"), + "textFireman" : MessageLookupByLibrary.simpleMessage("Bombeiros"), + "textFires" : MessageLookupByLibrary.simpleMessage("Incêndios"), + "textHumanMeans" : MessageLookupByLibrary.simpleMessage("Bombeiros"), + "textInformationArrival" : MessageLookupByLibrary.simpleMessage("Chegada ao TO – chegada ao teatro de operações."), + "textInformationClosed" : MessageLookupByLibrary.simpleMessage("Encerrada – Entrada, nas respectivas entidades, de todos os meios envolvidos"), + "textInformationClosing" : MessageLookupByLibrary.simpleMessage("Em conclusão – Incêndio extinto, com pequenos focos de combustão dentro do perímetro do incêndio"), + "textInformationFirstOrderDispatch" : MessageLookupByLibrary.simpleMessage("Despacho de 1º alerta – Meios em trânsito para o teatro de operações."), + "textInformationIncidentStatus" : MessageLookupByLibrary.simpleMessage("Estado das Ocorrências"), + "textInformationOngoing" : MessageLookupByLibrary.simpleMessage("Em curso - Incêndio em evolução sem limitação de área"), + "textInformationSettling" : MessageLookupByLibrary.simpleMessage("Em resolução – Incêndio sem perigo de propagação para além do perímetro já atingido"), + "textInformationSupervision" : MessageLookupByLibrary.simpleMessage("Vigilância – Meios no local para actuar em caso de necessidade"), + "textInformations" : MessageLookupByLibrary.simpleMessage("Informações"), + "textLastNight" : MessageLookupByLibrary.simpleMessage("Última Noite"), + "textLastNightStatistics" : MessageLookupByLibrary.simpleMessage("Estatísticas da última noite"), + "textLocationApproximate" : MessageLookupByLibrary.simpleMessage("Localização aproximada."), + "textMapboxImprove" : MessageLookupByLibrary.simpleMessage("Melhorar este mapa"), + "textMaximumRisk" : MessageLookupByLibrary.simpleMessage("Máximo"), + "textNoConnection" : MessageLookupByLibrary.simpleMessage("Não foi possível fazer a ligação"), + "textNotifications" : MessageLookupByLibrary.simpleMessage("Notificações"), + "textNow" : MessageLookupByLibrary.simpleMessage("Agora"), + "textOther" : MessageLookupByLibrary.simpleMessage("Outras"), + "textPartners" : MessageLookupByLibrary.simpleMessage("Parcerias"), + "textPreviousDays" : MessageLookupByLibrary.simpleMessage("Últimos Dias"), + "textRecordsFrom" : MessageLookupByLibrary.simpleMessage("Registos retirados da"), + "textRefreshButton" : MessageLookupByLibrary.simpleMessage("Refrescar"), + "textResources" : MessageLookupByLibrary.simpleMessage("Meios"), + "textRiskHigh" : MessageLookupByLibrary.simpleMessage("Elevado"), + "textRiskModerate" : MessageLookupByLibrary.simpleMessage("Moderado"), + "textRiskOfFire" : MessageLookupByLibrary.simpleMessage("Risco de Incêndio"), + "textRiskReduced" : MessageLookupByLibrary.simpleMessage("Reduzido"), + "textRiskVeryHigh" : MessageLookupByLibrary.simpleMessage("Muito Elevado"), + "textShare" : m0, + "textSignificatOccurences" : MessageLookupByLibrary.simpleMessage("Ocorrências significativas"), + "textStatistics" : MessageLookupByLibrary.simpleMessage("Estatísticas"), + "textStatus" : MessageLookupByLibrary.simpleMessage("Estado"), + "textTerrainMeans" : MessageLookupByLibrary.simpleMessage("Viaturas"), + "textToday" : MessageLookupByLibrary.simpleMessage("Hoje"), + "textTodayDistricts" : MessageLookupByLibrary.simpleMessage("Distritos do dia"), + "textTodayInterval" : MessageLookupByLibrary.simpleMessage("Intervalo do dia"), + "textTotal" : MessageLookupByLibrary.simpleMessage("Total"), + "textVehicles" : MessageLookupByLibrary.simpleMessage("Veículos"), + "textWarnings" : MessageLookupByLibrary.simpleMessage("Avisos"), + "textYesterday" : MessageLookupByLibrary.simpleMessage("Ontem"), + "textYesterdayDistricts" : MessageLookupByLibrary.simpleMessage("Distritos de ontem"), + "textYesterdayInterval" : MessageLookupByLibrary.simpleMessage("Intervalo de ontem") + }; } diff --git a/lib/main.dart b/lib/main.dart index f0d39e3..b9752cc 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -219,7 +219,7 @@ class _FirstPageState extends State with WidgetsBindingObserver { ), ), new ListTile( - title: new Text('Avisos'), + title: new Text(FogosLocalizations.of(context).textWarnings), onTap: () { Navigator.of(context).pop(); Navigator.of(context).pushNamed(WARNINGS_ROUTE); @@ -227,7 +227,7 @@ class _FirstPageState extends State with WidgetsBindingObserver { leading: Icon(Icons.warning), ), new ListTile( - title: new Text('Informações'), + title: new Text(FogosLocalizations.of(context).textInformations), onTap: () { Navigator.of(context).pop(); Navigator.of(context).pushNamed(INFO_ROUTE); @@ -235,7 +235,7 @@ class _FirstPageState extends State with WidgetsBindingObserver { leading: Icon(Icons.info), ), new ListTile( - title: new Text('Estatísticas'), + title: new Text(FogosLocalizations.of(context).textStatistics), onTap: () { Navigator.of(context).pop(); Navigator.of(context).pushNamed(STATISTICS_ROUTE); @@ -244,7 +244,7 @@ class _FirstPageState extends State with WidgetsBindingObserver { ), new Divider(), new ListTile( - title: new Text('Notificações'), + title: new Text(FogosLocalizations.of(context).textNotifications), onTap: () { Navigator.of(context).pop(); Navigator.of(context).pushNamed(SETTINGS_ROUTE); @@ -253,7 +253,7 @@ class _FirstPageState extends State with WidgetsBindingObserver { ), new Divider(), new ListTile( - title: new Text("Sobre"), + title: new Text(FogosLocalizations.of(context).textAbout), onTap: () { Navigator.of(context).pop(); Navigator.of(context).pushNamed(ABOUT_ROUTE); @@ -261,7 +261,7 @@ class _FirstPageState extends State with WidgetsBindingObserver { leading: Icon(Icons.person), ), new ListTile( - title: new Text("Parcerias"), + title: new Text(FogosLocalizations.of(context).textPartners), onTap: () { Navigator.of(context).pop(); Navigator.of(context).pushNamed(PARTNERS_ROUTE); diff --git a/lib/screens/about/about.dart b/lib/screens/about/about.dart index e95f47e..de49c87 100644 --- a/lib/screens/about/about.dart +++ b/lib/screens/about/about.dart @@ -1,6 +1,7 @@ import 'package:flutter/gestures.dart'; import 'package:flutter_redux/flutter_redux.dart'; import 'package:fogosmobile/actions/contributors_actions.dart'; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:fogosmobile/models/app_state.dart'; import 'package:fogosmobile/screens/about/contributor_item.dart'; import 'package:fogosmobile/screens/components/fire_gradient_app_bar.dart'; @@ -63,11 +64,11 @@ class About extends StatelessWidget { text: new TextSpan( children: [ new TextSpan( - text: 'Registos retirados da ', + text: FogosLocalizations.of(context).textRecordsFrom, style: new TextStyle(color: Colors.black), ), new TextSpan( - text: 'Página da Protecção Civil Portuguesa.', + text: FogosLocalizations.of(context).textCivilProtection, style: new TextStyle(color: Colors.blue), recognizer: new TapGestureRecognizer() ..onTap = () => launchURL('http://www.prociv.pt/'), @@ -78,11 +79,11 @@ class About extends StatelessWidget { ), Padding( padding: EdgeInsets.only(bottom: 8.0), - child: Text('Actualizações de 2 em 2 minutos.'), + child: Text(FogosLocalizations.of(context).textDataUpdate), ), Padding( padding: EdgeInsets.only(bottom: 8.0), - child: Text('Localização aproximada.'), + child: Text(FogosLocalizations.of(context).textLocationApproximate), ), Padding( padding: EdgeInsets.only(bottom: 8.0), @@ -90,7 +91,7 @@ class About extends StatelessWidget { text: new TextSpan( children: [ new TextSpan( - text: 'Sugestões / Bugs - ', + text: FogosLocalizations.of(context).textBugs, style: new TextStyle(color: Colors.black), ), new TextSpan( diff --git a/lib/screens/components/fireRisk.dart b/lib/screens/components/fireRisk.dart index 1f60639..0b1371d 100644 --- a/lib/screens/components/fireRisk.dart +++ b/lib/screens/components/fireRisk.dart @@ -1,21 +1,30 @@ import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:fogosmobile/models/app_state.dart'; import 'package:redux/redux.dart'; class FireRisk extends StatelessWidget { final TextStyle _body = TextStyle(color: Colors.white, fontSize: 20); - final List _riskList = [ - FireRiskStruct('Reduzidos', Color(0xff6ABF59)), - FireRiskStruct('Moderado', Color(0xffFFB202)), - FireRiskStruct('Elevado', Color(0xffFF6E02)), - FireRiskStruct('Muito Elevado', Color(0xffB81E1F)), - FireRiskStruct('Maximo ', Color(0xff711313)), - ]; + List _riskList; + + List generateStruct(BuildContext context) { + return [ + FireRiskStruct(FogosLocalizations.of(context).textRiskReduced, Color(0xff6ABF59)), + FireRiskStruct(FogosLocalizations.of(context).textRiskModerate, Color(0xffFFB202)), + FireRiskStruct(FogosLocalizations.of(context).textRiskHigh, Color(0xffFF6E02)), + FireRiskStruct(FogosLocalizations.of(context).textRiskVeryHigh, Color(0xffB81E1F)), + FireRiskStruct(FogosLocalizations.of(context).textMaximumRisk, Color(0xff711313)), + ]; + } @override Widget build(BuildContext context) { + if (_riskList == null) { + _riskList = generateStruct(context); + } + return StoreConnector( converter: (Store store) => store.state.fireRisk, builder: (BuildContext context, String stats) { diff --git a/lib/screens/components/fire_details.dart b/lib/screens/components/fire_details.dart index 4393d7c..766af53 100644 --- a/lib/screens/components/fire_details.dart +++ b/lib/screens/components/fire_details.dart @@ -106,7 +106,7 @@ class FireDetails extends StatelessWidget { icon: Icon(Icons.share), onPressed: () { Share.share( - 'Incêndio em ${fire.city} https://fogos.pt/fogo/${fire.id}'); + FogosLocalizations.of(context).textShare(fire.city, fire.id)); }, ), SizedBox(width: 8), @@ -230,7 +230,7 @@ class FireDetails extends StatelessWidget { .stretch, children: [ Text( - '${FogosLocalizations.of(context).textStatus}: ${fire.status}', + '${FogosLocalizations.of(context).textStatus}: ${FogosLocalizations.of(context).textFireStatus(fire.status)}', style: TextStyle( fontSize: 16.0), ), diff --git a/lib/screens/components/lastHoursStatistics.dart b/lib/screens/components/lastHoursStatistics.dart index 4f4639b..116aefc 100644 --- a/lib/screens/components/lastHoursStatistics.dart +++ b/lib/screens/components/lastHoursStatistics.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:fogosmobile/models/app_state.dart'; import 'package:fogosmobile/models/statistics.dart'; import 'package:charts_flutter/flutter.dart' as charts; @@ -18,28 +19,28 @@ class LastHoursStatistics extends StatelessWidget { List> _createSampleData() { return [ charts.Series( - id: 'Incêndios', + id: FogosLocalizations.of(context).textFires, colorFn: (_, __) => charts.MaterialPalette.red.shadeDefault, domainFn: (LastHour stats, _) => stats.label, measureFn: (LastHour stats, _) => stats.total, data: lastHoursStats.lastHours, ), charts.Series( - id: 'Humanos', + id: FogosLocalizations.of(context).textFireman, colorFn: (_, __) => charts.MaterialPalette.yellow.shadeDefault, domainFn: (LastHour stats, _) => stats.label, measureFn: (LastHour stats, _) => stats.man, data: lastHoursStats.lastHours, ), charts.Series( - id: 'Terrestres', + id: FogosLocalizations.of(context).textVehicles, colorFn: (_, __) => charts.MaterialPalette.green.shadeDefault, domainFn: (LastHour stats, _) => stats.label, measureFn: (LastHour stats, _) => stats.cars, data: lastHoursStats.lastHours, ), charts.Series( - id: 'Aéreos', + id: FogosLocalizations.of(context).textAerial, colorFn: (_, __) => charts.MaterialPalette.blue.shadeDefault, domainFn: (LastHour stats, _) => stats.label, measureFn: (LastHour stats, _) => stats.aerial, diff --git a/lib/screens/components/lastNightStatistics.dart b/lib/screens/components/lastNightStatistics.dart index 2616184..ad79fdb 100644 --- a/lib/screens/components/lastNightStatistics.dart +++ b/lib/screens/components/lastNightStatistics.dart @@ -1,6 +1,7 @@ import 'package:charts_common/common.dart' as c; import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:fogosmobile/models/app_state.dart'; import 'package:fogosmobile/models/statistics.dart'; import 'package:charts_flutter/flutter.dart' as charts; @@ -18,7 +19,7 @@ class LastNightStatistics extends StatelessWidget { var districtSeries = [ new charts.Series( - id: "Last Night Districts", + id: FogosLocalizations.of(context).textLastNightStatistics, colorFn: (District stats, _) => c.Color( r: (25 * stats.fires).clamp(0, 255), g: 0, diff --git a/lib/screens/components/meansStatistics.dart b/lib/screens/components/meansStatistics.dart index c3d774c..c72beaf 100644 --- a/lib/screens/components/meansStatistics.dart +++ b/lib/screens/components/meansStatistics.dart @@ -1,6 +1,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; import 'package:flutter_svg/svg.dart'; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:fogosmobile/models/app_state.dart'; import 'package:fogosmobile/models/fire_details.dart'; import 'package:charts_flutter/flutter.dart' as charts; @@ -21,21 +22,21 @@ class MeansStatistics extends StatelessWidget { List> _createSampleData() { return [ charts.Series( - id: 'Humanos', + id: FogosLocalizations.of(context).textFireman, colorFn: (_, __) => charts.MaterialPalette.yellow.shadeDefault, domainFn: (Means stats, _) => stats.label, measureFn: (Means stats, _) => stats.man, data: stats.means, ), charts.Series( - id: 'Terrestres', + id: FogosLocalizations.of(context).textVehicles, colorFn: (_, __) => charts.MaterialPalette.green.shadeDefault, domainFn: (Means stats, _) => stats.label, measureFn: (Means stats, _) => stats.terrain, data: stats.means, ), charts.Series( - id: 'Aéreos', + id: FogosLocalizations.of(context).textAerial, colorFn: (_, __) => charts.MaterialPalette.blue.shadeDefault, domainFn: (Means stats, _) => stats.label, measureFn: (Means stats, _) => stats.aerial, diff --git a/lib/screens/components/todayStatistics.dart b/lib/screens/components/todayStatistics.dart index 18fc44e..0a91323 100644 --- a/lib/screens/components/todayStatistics.dart +++ b/lib/screens/components/todayStatistics.dart @@ -1,6 +1,7 @@ import 'package:charts_common/common.dart' as c; import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:fogosmobile/models/app_state.dart'; import 'package:fogosmobile/models/statistics.dart'; import 'package:charts_flutter/flutter.dart' as charts; @@ -17,7 +18,7 @@ class TodayStatistics extends StatelessWidget { } var intervalSeries = [ charts.Series( - id: 'Today Interval', + id: FogosLocalizations.of(context).textTodayInterval, colorFn: (_, __) => c.Color.fromHex(code: "#ff512f"), domainFn: (IntervalStats stats, _) => stats.label, measureFn: (IntervalStats stats, _) => stats.total, @@ -35,7 +36,7 @@ class TodayStatistics extends StatelessWidget { var districtSeries = [ new charts.Series( - id: "Today Districts", + id: FogosLocalizations.of(context).textTodayDistricts, colorFn: (District stats, _) => c.Color( r: (25 * stats.fires).clamp(0, 255), g: 0, diff --git a/lib/screens/components/weekStatistics.dart b/lib/screens/components/weekStatistics.dart index ad49016..4ac552e 100644 --- a/lib/screens/components/weekStatistics.dart +++ b/lib/screens/components/weekStatistics.dart @@ -1,6 +1,7 @@ import 'package:charts_common/common.dart' as c; import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:fogosmobile/models/app_state.dart'; import 'package:fogosmobile/models/statistics.dart'; import 'package:charts_flutter/flutter.dart' as charts; @@ -19,7 +20,7 @@ class WeekStatistics extends StatelessWidget { List> _createSampleData() { return [ charts.Series( - id: 'Total', + id: FogosLocalizations.of(context).textTotal, colorFn: (_, __) => c.Color.fromHex(code: "#ff512f"), domainFn: (Day stats, _) => stats.label, measureFn: (Day stats, _) => stats.total, @@ -27,7 +28,7 @@ class WeekStatistics extends StatelessWidget { data: weekStats.days, ), charts.Series( - id: 'Falsos Alarmes', + id: FogosLocalizations.of(context).textFalseAlarm, colorFn: (_, __) => c.Color.black, domainFn: (Day stats, _) => stats.label, measureFn: (Day stats, _) => stats.fake, diff --git a/lib/screens/components/yesterdayStatistics.dart b/lib/screens/components/yesterdayStatistics.dart index a2a1c2c..c51c31e 100644 --- a/lib/screens/components/yesterdayStatistics.dart +++ b/lib/screens/components/yesterdayStatistics.dart @@ -1,6 +1,7 @@ import 'package:charts_common/common.dart' as c; import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:fogosmobile/models/app_state.dart'; import 'package:fogosmobile/models/statistics.dart'; import 'package:charts_flutter/flutter.dart' as charts; @@ -17,7 +18,7 @@ class YesterdayStatistics extends StatelessWidget { } var intervalSeries = [ charts.Series( - id: 'Yesterday Interval', + id: FogosLocalizations.of(context).textYesterdayInterval, colorFn: (_, __) => c.Color.fromHex(code: "#ff512f"), domainFn: (IntervalStats stats, _) => stats.label, measureFn: (IntervalStats stats, _) => stats.total, @@ -35,7 +36,7 @@ class YesterdayStatistics extends StatelessWidget { var districtSeries = [ new charts.Series( - id: "Yesterday Districts", + id: FogosLocalizations.of(context).textYesterdayDistricts, colorFn: (District stats, _) => c.Color( r: (25 * stats.fires).clamp(0, 255), g: 0, diff --git a/lib/screens/fire_details.dart b/lib/screens/fire_details.dart index 3b308ec..fe7ce3a 100644 --- a/lib/screens/fire_details.dart +++ b/lib/screens/fire_details.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:fogosmobile/screens/components/details_history.dart'; import 'package:fogosmobile/screens/components/fireRisk.dart'; import 'package:fogosmobile/screens/components/meansStatistics.dart'; @@ -46,15 +47,15 @@ class FireDetailsPage extends StatelessWidget { body: Container( child: ListView( children: [ - ListTile(title: Text("MEIOS", style: _header)), + ListTile(title: Text(FogosLocalizations.of(context).textResources.toUpperCase(), style: _header)), SizedBox(height: 15), MeansStatistics(), SizedBox(height: 25), - ListTile(title: Text("ESTADO", style: _header)), + ListTile(title: Text(FogosLocalizations.of(context).textStatus.toUpperCase(), style: _header)), SizedBox(height: 15), DetailsHistoryStats(), SizedBox(height: 25), - ListTile(title: Text("RISCO DE INCÊNDIO", style: _header)), + ListTile(title: Text(FogosLocalizations.of(context).textRiskOfFire.toUpperCase(), style: _header)), SizedBox(height: 15), FireRisk(), SizedBox(height: 25), diff --git a/lib/screens/info_page.dart b/lib/screens/info_page.dart index 13f629d..00ff247 100644 --- a/lib/screens/info_page.dart +++ b/lib/screens/info_page.dart @@ -57,50 +57,50 @@ class InfoPage extends StatelessWidget { padding: EdgeInsets.symmetric(horizontal: 10), children: [ ListTile( - title: Text("ESTADOS DAS OCORRÊNCIAS", style: _header), + title: Text(FogosLocalizations.of(context).textInformationIncidentStatus.toUpperCase(), style: _header), contentPadding: EdgeInsets.symmetric(horizontal: 0), ), _occurencyBulletPoint( - "Despacho de 1º alerta – Meios em trânsito para o teatro de operações.", + FogosLocalizations.of(context).textInformationFirstOrderDispatch, imgSvgIconAlarm, Color(0xffff6e02)), _occurencyBulletPoint( - "Chegada ao TO – chegada ao teatro de operações.", + FogosLocalizations.of(context).textInformationArrival, imgSvgIconPointer, Color(0xffb81e1f), ), _occurencyBulletPoint( - "Em curso - Incêndio em evolução sem limitação de área", + FogosLocalizations.of(context).textInformationOngoing, imgSvgIconFire, Color(0xffb81e1f), ), _occurencyBulletPoint( - "Em resolução – Incêndio sem perigo de propagação para além do perímetro já atingido", + FogosLocalizations.of(context).textInformationSettling, imgSvgIconFire, Color(0xff65c4ed), ), _occurencyBulletPoint( - "Em conclusão – Incêndio extinto, com pequenos focos de combustão dentro do perímetro do incêndio", + FogosLocalizations.of(context).textInformationClosing, imgSvgIconFire, Color(0xff8e7e7d), ), _occurencyBulletPoint( - "Vigilância – Meios no local para actuar em caso de necessidade", + FogosLocalizations.of(context).textInformationSupervision, imgSvgIconWatch, Color(0xff65c4ed), ), _occurencyBulletPoint( - "Encerrada – Entrada, nas respectivas entidades, de todos os meios envolvidos​", + FogosLocalizations.of(context).textInformationClosed, imgSvgIconPointer, Color(0xff6abf59), ), _occurencyBulletPoint( - "Falso alarme", + FogosLocalizations.of(context).textFalseAlarm, imgSvgIconFake, Color(0xffbdbdbd), ), _occurencyBulletPoint( - "Falso alerta", + FogosLocalizations.of(context).textFalseAlert, imgSvgIconFake, Color(0xffbdbdbd), ), diff --git a/lib/screens/settings/notifications.dart b/lib/screens/settings/notifications.dart index 22a6d34..a0be4c5 100644 --- a/lib/screens/settings/notifications.dart +++ b/lib/screens/settings/notifications.dart @@ -1,5 +1,6 @@ import 'dart:convert'; import 'dart:convert' show utf8; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:fogosmobile/screens/utils/text_utils.dart'; import 'package:http/http.dart' as http; import 'package:flutter/material.dart'; @@ -81,7 +82,7 @@ class _NotificationsState extends State { ), new ListTile( title: new TextField( - decoration: new InputDecoration(labelText: "Concelho"), + decoration: new InputDecoration(labelText: FogosLocalizations.of(context).textCounty), controller: controller, ), ), diff --git a/lib/screens/settings/other_notifications.dart b/lib/screens/settings/other_notifications.dart index c8364a8..6635626 100644 --- a/lib/screens/settings/other_notifications.dart +++ b/lib/screens/settings/other_notifications.dart @@ -1,5 +1,6 @@ import 'package:flutter/material.dart'; import 'package:flutter_redux/flutter_redux.dart'; +import 'package:fogosmobile/localization/fogos_localizations.dart'; import 'package:redux/redux.dart'; import 'package:fogosmobile/models/app_state.dart'; import 'package:fogosmobile/actions/preferences_actions.dart'; @@ -33,14 +34,14 @@ class _OtherNotificationsState extends State { child: new ListView( children: [ CheckboxListTile( - title: Text("Ocorrências significativas"), + title: Text(FogosLocalizations.of(context).textSignificatOccurences), value: state.preferences['pref-important'] == 1, onChanged: (bool value) { setPreferenceCallBack('important', value == true ? 1 : 0); }, ), CheckboxListTile( - title: Text("Avisos"), + title: Text(FogosLocalizations.of(context).textWarnings), value: state.preferences['pref-warnings'] == 1, onChanged: (bool value) { setPreferenceCallBack('warnings', value == true ? 1 : 0); diff --git a/lib/screens/settings/settings.dart b/lib/screens/settings/settings.dart index f6bdc0c..e196b72 100644 --- a/lib/screens/settings/settings.dart +++ b/lib/screens/settings/settings.dart @@ -26,7 +26,7 @@ class _SettingsState extends State { tabs: [ Tab(icon: Icon(Icons.map)), Tab(icon: Icon(Icons.notifications)), - Tab(text: "Outras"), + Tab(text: FogosLocalizations.of(context).textOther), ], ), ), diff --git a/lib/screens/statistics_page.dart b/lib/screens/statistics_page.dart index 8c45157..e62d99d 100644 --- a/lib/screens/statistics_page.dart +++ b/lib/screens/statistics_page.dart @@ -36,7 +36,7 @@ class _StatisticsPageState extends State { ), body: ListView( children: [ - ListTile(title: Text("AGORA", style: _header)), + ListTile(title: Text(FogosLocalizations.of(context).textNow.toUpperCase(), style: _header)), SizedBox(height: 10), NowStatistics(), SizedBox(height: 25), @@ -44,22 +44,22 @@ class _StatisticsPageState extends State { SizedBox(height: 15), Divider(color: Color(0xffff512f)), SizedBox(height: 15), - ListTile(title: Text("HOJE", style: _header)), + ListTile(title: Text(FogosLocalizations.of(context).textToday.toUpperCase(), style: _header)), TodayStatistics(), SizedBox(height: 15), Divider(color: Color(0xffff512f)), SizedBox(height: 15), - ListTile(title: Text("ONTEM", style: _header)), + ListTile(title: Text(FogosLocalizations.of(context).textYesterday.toUpperCase(), style: _header)), YesterdayStatistics(), SizedBox(height: 15), Divider(color: Color(0xffff512f)), SizedBox(height: 15), - ListTile(title: Text("ÚLTIMA NOITE", style: _header)), + ListTile(title: Text(FogosLocalizations.of(context).textLastNight.toUpperCase(), style: _header)), LastNightStatistics(), SizedBox(height: 15), Divider(color: Color(0xffff512f)), SizedBox(height: 15), - ListTile(title: Text("ÚLTIMOS DIAS", style: _header)), + ListTile(title: Text(FogosLocalizations.of(context).textPreviousDays.toUpperCase(), style: _header)), WeekStatistics(), SizedBox(height: 25), ], diff --git a/pubspec.lock b/pubspec.lock index 12f77d1..8926421 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -28,7 +28,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" auto_size_text: dependency: "direct main" description: @@ -505,7 +505,7 @@ packages: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" redux: dependency: "direct main" description: @@ -615,7 +615,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" timing: dependency: transitive description: