scripts: fix translations
Translations with a comma in the key are rewritten to be on a single line. But this failed when the comma was just preceded by a dot (like in `etc.,`). Fix the script so that it works even in those cases.
This commit is contained in:
parent
80336b431e
commit
d110ee558f
@ -406,14 +406,14 @@
|
||||
"Add a time slot": "Ouzhpennañ un eur",
|
||||
"Choose dates for your poll": "Dibabit deiziadoù ho sontadeg",
|
||||
"Copy times from the first day": "Eilañ eurioù an devezh kentañ war an devezhioù all",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "Evit kement devezh diuzet e c'hallit dibab eurioù (da skouer: \"8e\", \"8:30\", \"8e-10e\", \"diouzh noz\", hag all.)",
|
||||
"Poll dates (2 of 3)": "Dibab an deiziadoù (2 war 3)",
|
||||
"Remove a day": "Dilemel an devezh diwezhañ",
|
||||
"Remove a time slot": "Dileml an eur diwezhañ",
|
||||
"Remove all days": "Dilemel an holl zevezhioù",
|
||||
"Remove all times": "Dilemel an holl eurioù",
|
||||
"Remove this day": "Dilemel an devezh-mañ",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "Evit krouiñ ur sontadeg deiziadoù eo ret deoc'h kinnig daou zibab d'an nebeutañ (div eur evit an hevelep devezh pe daou zevezh).",
|
||||
"You can add or remove additional days and times with the buttons": "Gallout a rit ouzhpennañ pe dilemel devezhioù hag eurioù ouzhpenn gant an afelloù"
|
||||
},
|
||||
"Step 3": {
|
||||
|
@ -406,14 +406,14 @@
|
||||
"Add a time slot": "Afegeix un espai horari",
|
||||
"Choose dates for your poll": "Tria dates per a la teva enquesta",
|
||||
"Copy times from the first day": "Copia els temps del primer dia",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "Per cada dia seleccionat, pots suggerir temps de trobada (per exemple, \"8h\", \"8:30\", \"8h-10h\", \"tarda\", etc.).",
|
||||
"Poll dates (2 of 3)": "Dates de l'enquesta (2 de 3)",
|
||||
"Remove a day": "Treure un dia",
|
||||
"Remove a time slot": "Treure un espai horari",
|
||||
"Remove all days": "Treure tots els dies",
|
||||
"Remove all times": "Treure tots els temps",
|
||||
"Remove this day": "Treu aquest dia",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "Per programar un esdeveniment, hauràs de proporcionar almenys dues opcions (per exemple, dos espais horaris en un o dos dies).",
|
||||
"You can add or remove additional days and times with the buttons": "Podeu afegir o treure dies i hores addicionals amb els botons"
|
||||
},
|
||||
"Step 3": {
|
||||
|
@ -406,14 +406,14 @@
|
||||
"Add a time slot": "Eine Uhrzeit hinzufügen",
|
||||
"Choose dates for your poll": "Terminvorschläge für Ihre Umfrage machen",
|
||||
"Copy times from the first day": "Uhrzeiten des ersten Tags kopieren",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "Für jeden ausgewählten Tag können Sie fakultativ Uhrzeiten vorschlagen (z. B.: \"8h\", \"8:30\", \"8h-10h\", \"abends\", usw.)",
|
||||
"Poll dates (2 of 3)": "Umfragedaten (2 von 3)",
|
||||
"Remove a day": "Einen Tag entfernen",
|
||||
"Remove a time slot": "Eine Uhrzeit entfernen",
|
||||
"Remove all days": "Alle Tage entfernen",
|
||||
"Remove all times": "Alle Uhrzeiten entfernen",
|
||||
"Remove this day": "Diesen Tag entfernen",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "Um eine Terminabsprache zu konfigurieren, müssen Sie mindestens zwei alternative Zeitpunkte vorschlagen (zwei Uhrzeiten am gleichen Tag oder verschiedene Tage).",
|
||||
"You can add or remove additional days and times with the buttons": "Sie können weitere Tage und Uhrzeiten über die Buttons hinzufügen oder entfernen"
|
||||
},
|
||||
"Step 3": {
|
||||
|
@ -406,14 +406,14 @@
|
||||
"Add a time slot": "Añadir un horario",
|
||||
"Choose dates for your poll": "Elija las fechas de su encuesta",
|
||||
"Copy times from the first day": "Copiar los horarios del primer día en los otros días",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "Para cada día seleccionado, puede elegir o no, horarios de reunión (por ejemplo: \"8:00\", \"8:30\", \"8:00-10:00\", \"noche\", etc.)",
|
||||
"Poll dates (2 of 3)": "Elegir las fechas (2 de 3)",
|
||||
"Remove a day": "Eliminar un día",
|
||||
"Remove a time slot": "Eliminar una franja horaria",
|
||||
"Remove all days": "Borrar todos los días",
|
||||
"Remove all times": "Eliminar todos los horarios",
|
||||
"Remove this day": "Eliminar este dia",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "Para programar un evento, tiene que proponer por lo menos dos opciones (dos horarios para un día, o dos días).",
|
||||
"You can add or remove additional days and times with the buttons": "Puede agregar o borrar días y horarios con los botones"
|
||||
},
|
||||
"Step 3": {
|
||||
|
@ -406,14 +406,14 @@
|
||||
"Add a time slot": "Ajouter un horaire",
|
||||
"Choose dates for your poll": "Choisissez les dates de votre sondage",
|
||||
"Copy times from the first day": "Reporter les horaires du premier jour sur les autres jours",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "Pour chacun des jours sélectionnés, vous avez la possibilité de choisir ou non, des heures de réunion (par exemple : \"8h\", \"8:30\", \"8h-10h\", \"soir\", etc.)",
|
||||
"Poll dates (2 of 3)": "Choix des dates (2 sur 3)",
|
||||
"Remove a day": "Supprimer le dernier jour",
|
||||
"Remove a time slot": "Supprimer le dernier horaire",
|
||||
"Remove all days": "Effacer tous les jours",
|
||||
"Remove all times": "Effacer tous les horaires",
|
||||
"Remove this day": "Supprimer ce jour",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "Pour créer un sondage spécial dates vous devez proposer au moins deux choix (deux horaires pour une même journée ou deux jours).",
|
||||
"You can add or remove additional days and times with the buttons": "Vous pouvez ajouter ou supprimer des jours et horaires supplémentaires avec les boutons"
|
||||
},
|
||||
"Step 3": {
|
||||
|
@ -406,14 +406,14 @@
|
||||
"Add a time slot": "Idősáv hozzáadása",
|
||||
"Choose dates for your poll": "Válassz dátumokat a szavazáshoz",
|
||||
"Copy times from the first day": "Idősávok átmásolása az első napból",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "Minden egyes napnál szabadon adhatsz meg találkozási időket (például „8h”, „8:30”, „8h-10h”, „este” stb.)",
|
||||
"Poll dates (2 of 3)": "Szavazási dátumok (2/3)",
|
||||
"Remove a day": "Nap eltávolítása",
|
||||
"Remove a time slot": "Idősáv eltávolítása",
|
||||
"Remove all days": "Összes nap eltávolítása",
|
||||
"Remove all times": "Összes idősáv eltávolítása",
|
||||
"Remove this day": "Nap eltávolítása",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "Egy esemény ütemezéséhez legalább két lehetőséget kell megadni (azaz két idősávot egy nap, vagy két napot).",
|
||||
"You can add or remove additional days and times with the buttons": "A gombokkal további napokat és idősávokat adhatsz hozzá."
|
||||
},
|
||||
"Step 3": {
|
||||
|
@ -406,14 +406,14 @@
|
||||
"Add a time slot": "Aggiungere un orario",
|
||||
"Choose dates for your poll": "Scegli le date del tuo sondaggio",
|
||||
"Copy times from the first day": "Copia gli orari del primo giorno",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "Per ogni giorno selezionato, hai la possibilità di scegliere o meno, le ore dell'incontro (per esempio : \"8h\", \"8:30\", \"8h-10h\", \"sera\", etc.)",
|
||||
"Poll dates (2 of 3)": "Scelta delle date (2 di 3)",
|
||||
"Remove a day": "Eliminare l'ultimo giorno",
|
||||
"Remove a time slot": "Eliminare l'ultimo orario",
|
||||
"Remove all days": "Cancellare tutti i giorni",
|
||||
"Remove all times": "Cancellare tutti gli orari",
|
||||
"Remove this day": "Eliminare questo giorno",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "Per creare un evento, è meglio proporre almeno 2 scelte (2 orari per lo stesso giorno o 2 giorni).",
|
||||
"You can add or remove additional days and times with the buttons": "Puoi aggiungere o eliminare dei giorni et orari ulteriori con i pulsanti"
|
||||
},
|
||||
"Step 3": {
|
||||
|
@ -406,14 +406,14 @@
|
||||
"Add a time slot": "Voeg een tijd toe",
|
||||
"Choose dates for your poll": "Kies de datums voor je datumprikker",
|
||||
"Copy times from the first day": "Kopieer de tijden van de eerste dag",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "Voor elke geselecteerde dag kan je tijden voorstellen. (Bijvoorbeeld ‘8h’, ‘8:30’, ‘8h-10h’, ‘avond’, enz.)",
|
||||
"Poll dates (2 of 3)": "Te prikken datums (2 van 3)",
|
||||
"Remove a day": "Verwijder een dag",
|
||||
"Remove a time slot": "Verwijder een tijd",
|
||||
"Remove all days": "Verwijder alle dagen",
|
||||
"Remove all times": "Verwijder alle tijden",
|
||||
"Remove this day": "Verwijder deze dag",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "Om een datum te prikken, moet je tenminste twee keuzes geven. (Bijvoorbeeld twee tijden op één dag of twee verschillende dagen).",
|
||||
"You can add or remove additional days and times with the buttons": "Je kan extra dagen of tijden toevoegen en verwijderen met deze knoppen"
|
||||
},
|
||||
"Step 3": {
|
||||
|
@ -406,14 +406,14 @@
|
||||
"Add a time slot": "Ajustar un orari",
|
||||
"Choose dates for your poll": "Causissètz las datas de vòstre sondatge",
|
||||
"Copy times from the first day": "Reportar los oraris del primièr jorn suls autres jorns",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)",
|
||||
"For each selected day, you are free to suggest meeting times (e.g., \"8h\", \"8:30\", \"8h-10h\", \"evening\", etc.)": "Per cada jorn seleccionat avètz la possibilitat de causir o non d’oras de reünion (per exemple : \"8o\", \"8o30\", \"8o-10o\", \"ser\", etc.)",
|
||||
"Poll dates (2 of 3)": "Causida de las datas (2 sus 3)",
|
||||
"Remove a day": "Suprimir lo darrièr jorn",
|
||||
"Remove a time slot": "Suprimir lo darrièr orari",
|
||||
"Remove all days": "Suprimir totes los jorns",
|
||||
"Remove all times": "Suprimir totes los oraris",
|
||||
"Remove this day": "Suprimir aqueste jorn",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).",
|
||||
"To schedule an event you need to provide at least two choices (e.g., two time slots on one day or two days).": "Per crear un sondatge especial datas vos cal prepausar almens doas causidas (dos oraris per la meteissa jornada o dos jorns).",
|
||||
"You can add or remove additional days and times with the buttons": "Podètz apondre o suprimir de jorns e oraris suplementaris amb los botons"
|
||||
},
|
||||
"Step 3": {
|
||||
|
@ -4,7 +4,12 @@ po2json -i po/en.po -t locale/en.json --progress none -o po/default.json
|
||||
for i in po/*.po
|
||||
do
|
||||
j=$(echo $i | cut -d '.' -f 1 | cut -d '/' -f 2)
|
||||
vim -E -c "while search('^\\(#: \\..*\\)\\(\\n\\_^#: \\([^.].*\\)\\)\\+') | execute 'normal J' | s/ #: /,/ | endwhile" -c 'x' -- $i
|
||||
|
||||
# When there is a comma in a key, Zanata replaces it by a newline. And po2json doesn't like this.
|
||||
# Edit the po file, to restore split key names on a single line again.
|
||||
vim -E -c "while search('^\\(#: \\..*\\)\\(\\n\\_^#: \\([^.].*\\)\\)\\+') | s/\n#: /,/ | endwhile" -c 'x' -- $i
|
||||
|
||||
# Convert the po file to json
|
||||
po2json -i $i -t po/default.json --progress none | scripts/renest_json.pl > po/$j.json
|
||||
mv po/$j.json locale/
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user