Skip to content

Commit

Permalink
update translations
Browse files Browse the repository at this point in the history
  • Loading branch information
gstoehld committed Mar 14, 2022
1 parent e280ec2 commit bad7446
Show file tree
Hide file tree
Showing 15 changed files with 73 additions and 133 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import java.util.Arrays;
import java.util.List;
import java.util.Locale;
import org.dpppt.switzerland.backend.sdk.config.ws.helper.IOS136InfoBoxHelper;
import org.dpppt.switzerland.backend.sdk.config.ws.helper.MockHelper;
import org.dpppt.switzerland.backend.sdk.config.ws.helper.TestLocationHelper;
import org.dpppt.switzerland.backend.sdk.config.ws.helper.VaccinationInfoHelper;
Expand Down Expand Up @@ -82,6 +81,12 @@ public class GaenConfigController {


private static final Logger logger = LoggerFactory.getLogger(GaenConfigController.class);
//TODO actual URL
private static final String TERMINATION_URL = "https://bag-coronavirus.ch/swisscovid-app/";
public static final String TERMINATION_TITLE = "termination_title";
public static final String TERMINATION_TEXT = "termination_text";
public static final String TERMINATION_TEXT_INFOBOX = "termination_text_infobox";
public static final String TERMINATION_LINK_TITLE = "termination_link_title";

protected final Messages messages;
private final List<String> interOpsCountryCodes;
Expand Down Expand Up @@ -287,102 +292,32 @@ private ConfigResponse testFlightUpdate() {
}


private InfoBox createDeactivationInfobox(Language language){
InfoBox infoBox = new InfoBox();
infoBox.setMsg(messages.getNullableMessage(TERMINATION_TEXT, language.toLocale()));
infoBox.setTitle(messages.getNullableMessage(TERMINATION_TITLE, language.toLocale()));
infoBox.setUrlTitle(messages.getNullableMessage(TERMINATION_LINK_TITLE, language.toLocale()));
infoBox.setUrl(TERMINATION_URL);
infoBox.setIsDismissible(false);
return infoBox;
}


private InfoBoxCollection appDeactivationInfobox() {
InfoBox infoBoxde = new InfoBox();
infoBoxde.setMsg(
"PLACEHOLDER app wird denn abgstellt im fall");
infoBoxde.setTitle("PLACEHOLDER COVID IS NO MORE");
infoBoxde.setIsDismissible(false);

InfoBox infoBoxfr = new InfoBox();
infoBoxfr.setMsg(
"PLACEHOLDER TEXT FR");
infoBoxfr.setTitle("PLACEHOLDER TITLE FR");
infoBoxfr.setIsDismissible(false);

InfoBox infoBoxit = new InfoBox();
infoBoxit.setMsg(
"PLACEHOLDER TEXT IT");
infoBoxit.setTitle("PLACEHOLDER TITLE IT");
infoBoxit.setIsDismissible(false);

InfoBox infoBoxen = new InfoBox();
infoBoxen.setMsg(
"PLACEHOLDER TEXT EN");
infoBoxen.setTitle("PLACEHOLDER TITLE EN");
infoBoxen.setIsDismissible(false);

InfoBox infoBoxpt = new InfoBox();
infoBoxpt.setMsg(
"PLACEHOLDER TEXT");
infoBoxpt.setTitle("PLACEHOLDER TITLE");
infoBoxpt.setIsDismissible(false);

InfoBox infoBoxes = new InfoBox();
infoBoxes.setMsg(
"PLACEHOLDER TEXT");
infoBoxes.setTitle("PLACEHOLDER TITLE");
infoBoxes.setIsDismissible(false);

InfoBox infoBoxsq = new InfoBox();
infoBoxsq.setMsg(
"PLACEHOLDER TEXT");
infoBoxsq.setTitle("PLACEHOLDER TITLE");
infoBoxsq.setIsDismissible(false);

InfoBox infoBoxbs = new InfoBox();
infoBoxbs.setMsg(
"PLACEHOLDER TEXT");
infoBoxbs.setTitle("PLACEHOLDER TITLE");
infoBoxbs.setIsDismissible(false);

InfoBox infoBoxhr = new InfoBox();
infoBoxhr.setMsg(
"PLACEHOLDER TEXT");
infoBoxhr.setTitle("PLACEHOLDER TITLE");
infoBoxhr.setIsDismissible(false);

InfoBox infoBoxrm = new InfoBox();
infoBoxrm.setMsg(
"PLACEHOLDER TEXT");
infoBoxrm.setTitle("PLACEHOLDER TITLE");
infoBoxrm.setIsDismissible(false);

InfoBox infoBoxsr = new InfoBox();
infoBoxsr.setMsg(
"PLACEHOLDER TEXT");
infoBoxsr.setTitle("PLACEHOLDER TITLE");
infoBoxsr.setIsDismissible(false);

InfoBox infoBoxtr = new InfoBox();
infoBoxtr.setMsg(
"PLACEHOLDER TEXT");
infoBoxtr.setTitle("PLACEHOLDER TITLE");
infoBoxtr.setIsDismissible(false);

InfoBox infoBoxti = new InfoBox();
infoBoxti.setMsg(
"PLACEHOLDER TEXT");
infoBoxti.setTitle("PLACEHOLDER TITLE");
infoBoxti.setIsDismissible(false);

InfoBoxCollection collection = new InfoBoxCollection();
collection.setDeInfoBox(infoBoxde);
collection.setEnInfoBox(infoBoxen);
collection.setFrInfoBox(infoBoxfr);
collection.setItInfoBox(infoBoxit);
collection.setPtInfoBox(infoBoxpt);
collection.setEsInfoBox(infoBoxes);
collection.setSqInfoBox(infoBoxsq);
collection.setHrInfoBox(infoBoxhr);
collection.setBsInfoBox(infoBoxbs);
collection.setRmInfoBox(infoBoxrm);
collection.setSrInfoBox(infoBoxsr);
collection.setTiInfoBox(infoBoxti);
collection.setTrInfoBox(infoBoxtr);

collection.setDeInfoBox(createDeactivationInfobox(Language.DE));
collection.setEnInfoBox(createDeactivationInfobox(Language.EN));
collection.setFrInfoBox(createDeactivationInfobox(Language.FR));
collection.setItInfoBox(createDeactivationInfobox(Language.IT));
collection.setPtInfoBox(createDeactivationInfobox(Language.PT));
collection.setEsInfoBox(createDeactivationInfobox(Language.ES));
collection.setSqInfoBox(createDeactivationInfobox(Language.SQ));
collection.setHrInfoBox(createDeactivationInfobox(Language.HR));
collection.setBsInfoBox(createDeactivationInfobox(Language.BS));
collection.setRmInfoBox(createDeactivationInfobox(Language.RM));
collection.setSrInfoBox(createDeactivationInfobox(Language.SR));
collection.setTiInfoBox(createDeactivationInfobox(Language.TI));
collection.setTrInfoBox(createDeactivationInfobox(Language.TR));
return collection;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ bs:
inform_code_intro_text: Iako se lični podaci koji se odnose na vas ne šalju, možda se neko seća svog kontakta sa vama na osnovu datuma.
inform_code_intro_button: Saglasan
symptom_faq1_title: Koji su simptomi COVID-19?
symptom_faq1_text: Ovi simptomi se često javljaju:\n\n– temperatura, osećaj groznice\n– bolovi u grlu\n– kašalj (najčešće suv)\n– kratak dah\n– bolovi u grudima\n– iznenadni gubitak čula mirisa i/ili ukusa\n\nOsim toga, mogući su sledeći simptomi:\n\n– glavobolja\n– opšta slabost, malaksalost\n– bolovi u mišićima\n– kijavica\n– simptomi gastrointestinalnog trakta (mučnina, povraćanje, proliv, bolovi u stomaku)\n– osipi na koži
symptom_faq1_text: Novi virus korone često može pokazati različite simptome bolesti. Najčešći simptomi su:\n\n– bol u grlu\n– kašalj (uglavnom suv)\n– kratak dah\n– bol u grudima\n– temperatura\n– iznenadni gubitak čula mirisa i/ili ukusa\n– glavobolja\n– opšta slabost, malaksalost\n– bolovi u mišićima\n– kijavica\n– simptomi gastrointestinalnog trakta (mučnina, povraćanje, proliv, bolovi u stomaku)\n– osipi na koži\n\nImajte na umu sledeće: Simptomi bolesti su različite jačine i mogu varati u zavisnost od varijante virusa. Mogu biti i blagi. I samo kijavica može značiti da ste zaraženi.
meldungen_positive_tested_faq1_title: Zbog čega je praćenje deaktivirano?
meldungen_positive_tested_faq1_text: Posle pozitivnog testa praćenje se automatski deaktivira u aplikaciji. Praćenje može ponovo da se aktivira čim izađete iz izolacije.
language_key: bs
Expand Down Expand Up @@ -618,9 +618,9 @@ bs:
checkin_report_title1: Zaštititi kontakte
checkin_report_title2: Obratiti pažnju na simptome
checkin_report_title3: Vršiti testiranje
checkin_report_subtitle1: Mogli biste biti zarazni, a da to ne primetite. Pridržavajte se važećih higijenskih i zaštitnih mera i zaštitite svoju porodicu, prijatelje i okolinu.
checkin_report_subtitle1: Mogli ste da se zarazite, a da ne primetite. Obratite pažnju na sledeće mere opreza:\n\n- nositi masku do 7 dana posle kontakta)\n\n- ograničiti kontakte\n\n- držati razmak (najmanje 1,5 metar)\n\n- izbegavati javne zatvorene prostore
checkin_report_subtitle2: Proveravajte svoje zdravsveno stanje.
checkin_report_subtitle3: Odmah se testirajte ako imate simptome. Čak i ako nema simptoma i niste u potpunosti vakcinisani, test korone je važan i preporučuje se.
checkin_report_subtitle3: U slučaju pojave <b>simptoma odmah se testirati</b> – i ako ste vakcinisati (uključ. dopunske vakcine) ili ste preležali koronu. Čak i ako imate samo blage simptome, testiranje je korisno i preporučljivo.<br/><br/><b>Testirajte se</b>, i ako <b>nemate simptome</b>. Možete biti zaraženi i kada nemate simptome. Test u tom slučaju treba uraditi nekoliko dana (4–7) posle rizičnog kontakta. U tom vremenu se najčešće može otkriti zaraza.
meldung_detail_checkin_title: Prijava
not_thank_you_screen_title: Podaci nisu poslati
not_thank_you_screen_text1: Nisu poslati privatni ključevi.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ de:
inform_code_intro_text: Obwohl keine Daten zu Ihrer Person gesendet werden, könnte es sein, dass sich jemand anhand des Datums an die Begegnung mit Ihnen erinnern kann.
inform_code_intro_button: Einverstanden
symptom_faq1_title: Was sind COVID-19-Symptome?
symptom_faq1_text: Diese Symptome treten häufig auf:\n\n– Fieber, Fiebergefühl\n– Halsschmerzen\n– Husten (meist trocken)\n– Kurzatmigkeit\n– Brustschmerzen\n– Plötzlicher Verlust des Geruchs- und/oder Geschmackssinns\n\nZudem sind folgende Symptome möglich:\n\n– Kopfschmerzen\n– Allgemeine Schwäche, Unwohlsein\n– Muskelschmerzen\n– Schnupfen\n– Magen-Darm-Symptome (Übelkeit, Erbrechen, Durchfall, Bauchschmerzen)\n– Hautausschläge
symptom_faq1_text: Das neue Coronavirus kann sehr unterschiedliche Krankheitssymptome zeigen.\nDie häufigsten Symptome sind:\n\n– Halsschmerzen\n– Husten (meist trocken)\n– Kurzatmigkeit\n– Brustschmerzen\n– Fieber\n– Plötzlicher Verlust des Geruchs- und/oder Geschmackssinns\n– Kopfschmerzen\n– Allgemeine Schwäche, Unwohlsein\n– Muskelschmerzen\n– Schnupfen\n– Magen-Darm-Symptome (Übelkeit, Erbrechen, Durchfall, Bauchschmerzen)\n– Hautausschläge\n\nBeachten Sie: Die Krankheitssymptome sind unterschiedlich stark und können je nach Virusvariante variieren. Sie können auch leicht sein. Bereits ein Schnupfen kann eine Infektion bedeuten.
meldungen_positive_tested_faq1_title: Warum ist das Tracing deaktiviert?
meldungen_positive_tested_faq1_text: Nach einem positiven Testergebnis wird das Tracing in der App automatisch deaktiviert. Das Tracing kann wieder aktiviert werden, sobald Sie die Isolation beendet haben.
language_key: de
Expand Down Expand Up @@ -620,9 +620,9 @@ de:
checkin_report_title1: Kontakte schützen
checkin_report_title2: Auf Symptome achten
checkin_report_title3: Testen lassen
checkin_report_subtitle1: Sie könnten bereits ansteckend sein, ohne es zu merken. Beachten Sie die geltenden Hygiene- und Schutzmassnahmen und schützen Sie Ihre Familie, Ihre Freunde und Ihr Umfeld.
checkin_report_subtitle1: Sie könnten sich angesteckt haben, ohne es zu merken. Beachten Sie folgende Vorsichtsmassnahmen:\n\n- Maske tragen (bis 7 Tagen nach Kontakt)\n\n- Kontakte einschränken\n\n- Abstand halten (mind. 1,5 Meter)\n\n- öffentliche Räume meiden
checkin_report_subtitle2: Überwachen Sie Ihren Gesundheitszustand.
checkin_report_subtitle3: Lassen Sie sich beim Auftreten von Symptomen sofort testen. Wenn keine Symptome auftreten und Sie noch nicht vollständig geimpft sind, ist ein Corona-Test ebenfalls sinnvoll und empfohlen.
checkin_report_subtitle3: Lassen Sie sich beim Auftreten von <b>Symptomen sofort testen</b> – auch wenn Sie geimpft (inkl. Auffrischimpfungen) oder genesen sind. Selbst wenn Sie nur leichte Symptome haben, ist ein Test sinnvoll und empfohlen.<br/><br/>Lassen Sie sich <b>auch testen</b>, wenn Sie <b>keine Symptome</b> haben. Sie könnten sich angesteckt haben, aber symptomlos sein. Ein Test sollte in diesem Fall erst einige Tage (4–7) nach dem Risiko-Kontakt stattfinden. Dann kann eine symptomlose Ansteckung am ehesten entdeckt werden.
meldung_detail_checkin_title: Check-In
not_thank_you_screen_title: Keine Daten gesendet
not_thank_you_screen_text1: Es wurden keine privaten Schlüssel gesendet.
Expand Down Expand Up @@ -725,3 +725,8 @@ de:
vaccination_impf_check_action: Zum Impf-Check
vaccination_impf_check_url: https://covid19.impf-check.ch/
vaccination_impf_check_title: Jetzt Termin buchen
termination_header: Information
termination_title: Der Betrieb der SwissCovid App wurde eingestellt
termination_text: Vielen Dank, dass Sie die SwissCovid App heruntergeladen haben.\n\nMit der Verwendung der SwissCovid App haben Sie einen relevanten Beitrag zur Pandemiebekämpfung geleistet. Über 175’000 Personen konnten andere schnell über ein Ansteckungsrisiko informieren und somit Infektionsketten unterbrechen.\n\nMit der Aufhebung der Massnahmen des Bundes wurde auch der Betrieb der SwissCovid App eingestellt. Die App ist per sofort inaktiv und soll deinstalliert werden. Sollte eine Reaktivierung aufgrund der epidemiologischen Situation nötig sein, würden wir uns wieder über Ihre Unterstützung freuen.
termination_text_infobox: Vielen Dank, dass Sie die SwissCovid App heruntergeladen haben.\n\nMit der Verwendung der SwissCovid App haben Sie einen relevanten Beitrag zur Pandemiebekämpfung geleistet. Über 175’000 Personen konnten andere schnell über ein Ansteckungsrisiko informieren und somit Infektionsketten unterbrechen.\n\nMit der Aufhebung der Massnahmen des Bundes wurde auch der Betrieb der SwissCovid App eingestellt. Die App ist per sofort inaktiv und soll deinstalliert werden. Sollte eine Reaktivierung aufgrund der epidemiologischen Situation nötig sein, würden wir uns wieder über Ihre Unterstützung freuen.
termination_link_title: Weitere Informationen
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ en:
inform_code_intro_text: Although no personal data relating to you is sent out, it may well be that someone remembers their encounter with you from the date.
inform_code_intro_button: Agreed
symptom_faq1_title: What are the symptoms of COVID-19?
symptom_faq1_text: These are the most common symptoms of COVID-19:\n\nFever, feverish feeling \nSore throat\n– Cough (mostly dry)\n– Shortness of breath\nBody aches\n– Sudden loss of the sense of taste and/or smell\n\nOther symptoms may include:\n\n– Headache\n– General weakness, feeling unwell\n– Aching muscles\n– Head cold\n– Gastrointestinal symptoms (nausea, vomiting, diarrhoea, stomach ache)\n– Skin rash
symptom_faq1_text: The new coronavirus can show many different symptoms. The most common symptoms are:\n\n– Sore throat\n– Cough (mostly dry)\n– Shortness of breath\nChest pain\nHigh temperature\nSudden loss of sense of smell and/or taste\n– Headache\n– General weakness, feeling unwell\n– Aching muscles\n– Head cold\n– Gastrointestinal symptoms (nausea, vomiting, diarrhoea, stomach ache)\n– Skin rash\n\nNote: The symptoms of the disease vary in severity and can vary depending on the variant. They may also be mild. Even a head cold may mean an infection.
meldungen_positive_tested_faq1_title: Why is tracing deactivated?
meldungen_positive_tested_faq1_text: After a positive test, tracing is automatically deactivated in the app. Tracing can be reactivated once you have completed your period of isolation.
language_key: en
Expand Down Expand Up @@ -620,9 +620,9 @@ en:
checkin_report_title1: Protect your contacts
checkin_report_title2: Look out for symptoms
checkin_report_title3: Get tested
checkin_report_subtitle1: You may already be infectious without realising it. Follow the rules on hygiene and social distancing and protect your loved ones and those around you.
checkin_report_subtitle1: You might have been infected without noticing. Take these precautions:\n\n- Wear a mask (until 7 days after contact)\n\n- Limit your contacts\n\n- Social distance (min. 1.5 metres)\n\n- Avoid public places
checkin_report_subtitle2: Monitor your state of health.
checkin_report_subtitle3: If you develop symptoms, get tested immediately. A coronavirus test is also advisable and recommended if you have no symptoms and are not yet fully vaccinated.
checkin_report_subtitle3: If <b>symptoms appear, get tested immediately</b> – even if you’ve been vaccinated or have recovered from COVID. A test makes sense and is recommended even if you only have slight symptoms.<br/><br/>Also <b>get tested</b> if you have <b>no symptoms</b>. You could have been infected but be symptom free. In this case you should not get tested until a few (4–7) days after the risky contact. That’s when a symptom-free infection is most likely to be detected.
meldung_detail_checkin_title: Check-in
not_thank_you_screen_title: No data sent
not_thank_you_screen_text1: No private key was sent.
Expand Down
Loading

0 comments on commit bad7446

Please sign in to comment.