Fill in forgotten strings

This commit is contained in:
Lim Chee Aun 2024-08-31 22:55:23 +08:00
parent 289010073a
commit 0e961e87a4
7 changed files with 44 additions and 23 deletions

View file

@ -1154,7 +1154,7 @@ function Compose({
class={`toolbar-button ${ class={`toolbar-button ${
visibility !== 'public' && !sensitive ? 'show-field' : '' visibility !== 'public' && !sensitive ? 'show-field' : ''
} ${visibility !== 'public' ? 'highlight' : ''}`} } ${visibility !== 'public' ? 'highlight' : ''}`}
title={`Visibility: ${visibility}`} title={visibility}
> >
<Icon icon={visibilityIconsMap[visibility]} alt={visibility} /> <Icon icon={visibilityIconsMap[visibility]} alt={visibility} />
<select <select

View file

@ -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 { useState } from 'preact/hooks';
import shortenNumber from '../utils/shorten-number'; import shortenNumber from '../utils/shorten-number';
@ -113,9 +113,10 @@ export default function Poll({
</div> </div>
<div <div
class="poll-option-votes" class="poll-option-votes"
title={`${optionVotesCount} vote${ title={plural(optionVotesCount, {
optionVotesCount === 1 ? '' : 's' one: `# vote`,
}`} other: `# votes`,
})}
> >
{percentage} {percentage}
</div> </div>

View file

@ -1517,49 +1517,53 @@ msgstr ""
msgid "Voted" msgid "Voted"
msgstr "" msgstr ""
#: src/components/poll.jsx:135 #: src/components/poll.jsx:116
#: src/components/poll.jsx:218 msgid "{optionVotesCount, plural, one {# vote} other {# votes}}"
#: src/components/poll.jsx:222 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" msgid "Hide results"
msgstr "" msgstr ""
#: src/components/poll.jsx:184 #: src/components/poll.jsx:185
msgid "Vote" msgid "Vote"
msgstr "" msgstr ""
#: src/components/poll.jsx:204 #: src/components/poll.jsx:205
#: src/components/poll.jsx:206 #: src/components/poll.jsx:207
#: src/pages/status.jsx:1158 #: src/pages/status.jsx:1158
#: src/pages/status.jsx:1181 #: src/pages/status.jsx:1181
msgid "Refresh" msgid "Refresh"
msgstr "" msgstr ""
#: src/components/poll.jsx:218 #: src/components/poll.jsx:219
#: src/components/poll.jsx:222 #: src/components/poll.jsx:223
msgid "Show results" msgid "Show results"
msgstr "" msgstr ""
#: src/components/poll.jsx:227 #: src/components/poll.jsx:228
msgid "{votesCount, plural, one {<0>{0}</0> vote} other {<1>{1}</1> votes}}" msgid "{votesCount, plural, one {<0>{0}</0> vote} other {<1>{1}</1> votes}}"
msgstr "" msgstr ""
#: src/components/poll.jsx:244 #: src/components/poll.jsx:245
msgid "{votersCount, plural, one {<0>{0}</0> voter} other {<1>{1}</1> voters}}" msgid "{votersCount, plural, one {<0>{0}</0> voter} other {<1>{1}</1> voters}}"
msgstr "" msgstr ""
#: src/components/poll.jsx:264 #: src/components/poll.jsx:265
msgid "Ended <0/>" msgid "Ended <0/>"
msgstr "" msgstr ""
#: src/components/poll.jsx:268 #: src/components/poll.jsx:269
msgid "Ended" msgid "Ended"
msgstr "" msgstr ""
#: src/components/poll.jsx:271 #: src/components/poll.jsx:272
msgid "Ending <0/>" msgid "Ending <0/>"
msgstr "" msgstr ""
#: src/components/poll.jsx:275 #: src/components/poll.jsx:276
msgid "Ending" msgid "Ending"
msgstr "" msgstr ""
@ -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." msgid "Note: <0>Default</0> account will always be used for first load. Switched accounts will persist during the session."
msgstr "" 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 #: src/pages/bookmarks.jsx:26
msgid "Unable to load bookmarks." msgid "Unable to load bookmarks."
msgstr "" msgstr ""
@ -2725,6 +2733,10 @@ msgstr ""
msgid "Filtered: {0}" msgid "Filtered: {0}"
msgstr "" 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 #: src/pages/favourites.jsx:26
msgid "Unable to load likes." msgid "Unable to load likes."
msgstr "" msgstr ""
@ -2899,6 +2911,10 @@ msgstr ""
msgid "Unable to load posts with this tag" msgid "Unable to load posts with this tag"
msgstr "" msgstr ""
#: src/pages/hashtag.jsx:208
msgid "Unfollow #{hashtag}?"
msgstr "Unfollow #{hashtag}?"
#: src/pages/hashtag.jsx:223 #: src/pages/hashtag.jsx:223
msgid "Unfollowed #{hashtag}" msgid "Unfollowed #{hashtag}"
msgstr "" msgstr ""
@ -3030,6 +3046,10 @@ msgstr ""
msgid "Failed to register application" msgid "Failed to register application"
msgstr "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 #: src/pages/login.jsx:209
msgid "e.g. “mastodon.social”" msgid "e.g. “mastodon.social”"
msgstr "" msgstr ""

View file

@ -22,7 +22,7 @@ function Bookmarks() {
<Timeline <Timeline
title={t`Bookmarks`} title={t`Bookmarks`}
id="bookmarks" id="bookmarks"
emptyText={`No bookmarks yet. Go bookmark something!`} emptyText={t`No bookmarks yet. Go bookmark something!`}
errorText={t`Unable to load bookmarks.`} errorText={t`Unable to load bookmarks.`}
instance={instance} instance={instance}
fetchItems={fetchBookmarks} fetchItems={fetchBookmarks}

View file

@ -22,7 +22,7 @@ function Favourites() {
<Timeline <Timeline
title={t`Likes`} title={t`Likes`}
id="favourites" id="favourites"
emptyText={`No likes yet. Go like something!`} emptyText={t`No likes yet. Go like something!`}
errorText={t`Unable to load likes.`} errorText={t`Unable to load likes.`}
instance={instance} instance={instance}
fetchItems={fetchFavourites} fetchItems={fetchFavourites}

View file

@ -205,7 +205,7 @@ function Hashtags({ media: mediaView, columnMode, ...props }) {
<MenuConfirm <MenuConfirm
subMenu subMenu
confirm={info.following} confirm={info.following}
confirmLabel={`Unfollow #${hashtag}?`} confirmLabel={t`Unfollow #${hashtag}?`}
disabled={followUIState === 'loading' || !authenticated} disabled={followUIState === 'loading' || !authenticated}
onClick={() => { onClick={() => {
setFollowUIState('loading'); setFollowUIState('loading');

View file

@ -182,7 +182,7 @@ function Login() {
autocapitalize="off" autocapitalize="off"
autocomplete="off" autocomplete="off"
spellCheck={false} spellCheck={false}
placeholder={`instance domain`} placeholder={t`instance domain`}
onInput={(e) => { onInput={(e) => {
setInstanceText(e.target.value); setInstanceText(e.target.value);
}} }}