Commit 034b967af8e11f67b0e716b28b834e010b67711a
Add internationalisation strings.
Gordon Martin committed on 12/27/2017, 8:23:51 PMParent: ceb8fe08c9c9159165f0bf3cc567482b4c6f865c
Files changed
locales/en.json | changed |
modules/page/html/render/public.js | changed |
locales/en.json | ||
---|---|---|
@@ -196,6 +196,11 @@ | ||
196 | 196 | "one": "%s person from your network replied to this message on ", |
197 | 197 | "other": "%s people from your network replied to this message on " |
198 | 198 | }, |
199 | 199 | "(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." | |
201 | 206 | } |
modules/page/html/render/public.js | ||
---|---|---|
@@ -134,9 +134,9 @@ | ||
134 | 134 | ]), |
135 | 135 | h('div.main', [ |
136 | 136 | when( |
137 | 137 | computed([contact.isNotFollowingAnybody, loading], (a,b) => a && !b), |
138 | - renderNoVisiblePostsWarning() | |
138 | + renderNoVisiblePostsWarning(i18n) | |
139 | 139 | ), |
140 | 140 | feedView]) |
141 | 141 | ]) |
142 | 142 | |
@@ -289,14 +289,14 @@ | ||
289 | 289 | } |
290 | 290 | } |
291 | 291 | } |
292 | 292 | |
293 | -function renderNoVisiblePostsWarning() { | |
293 | +function renderNoVisiblePostsWarning(i18n) { | |
294 | 294 | 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.')) | |
299 | 299 | ])) |
300 | 300 | } |
301 | 301 | |
302 | 302 | function getType (msg) { |
Built with git-ssb-web