git ssb

0+

alanz / patchwork



forked from Matt McKegg / patchwork

Commit 91a7ee50b4fb44a1b2e9f036f697555c912d549d

clean up "Liked by" i18n string (remove duplicate)

Matt McKegg committed on 10/28/2017, 6:34:55 AM
Parent: 2cb288a0dba6a17cd8c86c26d345d242585d25a5

Files changed

locales/de.jsonchanged
locales/en.jsonchanged
locales/es.jsonchanged
locales/ki.jsonchanged
locales/pt.jsonchanged
plugs/message/html/meta/likes.jschanged
locales/de.jsonView
@@ -26,9 +26,9 @@
2626 "View full thread": "Ganzen Thread anzeigen",
2727 " replied": " hat geantwortet",
2828 " replied to ": " hat geantwortet auf ",
2929 "like": "like",
30- "Liked by\n": "Mochten\n",
30+ "Liked by": "Mochten",
3131 " and ": " und ",
3232 " followed ": " folgt ",
3333 " subscribed to ": " abonierte ",
3434 "likes": "likes",
@@ -167,5 +167,5 @@
167167 "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",
168168 "Block": "Blocken",
169169 "External Link": "External Link",
170170 "blocked ": "blocked "
171-}
171+}
locales/en.jsonView
@@ -26,9 +26,8 @@
2626 "View full thread": "View full thread",
2727 " replied": " replied",
2828 " replied to ": " replied to ",
2929 "like": "like",
30- "Liked by\n": "Liked by\n",
3130 " and ": " and ",
3231 " followed ": " followed ",
3332 " subscribed to ": " subscribed to ",
3433 "likes": "likes",
locales/es.jsonView
@@ -24,9 +24,8 @@
2424 "View full thread": "Ver hilo completo",
2525 " replied": " respondió",
2626 " replied to ": " respondió a ",
2727 "like": "Me gusta",
28- "Liked by\n": "Les gusta a\n",
2928 " and ": " y ",
3029 " followed ": " siguie a ",
3130 "subscribed to ": "se suscribió a ",
3231 " subscribed to ": "se suscribió a ",
@@ -171,5 +170,5 @@
171170 "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.",
172171 "They might not be able to see your posts either.": "Es posible que tampoco pueda ver tus publicaciones.",
173172 "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.",
174173 "An error occured while publishing your message.": "Se produjo un error al publicar su mensaje."
175-}
174+}
locales/ki.jsonView
@@ -27,9 +27,9 @@
2727 " others": " دوسروں",
2828 " liked ": " پسند کیا ",
2929 "word, @key, #channel": "لفظ, @کلید, #چینل",
3030 "like": "کی طرح",
31- "Liked by\n": "پسند\n",
31+ "Liked by": "پسند",
3232 "likes": "پسند کرتا ہے",
3333 "Write a private reply": "نجی جواب",
3434 "Write a public reply": "پبلک جواب",
3535 "Publishing...": "پبلشنگ ...",
locales/pt.jsonView
@@ -27,9 +27,9 @@
2727 "View full thread": "Ver conversa completa",
2828 " replied": " respondeu",
2929 " replied to ": " respondeu a ",
3030 "like": "gosto",
31- "Liked by\n": "Gostado por\n",
31+ "Liked by": "Gostado por",
3232 " and ": " e ",
3333 " followed ": " seguiu a ",
3434 " subscribed to ": " subscreveu-se a ",
3535 "likes": "gosta",
plugs/message/html/meta/likes.jsView
@@ -19,19 +19,19 @@
1919
2020 function likeCount (likes) {
2121 if (likes.length) {
2222 return [' ', h('a.likes', {
23- title: names(likes),
23+ title: nameList(i18n('Liked by'), likes),
2424 href: '#',
2525 'ev-click': send(displayLikes, likes)
2626 }, [`${likes.length} ${likes.length === 1 ? i18n('like') : i18n('likes')}`])]
2727 }
2828 }
2929
30- function names (ids) {
30+ function nameList (prefix, ids) {
3131 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')
3434 })
3535 }
3636
3737 function displayLikes (likes) {

Built with git-ssb-web