Skip to content

Commit

Permalink
Fill in forgotten strings
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Aug 31, 2024
1 parent 2890100 commit 0e961e8
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/components/compose.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ function Compose({
class={`toolbar-button ${
visibility !== 'public' && !sensitive ? 'show-field' : ''
} ${visibility !== 'public' ? 'highlight' : ''}`}
title={`Visibility: ${visibility}`}
title={visibility}
>
<Icon icon={visibilityIconsMap[visibility]} alt={visibility} />
<select
Expand Down
9 changes: 5 additions & 4 deletions src/components/poll.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Plural, t, Trans } from '@lingui/macro';
import { Plural, plural, t, Trans } from '@lingui/macro';
import { useState } from 'preact/hooks';

import shortenNumber from '../utils/shorten-number';
Expand Down Expand Up @@ -113,9 +113,10 @@ export default function Poll({
</div>
<div
class="poll-option-votes"
title={`${optionVotesCount} vote${
optionVotesCount === 1 ? '' : 's'
}`}
title={plural(optionVotesCount, {
one: `# vote`,
other: `# votes`,
})}
>
{percentage}
</div>
Expand Down
48 changes: 34 additions & 14 deletions src/locales/en.po
Original file line number Diff line number Diff line change
Expand Up @@ -1517,49 +1517,53 @@ msgstr ""
msgid "Voted"
msgstr ""

#: src/components/poll.jsx:135
#: src/components/poll.jsx:218
#: src/components/poll.jsx:222
#: src/components/poll.jsx:116
msgid "{optionVotesCount, plural, one {# vote} other {# votes}}"
msgstr "{optionVotesCount, plural, one {# vote} other {# votes}}"

#: src/components/poll.jsx:136
#: src/components/poll.jsx:219
#: src/components/poll.jsx:223
msgid "Hide results"
msgstr ""

#: src/components/poll.jsx:184
#: src/components/poll.jsx:185
msgid "Vote"
msgstr ""

#: src/components/poll.jsx:204
#: src/components/poll.jsx:206
#: src/components/poll.jsx:205
#: src/components/poll.jsx:207
#: src/pages/status.jsx:1158
#: src/pages/status.jsx:1181
msgid "Refresh"
msgstr ""

#: src/components/poll.jsx:218
#: src/components/poll.jsx:222
#: src/components/poll.jsx:219
#: src/components/poll.jsx:223
msgid "Show results"
msgstr ""

#: src/components/poll.jsx:227
#: src/components/poll.jsx:228
msgid "{votesCount, plural, one {<0>{0}</0> vote} other {<1>{1}</1> votes}}"
msgstr ""

#: src/components/poll.jsx:244
#: src/components/poll.jsx:245
msgid "{votersCount, plural, one {<0>{0}</0> voter} other {<1>{1}</1> voters}}"
msgstr ""

#: src/components/poll.jsx:264
#: src/components/poll.jsx:265
msgid "Ended <0/>"
msgstr ""

#: src/components/poll.jsx:268
#: src/components/poll.jsx:269
msgid "Ended"
msgstr ""

#: src/components/poll.jsx:271
#: src/components/poll.jsx:272
msgid "Ending <0/>"
msgstr ""

#: src/components/poll.jsx:275
#: src/components/poll.jsx:276
msgid "Ending"
msgstr ""

Expand Down Expand Up @@ -2484,6 +2488,10 @@ msgstr ""
msgid "Note: <0>Default</0> account will always be used for first load. Switched accounts will persist during the session."
msgstr ""

#: src/pages/bookmarks.jsx:25
msgid "No bookmarks yet. Go bookmark something!"
msgstr "No bookmarks yet. Go bookmark something!"

#: src/pages/bookmarks.jsx:26
msgid "Unable to load bookmarks."
msgstr ""
Expand Down Expand Up @@ -2725,6 +2733,10 @@ msgstr ""
msgid "Filtered: {0}"
msgstr ""

#: src/pages/favourites.jsx:25
msgid "No likes yet. Go like something!"
msgstr "No likes yet. Go like something!"

#: src/pages/favourites.jsx:26
msgid "Unable to load likes."
msgstr ""
Expand Down Expand Up @@ -2899,6 +2911,10 @@ msgstr ""
msgid "Unable to load posts with this tag"
msgstr ""

#: src/pages/hashtag.jsx:208
msgid "Unfollow #{hashtag}?"
msgstr "Unfollow #{hashtag}?"

#: src/pages/hashtag.jsx:223
msgid "Unfollowed #{hashtag}"
msgstr ""
Expand Down Expand Up @@ -3030,6 +3046,10 @@ msgstr ""
msgid "Failed to register application"
msgstr "Failed to register application"

#: src/pages/login.jsx:185
msgid "instance domain"
msgstr "instance domain"

#: src/pages/login.jsx:209
msgid "e.g. “mastodon.social”"
msgstr ""
Expand Down
2 changes: 1 addition & 1 deletion src/pages/bookmarks.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Bookmarks() {
<Timeline
title={t`Bookmarks`}
id="bookmarks"
emptyText={`No bookmarks yet. Go bookmark something!`}
emptyText={t`No bookmarks yet. Go bookmark something!`}
errorText={t`Unable to load bookmarks.`}
instance={instance}
fetchItems={fetchBookmarks}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/favourites.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Favourites() {
<Timeline
title={t`Likes`}
id="favourites"
emptyText={`No likes yet. Go like something!`}
emptyText={t`No likes yet. Go like something!`}
errorText={t`Unable to load likes.`}
instance={instance}
fetchItems={fetchFavourites}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/hashtag.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ function Hashtags({ media: mediaView, columnMode, ...props }) {
<MenuConfirm
subMenu
confirm={info.following}
confirmLabel={`Unfollow #${hashtag}?`}
confirmLabel={t`Unfollow #${hashtag}?`}
disabled={followUIState === 'loading' || !authenticated}
onClick={() => {
setFollowUIState('loading');
Expand Down
2 changes: 1 addition & 1 deletion src/pages/login.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ function Login() {
autocapitalize="off"
autocomplete="off"
spellCheck={false}
placeholder={`instance domain`}
placeholder={t`instance domain`}
onInput={(e) => {
setInstanceText(e.target.value);
}}
Expand Down

0 comments on commit 0e961e8

Please sign in to comment.