Merge pull request #1527 from matrix-org/dbkr/geni18n-no-other

Don't include the |other in the translation value
This commit is contained in:
David Baker 2017-10-24 14:40:25 +01:00 committed by GitHub
commit 8b4b3565a7
2 changed files with 10 additions and 5 deletions

View file

@ -232,9 +232,14 @@ for (const path of SEARCH_PATHS) {
const trObj = {};
for (const tr of translatables) {
trObj[tr] = tr;
if (tr.includes("|") && inputTranslationsRaw[tr]) {
trObj[tr] = inputTranslationsRaw[tr];
if (tr.includes("|")) {
if (inputTranslationsRaw[tr]) {
trObj[tr] = inputTranslationsRaw[tr];
} else {
trObj[tr] = tr.split("|")[0];
}
} else {
trObj[tr] = tr;
}
}

View file

@ -154,7 +154,7 @@
"Message Pinning": "Message Pinning",
"%(displayName)s is typing": "%(displayName)s is typing",
"%(names)s and one other are typing": "%(names)s and one other are typing",
"%(names)s and %(count)s others are typing|other": "%(names)s and %(count)s others are typing|other",
"%(names)s and %(count)s others are typing|other": "%(names)s and %(count)s others are typing",
"%(names)s and %(lastPerson)s are typing": "%(names)s and %(lastPerson)s are typing",
"Failure to create room": "Failure to create room",
"Server may be unavailable, overloaded, or you hit a bug.": "Server may be unavailable, overloaded, or you hit a bug.",
@ -564,7 +564,7 @@
"Custom level": "Custom level",
"Room directory": "Room directory",
"Start chat": "Start chat",
"And %(count)s more...|other": "And %(count)s more...|other",
"And %(count)s more...|other": "And %(count)s more...",
"ex. @bob:example.com": "ex. @bob:example.com",
"Add User": "Add User",
"Something went wrong!": "Something went wrong!",