Commit 91a7ee50b4fb44a1b2e9f036f697555c912d549d
clean up "Liked by" i18n string (remove duplicate)
Matt McKegg committed on 10/28/2017, 6:34:55 AMParent: 2cb288a0dba6a17cd8c86c26d345d242585d25a5
Files changed
locales/de.json | changed |
locales/en.json | changed |
locales/es.json | changed |
locales/ki.json | changed |
locales/pt.json | changed |
plugs/message/html/meta/likes.js | changed |
locales/de.json | ||
---|---|---|
@@ -26,9 +26,9 @@ | ||
26 | 26 | "View full thread": "Ganzen Thread anzeigen", |
27 | 27 | " replied": " hat geantwortet", |
28 | 28 | " replied to ": " hat geantwortet auf ", |
29 | 29 | "like": "like", |
30 | - "Liked by\n": "Mochten\n", | |
30 | + "Liked by": "Mochten", | |
31 | 31 | " and ": " und ", |
32 | 32 | " followed ": " folgt ", |
33 | 33 | " subscribed to ": " abonierte ", |
34 | 34 | "likes": "likes", |
@@ -167,5 +167,5 @@ | ||
167 | 167 | "Click to block syncing with this person and hide their posts": "Klicke hier um die synchronisation mit dieser Person zu blockieren und deren posts zu verbergen", |
168 | 168 | "Block": "Blocken", |
169 | 169 | "External Link": "External Link", |
170 | 170 | "blocked ": "blocked " |
171 | -} | |
171 | +} |
locales/en.json | ||
---|---|---|
@@ -26,9 +26,8 @@ | ||
26 | 26 | "View full thread": "View full thread", |
27 | 27 | " replied": " replied", |
28 | 28 | " replied to ": " replied to ", |
29 | 29 | "like": "like", |
30 | - "Liked by\n": "Liked by\n", | |
31 | 30 | " and ": " and ", |
32 | 31 | " followed ": " followed ", |
33 | 32 | " subscribed to ": " subscribed to ", |
34 | 33 | "likes": "likes", |
locales/es.json | ||
---|---|---|
@@ -24,9 +24,8 @@ | ||
24 | 24 | "View full thread": "Ver hilo completo", |
25 | 25 | " replied": " respondió", |
26 | 26 | " replied to ": " respondió a ", |
27 | 27 | "like": "Me gusta", |
28 | - "Liked by\n": "Les gusta a\n", | |
29 | 28 | " and ": " y ", |
30 | 29 | " followed ": " siguie a ", |
31 | 30 | "subscribed to ": "se suscribió a ", |
32 | 31 | " subscribed to ": "se suscribió a ", |
@@ -171,5 +170,5 @@ | ||
171 | 170 | "However, since they follow someone that follows you, they should be able to see your posts.": "Sin embargo, dado que sigue a alguien que te sigue, debería poder ver tus publicaciones.", |
172 | 171 | "They might not be able to see your posts either.": "Es posible que tampoco pueda ver tus publicaciones.", |
173 | 172 | "However, since you follow someone that follows them, you should be able to see their latest posts.": "Sin embargo, dado que sigues a alguien que lo sigue, deberías poder ver sus últimas publicaciones.", |
174 | 173 | "An error occured while publishing your message.": "Se produjo un error al publicar su mensaje." |
175 | -} | |
174 | +} |
locales/ki.json | ||
---|---|---|
@@ -27,9 +27,9 @@ | ||
27 | 27 | " others": " دوسروں", |
28 | 28 | " liked ": " پسند کیا ", |
29 | 29 | "word, @key, #channel": "لفظ, @کلید, #چینل", |
30 | 30 | "like": "کی طرح", |
31 | - "Liked by\n": "پسند\n", | |
31 | + "Liked by": "پسند", | |
32 | 32 | "likes": "پسند کرتا ہے", |
33 | 33 | "Write a private reply": "نجی جواب", |
34 | 34 | "Write a public reply": "پبلک جواب", |
35 | 35 | "Publishing...": "پبلشنگ ...", |
locales/pt.json | ||
---|---|---|
@@ -27,9 +27,9 @@ | ||
27 | 27 | "View full thread": "Ver conversa completa", |
28 | 28 | " replied": " respondeu", |
29 | 29 | " replied to ": " respondeu a ", |
30 | 30 | "like": "gosto", |
31 | - "Liked by\n": "Gostado por\n", | |
31 | + "Liked by": "Gostado por", | |
32 | 32 | " and ": " e ", |
33 | 33 | " followed ": " seguiu a ", |
34 | 34 | " subscribed to ": " subscreveu-se a ", |
35 | 35 | "likes": "gosta", |
plugs/message/html/meta/likes.js | ||
---|---|---|
@@ -19,19 +19,19 @@ | ||
19 | 19 | |
20 | 20 | function likeCount (likes) { |
21 | 21 | if (likes.length) { |
22 | 22 | return [' ', h('a.likes', { |
23 | - title: names(likes), | |
23 | + title: nameList(i18n('Liked by'), likes), | |
24 | 24 | href: '#', |
25 | 25 | 'ev-click': send(displayLikes, likes) |
26 | 26 | }, [`${likes.length} ${likes.length === 1 ? i18n('like') : i18n('likes')}`])] |
27 | 27 | } |
28 | 28 | } |
29 | 29 | |
30 | - function names (ids) { | |
30 | + function nameList (prefix, ids) { | |
31 | 31 | var items = map(ids, api.about.obs.name) |
32 | - return computed([items], (names) => { | |
33 | - return i18n('Liked by\n') + names.map((n) => `- ${n}`).join('\n') | |
32 | + return computed([prefix, items], (prefix, names) => { | |
33 | + return (prefix ? (prefix + '\n') : '') + names.map((n) => `- ${n}`).join('\n') | |
34 | 34 | }) |
35 | 35 | } |
36 | 36 | |
37 | 37 | function displayLikes (likes) { |
Built with git-ssb-web