From 0a59dd5d2f8ef52c4828f9fe3c1a555519151d61 Mon Sep 17 00:00:00 2001 From: Forrest Guice Date: Fri, 31 Dec 2021 19:33:37 -0700 Subject: [PATCH] SelectFormat Fixes the notification offset message to use locale specific quantity and gender rules (api24+); e.g. "del", "de la", "de los", "de las". #522 --- .../alarmclock/AlarmNotifications.java | 55 ++++++++--- app/src/main/res/values-ca/strings.xml | 36 ++++++- app/src/main/res/values-cs/strings.xml | 36 ++++++- app/src/main/res/values-de/strings.xml | 72 ++++++++++---- app/src/main/res/values-eo/strings.xml | 36 ++++++- app/src/main/res/values-es/strings.xml | 36 ++++++- app/src/main/res/values-eu/strings.xml | 36 ++++++- app/src/main/res/values-fr/strings.xml | 42 +++++++- app/src/main/res/values-hu/strings.xml | 36 ++++++- app/src/main/res/values-it/strings.xml | 36 ++++++- app/src/main/res/values-nb/strings.xml | 36 ++++++- app/src/main/res/values-nl/strings.xml | 36 ++++++- app/src/main/res/values-pl/strings.xml | 36 ++++++- app/src/main/res/values-pt-rBR/strings.xml | 36 ++++++- app/src/main/res/values-ru/strings.xml | 36 ++++++- app/src/main/res/values-zh-rCN/strings.xml | 36 ++++++- app/src/main/res/values-zh-rTW/strings.xml | 36 ++++++- app/src/main/res/values/strings.xml | 99 ++++++++++++++++++- 18 files changed, 720 insertions(+), 52 deletions(-) diff --git a/app/src/main/java/com/forrestguice/suntimeswidget/alarmclock/AlarmNotifications.java b/app/src/main/java/com/forrestguice/suntimeswidget/alarmclock/AlarmNotifications.java index 043c57bcf..1d2491f36 100644 --- a/app/src/main/java/com/forrestguice/suntimeswidget/alarmclock/AlarmNotifications.java +++ b/app/src/main/java/com/forrestguice/suntimeswidget/alarmclock/AlarmNotifications.java @@ -1,5 +1,5 @@ /** - Copyright (C) 2018-2020 Forrest Guice + Copyright (C) 2018-2021 Forrest Guice This file is part of SuntimesWidget. SuntimesWidget is free software: you can redistribute it and/or modify @@ -31,6 +31,7 @@ import android.content.Context; import android.content.Intent; +import android.icu.text.MessageFormat; import android.media.AudioManager; import android.media.MediaPlayer; import android.net.Uri; @@ -649,17 +650,10 @@ public static Notification createNotification(Context context, @NonNull AlarmClo { NotificationCompat.Builder builder = new NotificationCompat.Builder(context); - String eventString = (alarm.event != null ? alarm.event.getShortDisplayString() : null); - String eventDisplay = eventString; + String eventDisplay = (alarm.event != null ? alarm.event.getLongDisplayString() : null); if (alarm.offset != 0) { - if (eventString == null) { - Calendar calendar = Calendar.getInstance(); - calendar.setTimeInMillis(alarm.timestamp); - eventString = utils.calendarTimeShortDisplayString(context, calendar).toString(); - } - String offsetText = utils.timeDeltaLongDisplayString(0, alarm.offset).getValue(); - int offsetStringResID = ((alarm.offset < 0) ? R.string.offset_before_msg : R.string.offset_after_msg); - eventDisplay = context.getString(offsetStringResID, offsetText, eventString); + eventDisplay = (alarm.event != null) ? formatOffsetMessage(context, alarm.offset, alarm.event) + : formatOffsetMessage(context, alarm.offset, alarm.timestamp); } String emptyLabel = ((eventDisplay != null) ? eventDisplay : context.getString(R.string.alarmOption_solarevent_none)); @@ -766,6 +760,45 @@ public static Notification createNotification(Context context, @NonNull AlarmClo return builder.build(); } + public static String formatOffsetMessage(Context context, long offset, @NonNull SolarEvents event) + { + int i = event.ordinal(); + String[] eventStrings = context.getResources().getStringArray(R.array.solarevents_long1); + String eventText = (i >= 0 && i = 24) { // uses SelectFormat so translations match quantity and gender + int[] eventPlurals = context.getResources().getIntArray(R.array.solarevents_quantity); + String[] eventGenders = context.getResources().getStringArray(R.array.solarevents_gender); + int plural = (i >= 0 && i = 0 && i = 24) { // uses SelectFormat so translations match quantity and gender + int plural = SuntimesUtils.is24() ? calendar.get(Calendar.HOUR_OF_DAY) : calendar.get(Calendar.HOUR); + String gender = context.getString(R.string.time_gender); + return formatOffsetMessage(context, offset, offsetText, eventText, plural, gender); + } else return formatOffsetMessage(context, offset, offsetText, eventText); + } + public static String formatOffsetMessage(Context context, long offset, String offsetText, String eventText) { + return context.getString(((offset < 0) ? R.string.offset_before_msg : R.string.offset_after_msg), offsetText, eventText); + } + @TargetApi(24) + public static String formatOffsetMessage(Context context, long offset, String offsetText, String eventText, int plural, String gender ) + { + String pattern = context.getString(((offset < 0) ? R.string.offset_before_msg1 : R.string.offset_after_msg1)); + //Log.d("DEBUG", "formatOffsetMessage: " + plural + " : " + gender + "\n" + pattern); + return new MessageFormat(pattern).format( new Object[] {offsetText, plural, gender, eventText} ); + } + /** * showNotification * Use this method to display the notification without a foreground service. diff --git a/app/src/main/res/values-ca/strings.xml b/app/src/main/res/values-ca/strings.xml index 5ad4ff093..d10dd4e48 100644 --- a/app/src/main/res/values-ca/strings.xml +++ b/app/src/main/res/values-ca/strings.xml @@ -115,6 +115,11 @@ %1$s desprès + %1$s abans %2$s + %1$s desprès %2$s + {0} abans {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} desprès {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + abans desprès @@ -1111,7 +1116,7 @@ Migdia lunar Mitjanit lunar - + sortida de sol astronòmica sortida de sol nàutica hora blava de l\'alba (inici) @@ -1140,6 +1145,35 @@ Migdia lunar Mitjanit lunar + + sortida de sol astronòmica + sortida de sol nàutica + hora blava de l\'alba (inici) + sortida de sol civil + hora blava de l\'alba (fi) + sortida de sol + hora daurada del fi de l\'alba + migdia + hora daurada de l\'inici del capvespre + posta de sol + hora blava nocturna (inici) + posta de sol civil + hora blava capvespre (fi) + posta de sol nàutica + posta de sol astronòmica + sortida lunar + posta lunar + lluna nova + quart creixent + lluna plena + quart minvant + equinocci de primavera + solstici d\'estiu + equinocci de tardor + solstici d\'hivern + Migdia lunar + Mitjanit lunar + El GPS està desactivat. Activar-lo? diff --git a/app/src/main/res/values-cs/strings.xml b/app/src/main/res/values-cs/strings.xml index 41ff999a0..ee40073a5 100644 --- a/app/src/main/res/values-cs/strings.xml +++ b/app/src/main/res/values-cs/strings.xml @@ -153,6 +153,11 @@ %1$s po + %1$s před %2$s + %1$s po %2$s + {0} před {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} po {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + před po @@ -1289,7 +1294,7 @@ lunární poledne lunární půlnoc - + ranní astronomický soumrak (začátek) ranní nautický soumrak (začátek) ranní modrá hodina (začátek) @@ -1318,6 +1323,35 @@ lunární poledne lunární půlnoc + + ranní astronomický soumrak (začátek) + ranní nautický soumrak (začátek) + ranní modrá hodina (začátek) + ranní občanský soumrak (začátek) + ranní modrá hodina (konec) + východ slunce + ranní zlatá hodina (konec) + pravé poledne + noční zlatá hodina (začátek) + západ slunce + noční modrá hodina (začátek) + noční občanský soumrak (konec) + noční modrá hodina (konec) + noční nautický soumrak (konec) + noční astronomický soumrak (konec) + východ měsíce + západ měsíce + Nov + první čtvrť + úplněk + třetí čtvrť + jarní rovnodennost + letní slunovrat + podzimní rovnodennost + zimní slunovrat + lunární poledne + lunární půlnoc + GPS je vypnuta. Chcete ji zapnout? diff --git a/app/src/main/res/values-de/strings.xml b/app/src/main/res/values-de/strings.xml index 54d670216..d24fba4c9 100644 --- a/app/src/main/res/values-de/strings.xml +++ b/app/src/main/res/values-de/strings.xml @@ -113,7 +113,12 @@ %1$s nach %1$s nach - + + + %1$s vor %2$s + %1$s nach %2$s + {0} vor {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} nach {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} vor nach @@ -1103,24 +1108,24 @@ Mondmittag Mondmitternacht - - Astronomische Morgendämmerung (Beginn) - Nautische Morgendämmerung (Beginn) - Morgendliche Blaue Stunde (Beginn) - Bürgerliche Morgendämmerung (Beginn) - Morgendliche Blaue Stunde (Ende) - Sonnenaufgang - Morgendliche Goldene Stunde (Ende) - Mittagshöhe - Abendliche Goldene Stunde (Beginn) - Sonnenuntergang - Abendliche Blaue Stunde (Beginn) - Bürgerliche Abenddämmerung (Ende) - Abendliche Blaue Stunde (Ende) - Nautische Abenddämmerung (Ende) - Astronomische Abenddämmerung (Ende) - Mondaufgang - Monduntergang + + Astronomische Morgendämmerung (Beginn) + Nautische Morgendämmerung (Beginn) + Morgendliche Blaue Stunde (Beginn) + Bürgerliche Morgendämmerung (Beginn) + Morgendliche Blaue Stunde (Ende) + Sonnenaufgang + Morgendliche Goldene Stunde (Ende) + Mittagshöhe + Abendliche Goldene Stunde (Beginn) + Sonnenuntergang + Abendliche Blaue Stunde (Beginn) + Bürgerliche Abenddämmerung (Ende) + Abendliche Blaue Stunde (Ende) + Nautische Abenddämmerung (Ende) + Astronomische Abenddämmerung (Ende) + Mondaufgang + Monduntergang Neumond Zunehmender Halbmond Vollmond @@ -1132,6 +1137,35 @@ Mondmittag Mondmitternacht + + Astronomische Morgendämmerung (Beginn) + Nautische Morgendämmerung (Beginn) + Morgendliche Blaue Stunde (Beginn) + Bürgerliche Morgendämmerung (Beginn) + Morgendliche Blaue Stunde (Ende) + Sonnenaufgang + Morgendliche Goldene Stunde (Ende) + Mittagshöhe + Abendliche Goldene Stunde (Beginn) + Sonnenuntergang + Abendliche Blaue Stunde (Beginn) + Bürgerliche Abenddämmerung (Ende) + Abendliche Blaue Stunde (Ende) + Nautische Abenddämmerung (Ende) + Astronomische Abenddämmerung (Ende) + Mondaufgang + Monduntergang + Neumond + Zunehmender Halbmond + Vollmond + Abnehmender Halbmond + Frühjahrs-Tag-Nacht-Gleiche + Sommersonnenwende + Herbst-Tag-Nacht-Gleiche + Wintersonnenwende + Mondmittag + Mondmitternacht + GPS ist deaktiviert. Jetzt aktivieren? diff --git a/app/src/main/res/values-eo/strings.xml b/app/src/main/res/values-eo/strings.xml index b682affe5..94a240af5 100644 --- a/app/src/main/res/values-eo/strings.xml +++ b/app/src/main/res/values-eo/strings.xml @@ -114,6 +114,11 @@ %1$s post + %1$s antaŭ %2$s + %1$s post %2$s + {0} antaŭ {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} post {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + antaŭ post @@ -1018,7 +1023,7 @@ plejsupro de Luno plejmalsupro de Luno - + astronomia sunleviĝo naŭtika sunleviĝo matena blua horo (komenco) @@ -1047,6 +1052,35 @@ kulmino supra de Luno kulmino malsupra de Luno + + astronomia sunleviĝo + naŭtika sunleviĝo + matena blua horo (komenco) + civila sunleviĝo + matena blua horo (fino) + sunleviĝo + matena ora horo (fino) + tagmezo vera (kulmino) + vespera ora horo (komenco) + sunsubiro + vespera blua horo (komenco) + civila sunsubiro + vespera blua horo (fino) + naŭtika sunsubiro + astronomia sunsubiro + lunleviĝo + lunsubiro + nova Luno + kreskanta Lunduono + plena Luno + malkreskanta Lunduono + printempa tagnoktegaleco + somera sunekstremo + aŭtuna tagnoktegaleco + vintra sunekstremo + kulmino supra de Luno + kulmino malsupra de Luno + Agordoj de lingvo diff --git a/app/src/main/res/values-es/strings.xml b/app/src/main/res/values-es/strings.xml index 323a2d204..662368050 100644 --- a/app/src/main/res/values-es/strings.xml +++ b/app/src/main/res/values-es/strings.xml @@ -117,6 +117,11 @@ %1$s después de las + %1$s antes de %2$s + {0} antes {1, plural, one {{2, select, female {de la} other {del}}} other {{2, select, female {de las} other {de los}}}} {3} + %1$s después de %2$s + {0} después {1, plural, one {{2, select, female {de la} other {del}}} other {{2, select, female {de las} other {de los}}}} {3} + antes después @@ -1109,7 +1114,7 @@ Mediodía lunar Medianoche lunar - + Amanecer astronómico Amanecer náutico Hora azul del amanecer (inicio) @@ -1138,6 +1143,35 @@ Mediodía lunar Medianoche lunar + + Amanecer astronómico + Amanecer náutico + Hora azul del amanecer (inicio) + Amanecer civil + Hora azul del amanecer (final) + Amanecer + Hora dorada del final del amanecer + Mediodía + Hora dorada del inicio del atardecer + Atardecer + Hora azul del atardecer (inicio) + Atardecer sol civil + Hora azul del atardecer (final) + Atardecer náutica + Atardecer astronómico + Salida lunar + Puesta lunar + Luna nueva + Cuarto creciente + Luna llena + Cuarto menguante + Equinoccio de primavera + Solsticio de verano + Equinoccio de otoño + Solsticio de invierno + Mediodía lunar + Medianoche lunar + El GPS está desactivado. ¿Activarlo? diff --git a/app/src/main/res/values-eu/strings.xml b/app/src/main/res/values-eu/strings.xml index b1449270d..9492b6a77 100644 --- a/app/src/main/res/values-eu/strings.xml +++ b/app/src/main/res/values-eu/strings.xml @@ -119,6 +119,11 @@ %1$s after + %1$s before %2$s + %1$s after %2$s + {0} before {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} after {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + before after @@ -1119,7 +1124,7 @@ lunar noon lunar midnight - + goizeko krepuskulu astronomikoa (hasiera) goizeko itsas krepuskulua (hasiera) goizeko ordu urdina (hasiera) @@ -1148,6 +1153,35 @@ lunar noon lunar midnight + + goizeko krepuskulu astronomikoa (hasiera) + goizeko itsas krepuskulua (hasiera) + goizeko ordu urdina (hasiera) + goizeko krepuskulu zibila (hasiera) + goizeko ordu urdina (amaiera) + egunsentia + goizeko urrezko ordua (amaiera) + eguzki eguerdia + arratsaldeko urrezko ordua (hasiera) + ilunabarra + arratsaldeko ordu urdina (hasiera) + arratsaldeko krepuskulu zibila (amaiera) + arratsaldeko ordu urdina (amaiera) + arratsaldeko itsas krepuskulua (amaiera) + arratsaldeko krepuskulu astronomikoa (amaiera) + ilargiaren irteera + ilargia ezkutatzea + ilberria + lehen laurdena + ilbetea + hirugarren laurdena + udaberriko ekinokzioa + udako solstizioa + udazkeneko ekinokzioa + neguko solstizioa + lunar noon + lunar midnight + GPSa ezgaituta dago. Gaitu? diff --git a/app/src/main/res/values-fr/strings.xml b/app/src/main/res/values-fr/strings.xml index 94a25361a..e4728ec26 100644 --- a/app/src/main/res/values-fr/strings.xml +++ b/app/src/main/res/values-fr/strings.xml @@ -104,15 +104,20 @@ at à - + %1$s avant %1$s avant - + %1$s après %1$s après - + + + %1$s avant %2$s + %1$s après %2$s + {0} avant {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} après {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} avant après @@ -1089,7 +1094,7 @@ lunar noon lunar midnight - + crépuscule astronomique du matin crépuscule nautique du matin heure bleue du matin (début) @@ -1118,6 +1123,35 @@ lunar noon lunar midnight + + crépuscule astronomique du matin + crépuscule nautique du matin + heure bleue du matin (début) + crépuscule civil du matin + heure bleue du matin (fin) + lever du soleil + heure dorée du matin (fin) + midi solaire + heure dorée du soir (début) + coucher du soleil + heure bleue du soir (début) + crépuscule civil du soir + heure bleue du soir (fin) + crépuscule nautique du soir + crépuscule astronomique du soir + lever de la lune + coucher de la lune + nouvelle lune + premier quartier + pleine lune + dernier quartier + Équinoxe du printemps + Solstice d\'été + Équinoxe d\'automne + Solstice d\'hiver + lunar noon + lunar midnight + Activer le GPS ? diff --git a/app/src/main/res/values-hu/strings.xml b/app/src/main/res/values-hu/strings.xml index eb0c540ba..b799df5ed 100644 --- a/app/src/main/res/values-hu/strings.xml +++ b/app/src/main/res/values-hu/strings.xml @@ -113,6 +113,11 @@ %1$s after + %1$s before %2$s + %1$s after %2$s + {0} before {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} after {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + before after @@ -1094,7 +1099,36 @@ lunar noon lunar midnight - + + reggel csillagászati szürkület (kezdete) + reggel hajózási szürkület (kezdete) + morning blue hour (start) + reggel civil szürkület (kezdete) + morning blue hour (end) + napkelte + morning golden hour (end) + szoláris dél + evening golden hour (start) + napnyugta + evening blue hour (start) + este civil szürkület (vége) + evening blue hour (end) + este hajózási szürkület (vége) + este csillagászati szürkület (vége) + moonrise + moonset + new moon + first quarter + full moon + third quarter + spring equinox + summer solstice + autumn equinox + winter solstice + lunar noon + lunar midnight + + reggel csillagászati szürkület (kezdete) reggel hajózási szürkület (kezdete) morning blue hour (start) diff --git a/app/src/main/res/values-it/strings.xml b/app/src/main/res/values-it/strings.xml index a9ba21ab9..a9f6208de 100644 --- a/app/src/main/res/values-it/strings.xml +++ b/app/src/main/res/values-it/strings.xml @@ -119,6 +119,11 @@ %1$s dopo + %1$s prima %2$s + %1$s dopo %2$s + {0} prima {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} dopo {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + prima dopo @@ -1126,7 +1131,7 @@ mezzogiorno lunare mezzanotte lunare - + astronomico crepuscolo (inizio) nautico crepuscolo mattutino (inizio) ora blu mattutino (inizio) @@ -1155,6 +1160,35 @@ mezzogiorno lunare mezzanotte lunare + + astronomico crepuscolo (inizio) + nautico crepuscolo mattutino (inizio) + ora blu mattutino (inizio) + crepuscolo civile mattutino (inizio) + ora blu mattutina (fine) + alba + ora d\'oro mattutina (fine) + mezzogiorno solare + ora d\'oro serale (inizio) + tramonto + ora blu serale (inizio) + crepuscolo civile serale (fine) + ora blu serale (fine) + nautico crepuscolo serale serale (fine) + astronomico crepuscolo serale (fine) + alba lunare + tramonto lunare + luna nuova + primo quarto + luna piena + ultimo quarto + equinozio di primavera + solstizio d\'estate + equinozio d\'autunno + solstizio d\'inverno + mezzogiorno lunare + mezzanotte lunare + GPS disabilitato. Abilitarlo? diff --git a/app/src/main/res/values-nb/strings.xml b/app/src/main/res/values-nb/strings.xml index ed4b3cbfe..9848303b7 100644 --- a/app/src/main/res/values-nb/strings.xml +++ b/app/src/main/res/values-nb/strings.xml @@ -119,6 +119,11 @@ %1$s etter + %1$s før %2$s + %1$s etter %2$s + {0} før {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} etter {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + før etter @@ -1119,7 +1124,7 @@ månens kulminasjon månens nedre kulminasjon - + astronomisk tussmørke morgen (start) nautisk tussmørke morgen (start) blåtimen morgen (start) @@ -1148,6 +1153,35 @@ månens kulminasjon månens nedre kulminasjon + + astronomisk tussmørke morgen (start) + nautisk tussmørke morgen (start) + blåtimen morgen (start) + alminnelig tussmørke morgen (start) + blåtimen morgen (slutt) + soloppgang + gylne time morgen (slutt) + lokal middag + gylne time kveld (start) + solnedgang + blåtimen kveld (start) + alminnelig tussmørke kveld (slutt) + blåtimen kveld (slutt) + nautisk tussmørke kveld (slutt) + astronomisk tussmørke kveld (slutt) + måneoppgang + månenedgang + nymåne + ny, halvmåne + fullmåne + ne, halvmåne + vårjevndøgn + sommersolverv + høstjevndøgn + vintersolverv + månens kulminasjon + månens nedre kulminasjon + GPS er deaktivert. Aktivere nå? diff --git a/app/src/main/res/values-nl/strings.xml b/app/src/main/res/values-nl/strings.xml index 586dc35b7..97ca91ea1 100644 --- a/app/src/main/res/values-nl/strings.xml +++ b/app/src/main/res/values-nl/strings.xml @@ -148,6 +148,11 @@ %1$s na + %1$s voor %2$s + %1$s na %2$s + {0} voor {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} na {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + voor na @@ -1268,7 +1273,7 @@ lunar noon lunar midnight - + morning astronomical twilight (start) morning nautical twilight (start) morning blue hour (start) @@ -1297,6 +1302,35 @@ lunar noon lunar midnight + + start of morning astronomical twilight + start of morning nautical twilight + start of morning blue hour + start of morning civil twilight + end of morning blue hour + Zonsopgang + end of morning golden hour + solar noon + start of evening golden hour + Zonsondergang + start of evening blue hour + end of evening civil twilight + end of evening blue hour + end of evening nautical twilight + end of evening astronomical twilight + Maanopkomst + Maansondergang + new moon + first quarter + full moon + third quarter + spring equinox + summer solstice + autumn equinox + winter solstice + lunar noon + lunar midnight + GPS is disabled. Enable it? diff --git a/app/src/main/res/values-pl/strings.xml b/app/src/main/res/values-pl/strings.xml index cb4afc2fc..898262c59 100644 --- a/app/src/main/res/values-pl/strings.xml +++ b/app/src/main/res/values-pl/strings.xml @@ -121,6 +121,11 @@ %1$s po + %1$s przed %2$s + %1$s po %2$s + {0} przed {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} po {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + przed po @@ -1121,7 +1126,7 @@ górowanie Księżyca dołowanie Księżyca - + świt astronomiczny świt żeglarski poranna błękitna godzina (początek) @@ -1150,6 +1155,35 @@ kulminacja górna Księżyca kulminacja dolna Księżyca + + świt astronomiczny + świt żeglarski + poranna błękitna godzina (początek) + świt cywilny + poranna błękitna godzina (koniec) + wschód Słońca + poranna złota godzina (koniec) + kulminacja Słońca + wieczorna złota godzina (początek) + zachód Słońca + wieczorna błękitna godzina (początek) + zmierzch cywilny + wieczorna złota godzina (koniec) + zmierzch żeglarski + zmierzch astronomiczny + wschód Księżyca + zachód Księżyca + nów Księżyca + pierwsza kwadra Księżyca + pełnia Księżyca + ostatnia kwadra Księżyca + równonoc wiosenna + przesilenie letnie + równonoc jesienna + przesilenie zimowe + kulminacja górna Księżyca + kulminacja dolna Księżyca + GPS jest wyłączony. Czy włączyć go? diff --git a/app/src/main/res/values-pt-rBR/strings.xml b/app/src/main/res/values-pt-rBR/strings.xml index 960b17675..32bc725e5 100644 --- a/app/src/main/res/values-pt-rBR/strings.xml +++ b/app/src/main/res/values-pt-rBR/strings.xml @@ -148,6 +148,11 @@ %1$s após + %1$s antes das %2$s + %1$s após %2$s + {0} antes das {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} após {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + antes depois @@ -1161,7 +1166,7 @@ meio-dia lunar meia-noite lunar - + crepúsculo astronômico da manhã (início) crepúsculo náutico da manhã (início) hora azul da manhã (início) @@ -1190,6 +1195,35 @@ meio-dia lunar meia-noite lunar + + crepúsculo astronômico da manhã (início) + crepúsculo náutico da manhã (início) + hora azul da manhã (início) + crepúsculo civil de manhã (início) + hora azul da manhã (fim) + nascer do sol + hora dourada da manhã (fim) + meio dia + hora dourada da tarde (início) + pôr do sol + hora azul da tarde (início) + crepúsculo civil da tarde (fim) + hora azul da tarde (fim) + crepúsculo náutico da tarde (fim) + crepúsculo astronômico da tarde (fim) + nascer da lua + pôr da lua + lua nova + lua quarto crescente + lua cheia + lua quarto minguante + equinócio de primavera + solstício de verão + equinócio de outono + solstício de inverno + meio-dia lunar + meia-noite lunar + GPS desligado. Deseja ligar? diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 4a25fb511..51f18f4bc 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -155,6 +155,11 @@ %1$s после + %1$s до %2$s + %1$s после %2$s + {0} до {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} после {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + до после @@ -1290,7 +1295,7 @@ Лунный полдень Лунная полночь - + Утренние астроном. сум. (начало) Утренние навигац. сум. (начало) Утреннее режимное время (начало) @@ -1319,6 +1324,35 @@ Лунный полдень Лунная полночь + + Утренние астроном. сум. (начало) + Утренние навигац. сум. (начало) + Утреннее режимное время (начало) + Утренние гражданские сум. (начало) + Утреннее режимное время (конец) + Восход солнца + Утренний золотой час (конец) + Солнечный полдень + Вечерний золотой час (начало) + Заход солнца + Вечернее режимное время (начало) + Вечерние гражданские сум. (конец) + Вечернее режимное время (конец) + Вечерние навигац. сум. (конец) + Вечерние астроном. сум. (конец) + Восход луны + Заход луны + Новолуние + Первая четверть + Полнолуние + Третья четверть + Весеннее равноденствие + Летнее солнцестояние + Осеннее равноденствие + Зимнее солнцестояние + Лунный полдень + Лунная полночь + GPS выключен. Включить GPS? diff --git a/app/src/main/res/values-zh-rCN/strings.xml b/app/src/main/res/values-zh-rCN/strings.xml index 0707e8d56..eea342cbf 100644 --- a/app/src/main/res/values-zh-rCN/strings.xml +++ b/app/src/main/res/values-zh-rCN/strings.xml @@ -119,6 +119,11 @@ %1$s 之后 + %1$s 之前 %2$s + %1$s 之后 %2$s + {0} 之前 {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} 之后 {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + 之前 之后 @@ -1126,7 +1131,7 @@ 月亮正午 月夜 - + 天文曙光 航海曙光 蓝色时刻(开始) @@ -1155,6 +1160,35 @@ 月亮正午 月夜 + + 天文曙光 + 航海曙光 + 蓝色时刻(开始) + 民用曙光 + 蓝色时刻(结束) + 日出 + 黄金时刻(结束) + 正午 + 黄金时刻(开始) + 日落 + 蓝色时刻(开始) + 民用暮光 + 蓝色时刻(结束) + 航海暮光 + 天文暮光 + 月出 + 月落 + 新月 + 上弦月 + 满月 + 下弦月 + 春分 + 夏至 + 秋分 + 冬至 + 月亮正午 + 月夜 + GPS已被禁用,要启用吗? diff --git a/app/src/main/res/values-zh-rTW/strings.xml b/app/src/main/res/values-zh-rTW/strings.xml index 9c73b6c7b..516d1f0c5 100644 --- a/app/src/main/res/values-zh-rTW/strings.xml +++ b/app/src/main/res/values-zh-rTW/strings.xml @@ -118,6 +118,10 @@ %1$s 之後 + %1$s 之前 %2$s + %1$s 之後 %2$s + {0} 之前 {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} 之後 {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} 之前 之後 @@ -1126,7 +1130,7 @@ 月亮正午 月夜 - + 天文曙光 航海曙光 藍色時刻(開始) @@ -1155,6 +1159,36 @@ 月亮正午 月夜 + + 天文曙光 + 航海曙光 + 藍色時刻(開始) + 民用曙光 + 藍色時刻(結束) + 日出 + 黃金時刻(結束) + 正午 + 黃金時刻(開始) + 日落 + 藍色時刻(開始) + 民用暮光 + 藍色時刻(結束) + 航海暮光 + 天文暮光 + 月出 + 月落 + 新月 + 上弦月 + 滿月 + 下弦月 + 春分 + 夏至 + 秋分 + 冬至 + 月亮正午 + 月夜 + + GPS已被禁用,要啟用嗎? diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index ac0238998..2d933dbf3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -149,9 +149,11 @@ %1$s after %1$s after - %1$s at %2$s - %1$s before %2$s - %1$s after %2$s + + %1$s before %2$s + %1$s after %2$s + {0} before {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} + {0} after {1, plural, one {{2, select, female {} other {}}} other {{2, select, female {} other {}}}}{3} before after @@ -1419,7 +1421,7 @@ lunar noon lunar midnight - + morning astronomical twilight (start) morning nautical twilight (start) morning blue hour (start) @@ -1448,6 +1450,95 @@ lunar noon lunar midnight + + start of morning astronomical twilight + start of morning nautical twilight + start of morning blue hour + start of morning civil twilight + end of morning blue hour + sunrise + end of morning golden hour + solar noon + start of evening golden hour + sunset + start of evening blue hour + end of evening civil twilight + end of evening blue hour + end of evening nautical twilight + end of evening astronomical twilight + moonrise + moonset + new moon + first quarter + full moon + third quarter + spring equinox + summer solstice + autumn equinox + winter solstice + lunar noon + lunar midnight + + + + other + other + other + other + other + other + other + other + other + other + other + other + other + other + other + female + female + female + other + female + other + other + other + other + other + other + female + + + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + 1 + + female GPS is disabled. Enable it?