git ssb

10+

Matt McKegg / patchwork



Commit 034b967af8e11f67b0e716b28b834e010b67711a

Add internationalisation strings.

Gordon Martin committed on 12/27/2017, 8:23:51 PM
Parent: ceb8fe08c9c9159165f0bf3cc567482b4c6f865c

Files changed

locales/en.jsonchanged
modules/page/html/render/public.jschanged
locales/en.jsonView
@@ -196,6 +196,11 @@
196196 "one": "%s person from your network replied to this message on ",
197197 "other": "%s people from your network replied to this message on "
198198 },
199199 "(you)": "(you)",
200- "Information": "Information"
200+ "Information": "Information",
201+
202+ "You are not following anybody.": "You are not following anybody",
203+ "You may not be able to see new posts and replies.": "You may not be able to see new posts and replies.",
204+ "You can only see new posts from people you follow, and people that they follow.": "You can only see new posts from people you follow, and people that they follow.",
205+ "Follow one or more users to see some new posts.": "Follow one or more users to see some new posts."
201206 }
modules/page/html/render/public.jsView
@@ -134,9 +134,9 @@
134134 ]),
135135 h('div.main', [
136136 when(
137137 computed([contact.isNotFollowingAnybody, loading], (a,b) => a && !b),
138- renderNoVisiblePostsWarning()
138+ renderNoVisiblePostsWarning(i18n)
139139 ),
140140 feedView])
141141 ])
142142
@@ -289,14 +289,14 @@
289289 }
290290 }
291291 }
292292
293-function renderNoVisiblePostsWarning() {
293+function renderNoVisiblePostsWarning(i18n) {
294294 return h('div', {classList: 'PublicFeed main'}, h('section -notFollowingAnyoneWarning', [
295- h('h1', '⚠️ You are not following anybody.'),
296- h('h3', `You may not be able to see new posts and replies.`),
297- h('h3', 'You can only see new posts from people you follow, and people that they follow.'),
298- h('h3', 'Follow one or more users to see some new posts.')
295+ h('h1', i18n('You are not following anybody.')),
296+ h('h3', i18n(`You may not be able to see new posts and replies.`)),
297+ h('h3', i18n('You can only see new posts from people you follow, and people that they follow.')),
298+ h('h3', i18n('Follow one or more users to see some new posts.'))
299299 ]))
300300 }
301301
302302 function getType (msg) {

Built with git-ssb-web