From 1f37faad42edb7fd73f3c850f47c4135c7ad9d71 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Mon, 9 Sep 2019 18:09:21 -0400 Subject: [PATCH] Fix plurilzation regex --- locales/el.json | 30 +++++++++++++++--------------- locales/en-US.json | 30 +++++++++++++++--------------- locales/it.json | 32 ++++++++++++++++---------------- 3 files changed, 46 insertions(+), 46 deletions(-) diff --git a/locales/el.json b/locales/el.json index 32f154a15..222b7d0a2 100644 --- a/locales/el.json +++ b/locales/el.json @@ -1,10 +1,10 @@ { "`x` subscribers": { - "(\\D|^)1(\\D|$)": "`x` συνδρομητής", + "([^0-9]|^)1([^,0-9]|$)": "`x` συνδρομητής", "": "`x` συνδρομητές" }, "`x` videos": { - "(\\D|^)1(\\D|$)": "`x` βίντεο", + "([^0-9]|^)1([^,0-9]|$)": "`x` βίντεο", "": "`x` βίντεο" }, "LIVE": "ΖΩΝΤΑΝΑ", @@ -119,11 +119,11 @@ "Token manager": "Διαχειριστής διασυνδέσεων", "Token": "Διασύνδεση", "`x` subscriptions": { - "(\\D|^)1(\\D|$)": "`x` συνδρομή", + "([^0-9]|^)1([^,0-9]|$)": "`x` συνδρομή", "": "`x` συνδρομές" }, "`x` tokens": { - "(\\D|^)1(\\D|$)": "`x` διασύνδεση", + "([^0-9]|^)1([^,0-9]|$)": "`x` διασύνδεση", "": "`x` διασυνδέσεις" }, "Import/export": "Εισαγωγή/εξαγωγή", @@ -131,7 +131,7 @@ "revoke": "ανάκληση", "Subscriptions": "Συνδρομές", "`x` unseen notifications": { - "(\\D|^)1(\\D|$)": "`x` καινούρια ειδοποίηση", + "([^0-9]|^)1([^,0-9]|$)": "`x` καινούρια ειδοποίηση", "": "`x` καινούριες ειδοποιήσεις" }, "search": "αναζήτηση", @@ -154,7 +154,7 @@ "Blacklisted regions: ": "Μη-επιτρεπτές περιοχές: ", "Shared `x`": "Μοιράστηκε το `x`", "`x` views": { - "(\\D|^)1(\\D|$)": "`x` προβολή", + "([^0-9]|^)1([^,0-9]|$)": "`x` προβολή", "": "`x` προβολές" }, "Premieres in `x`": "Πρώτη προβολή σε `x`", @@ -188,13 +188,13 @@ "Could not get channel info.": "Αδύναμια εύρεσης πληροφοριών καναλιού.", "Could not fetch comments": "Αδυναμία λήψης σχολίων", "View `x` replies": { - "(\\D|^)1(\\D|$)": "Προβολή `x` απάντησης", + "([^0-9]|^)1([^,0-9]|$)": "Προβολή `x` απάντησης", "": "Προβολή `x` απαντήσεων" }, "`x` ago": "Πριν `x`", "Load more": "Φόρτωση περισσότερων", "`x` points": { - "(\\D|^)1(\\D|$)": "`x` βαθμός", + "([^0-9]|^)1([^,0-9]|$)": "`x` βαθμός", "": "`x` βαθμοί" }, "Could not create mix.": "Αδυναμία δημιουργίας μίξης.", @@ -315,31 +315,31 @@ "Yoruba": "Γιορούμπα", "Zulu": "Ζουλού", "`x` years": { - "(\\D|^)1(\\D|$)": "`x` χρόνο", + "([^0-9]|^)1([^,0-9]|$)": "`x` χρόνο", "": "`x` χρόνια" }, "`x` months": { - "(\\D|^)1(\\D|$)": "`x` μήνα", + "([^0-9]|^)1([^,0-9]|$)": "`x` μήνα", "": "`x` μήνες" }, "`x` weeks": { - "(\\D|^)1(\\D|$)": "`x` εβδομάδα", + "([^0-9]|^)1([^,0-9]|$)": "`x` εβδομάδα", "": "`x` εβδομάδες" }, "`x` days": { - "(\\D|^)1(\\D|$)": "`x` ημέρα", + "([^0-9]|^)1([^,0-9]|$)": "`x` ημέρα", "": "`x` ημέρες" }, "`x` hours": { - "(\\D|^)1(\\D|$)": "`x` ώρα", + "([^0-9]|^)1([^,0-9]|$)": "`x` ώρα", "": "`x` ώρες" }, "`x` minutes": { - "(\\D|^)1(\\D|$)": "`x` λεπτό", + "([^0-9]|^)1([^,0-9]|$)": "`x` λεπτό", "": "`x` λεπτά" }, "`x` seconds": { - "(\\D|^)1(\\D|$)": "`x` δευτερόλεπτο", + "([^0-9]|^)1([^,0-9]|$)": "`x` δευτερόλεπτο", "": "`x` δευτερόλεπτα" }, "Fallback comments: ": "Εναλλακτικά σχόλια: ", diff --git a/locales/en-US.json b/locales/en-US.json index 580d9ead5..8aaeee48d 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -1,10 +1,10 @@ { "`x` subscribers": { - "(\\D|^)1(\\D|$)": "`x` subscriber", + "([^0-9]|^)1([^,0-9]|$)": "`x` subscriber", "": "`x` subscribers" }, "`x` videos": { - "(\\D|^)1(\\D|$)": "`x` video", + "([^0-9]|^)1([^,0-9]|$)": "`x` video", "": "`x` videos" }, "LIVE": "LIVE", @@ -119,11 +119,11 @@ "Token manager": "Token manager", "Token": "Token", "`x` subscriptions": { - "(\\D|^)1(\\D|$)": "`x` subscription", + "([^0-9]|^)1([^,0-9]|$)": "`x` subscription", "": "`x` subscriptions" }, "`x` tokens": { - "(\\D|^)1(\\D|$)": "`x` token", + "([^0-9]|^)1([^,0-9]|$)": "`x` token", "": "`x` tokens" }, "Import/export": "Import/export", @@ -131,7 +131,7 @@ "revoke": "revoke", "Subscriptions": "Subscriptions", "`x` unseen notifications": { - "(\\D|^)1(\\D|$)": "`x` unseen notification", + "([^0-9]|^)1([^,0-9]|$)": "`x` unseen notification", "": "`x` unseen notifications" }, "search": "search", @@ -154,7 +154,7 @@ "Blacklisted regions: ": "Blacklisted regions: ", "Shared `x`": "Shared `x`", "`x` views": { - "(\\D|^)1(\\D|$)": "`x` views", + "([^0-9]|^)1([^,0-9]|$)": "`x` views", "": "`x` views" }, "Premieres in `x`": "Premieres in `x`", @@ -188,13 +188,13 @@ "Could not get channel info.": "Could not get channel info.", "Could not fetch comments": "Could not fetch comments", "View `x` replies": { - "(\\D|^)1(\\D|$)": "View `x` reply", + "([^0-9]|^)1([^,0-9]|$)": "View `x` reply", "": "View `x` replies" }, "`x` ago": "`x` ago", "Load more": "Load more", "`x` points": { - "(\\D|^)1(\\D|$)": "`x` point", + "([^0-9]|^)1([^,0-9]|$)": "`x` point", "": "`x` points" }, "Could not create mix.": "Could not create mix.", @@ -315,31 +315,31 @@ "Yoruba": "Yoruba", "Zulu": "Zulu", "`x` years": { - "(\\D|^)1(\\D|$)": "`x` year", + "([^0-9]|^)1([^,0-9]|$)": "`x` year", "": "`x` years" }, "`x` months": { - "(\\D|^)1(\\D|$)": "`x` month", + "([^0-9]|^)1([^,0-9]|$)": "`x` month", "": "`x` months" }, "`x` weeks": { - "(\\D|^)1(\\D|$)": "`x` week", + "([^0-9]|^)1([^,0-9]|$)": "`x` week", "": "`x` weeks" }, "`x` days": { - "(\\D|^)1(\\D|$)": "`x` day", + "([^0-9]|^)1([^,0-9]|$)": "`x` day", "": "`x` days" }, "`x` hours": { - "(\\D|^)1(\\D|$)": "`x` hour", + "([^0-9]|^)1([^,0-9]|$)": "`x` hour", "": "`x` hours" }, "`x` minutes": { - "(\\D|^)1(\\D|$)": "`x` minute", + "([^0-9]|^)1([^,0-9]|$)": "`x` minute", "": "`x` minutes" }, "`x` seconds": { - "(\\D|^)1(\\D|$)": "`x` second", + "([^0-9]|^)1([^,0-9]|$)": "`x` second", "": "`x` seconds" }, "Fallback comments: ": "Fallback comments: ", diff --git a/locales/it.json b/locales/it.json index 74d426759..c2cd5d309 100644 --- a/locales/it.json +++ b/locales/it.json @@ -1,10 +1,10 @@ { "`x` subscribers": { - "(\\D|^)1(\\D|$)": "`x` iscritto", + "([^0-9]|^)1([^,0-9]|$)": "`x` iscritto", "": "`x` iscritti" }, "`x` videos": { - "(\\D|^)1(\\D|$)": "`x` video", + "([^0-9]|^)1([^,0-9]|$)": "`x` video", "": "`x` video" }, "LIVE": "IN DIRETTA", @@ -119,11 +119,11 @@ "Token manager": "Gestione dei gettoni", "Token": "Gettone", "`x` subscriptions": { - "(\\D|^)1(\\D|$)": "`x` iscrizione", + "([^0-9]|^)1([^,0-9]|$)": "`x` iscrizione", "": "`x` iscrizioni" }, "`x` tokens": { - "(\\D|^)1(\\D|$)": "`x` gettone", + "([^0-9]|^)1([^,0-9]|$)": "`x` gettone", "": "`x` gettoni" }, "Import/export": "Importa/esporta", @@ -131,7 +131,7 @@ "revoke": "revoca", "Subscriptions": "Iscrizioni", "`x` unseen notifications": { - "(\\D|^)1(\\D|$)": "`x` notifica non visualizzata", + "([^0-9]|^)1([^,0-9]|$)": "`x` notifica non visualizzata", "": "`x` notifiche non visualizzate" }, "search": "Cerca", @@ -154,7 +154,7 @@ "Blacklisted regions: ": "Regioni in lista nera: ", "Shared `x`": "Condiviso `x`", "`x` views": { - "(\\D|^)1(\\D|$)": "`x` visualizzazione", + "([^0-9]|^)1([^,0-9]|$)": "`x` visualizzazione", "": "`x` visualizzazioni" }, "Premieres in `x`": "", @@ -188,13 +188,13 @@ "Could not get channel info.": "Impossibile ottenere le informazioni del canale.", "Could not fetch comments": "Impossibile recuperare i commenti", "View `x` replies": { - "(\\D|^)1(\\D|$)": "Visualizza `x` risposta", + "([^0-9]|^)1([^,0-9]|$)": "Visualizza `x` risposta", "": "Visualizza `x` risposte" }, "`x` ago": "`x` fa", "Load more": "Carica altro", "`x` points": { - "(\\D|^)1(\\D|$)": "`x` punto", + "([^0-9]|^)1([^,0-9]|$)": "`x` punto", "": "`x` punti" }, "Could not create mix.": "Impossibile creare il mix.", @@ -315,31 +315,31 @@ "Yoruba": "Yoruba", "Zulu": "Zulu", "`x` years": { - "(\\D|^)1(\\D|$)": "`x` anno", + "([^0-9]|^)1([^,0-9]|$)": "`x` anno", "": "`x` anni" }, "`x` months": { - "(\\D|^)1(\\D|$)": "`x` mese", + "([^0-9]|^)1([^,0-9]|$)": "`x` mese", "": "`x` mesi" }, "`x` weeks": { - "(\\D|^)1(\\D|$)": "`x` settimana", + "([^0-9]|^)1([^,0-9]|$)": "`x` settimana", "": "`x` settimane" }, "`x` days": { - "(\\D|^)1(\\D|$)": "`x` giorno", + "([^0-9]|^)1([^,0-9]|$)": "`x` giorno", "": "`x` giorni" }, "`x` hours": { - "(\\D|^)1(\\D|$)": "`x` ora", + "([^0-9]|^)1([^,0-9]|$)": "`x` ora", "": "`x` ore" }, "`x` minutes": { - "(\\D|^)1(\\D|$)": "`x` minuto", + "([^0-9]|^)1([^,0-9]|$)": "`x` minuto", "": "`x` minuti" }, "`x` seconds": { - "(\\D|^)1(\\D|$)": "`x` secondo", + "([^0-9]|^)1([^,0-9]|$)": "`x` secondo", "": "`x` secondi" }, "Fallback comments: ": "Commenti alternativi: ", @@ -367,4 +367,4 @@ "Playlists": "Playlist", "Community": "Comunità", "Current version: ": "Versione attuale: " -} +} \ No newline at end of file