Skip to content

Commit

Permalink
feat: add placeholder string keys
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Feb 2, 2024
1 parent 418677b commit 16cba9b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 1 addition & 5 deletions js/src/forum/components/Poll/PollList.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,12 @@ export default class PollList extends Component {
} else if (state.hasNext()) {
loading = (
<Button className="Button" onclick={state.loadNext.bind(state)}>
{/* TODO: IS THIS THE RIGHT KEY? MAYBE WE SHOULD MAKE A NEW ONE? */}
{app.translator.trans('core.forum.discussion_list.load_more_button')}
{app.translator.trans('fof-polls.forum.polls_list.load_more_button')}
</Button>
);
}

if (state.isEmpty()) {
{
/* TODO: IS THIS THE RIGHT KEY? MAYBE WE SHOULD MAKE A NEW ONE? */
}
const text = app.translator.trans('fof-polls.forum.polls_list.empty_text');
return (
<div className="PollList">
Expand Down
4 changes: 4 additions & 0 deletions resources/locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ fof-polls:
start_poll_button: Start Global Poll
cannot_start_poll_button: Cannot Start Poll

polls_list:
empty_text: It looks as though there are no community wide polls here.
load_more_button: Load More

composer_discussion:
add_poll: => fof-polls.forum.moderation.add
edit_poll: => fof-polls.forum.moderation.edit
Expand Down

0 comments on commit 16cba9b

Please sign in to comment.