Skip to content

Commit

Permalink
Translations Fix (#56)
Browse files Browse the repository at this point in the history
* Closes #48
Closes #51
Closes #52

* Updated translations
  • Loading branch information
Vanethos authored and guivazcabral committed May 24, 2019
1 parent 767c1e8 commit 526a3ee
Show file tree
Hide file tree
Showing 27 changed files with 1,254 additions and 173 deletions.
16 changes: 8 additions & 8 deletions ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions ios/Runner.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand All @@ -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 */ = {
Expand Down
269 changes: 267 additions & 2 deletions lib/localization/fogos_localizations.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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',
);
Expand Down Expand Up @@ -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:
Expand Down Expand Up @@ -253,3 +517,4 @@ class FogosLocalizations {
static FogosLocalizations of(BuildContext context) =>
Localizations.of<FogosLocalizations>(context, FogosLocalizations);
}

Loading

0 comments on commit 526a3ee

Please sign in to comment.