From 16cba9b54800b05ff9104cc60639b3f021588fe8 Mon Sep 17 00:00:00 2001 From: Davide Iadeluca Date: Fri, 2 Feb 2024 13:36:11 +0100 Subject: [PATCH] feat: add placeholder string keys --- js/src/forum/components/Poll/PollList.js | 6 +----- resources/locale/en.yml | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/js/src/forum/components/Poll/PollList.js b/js/src/forum/components/Poll/PollList.js index 5acf0163..e6f9d308 100644 --- a/js/src/forum/components/Poll/PollList.js +++ b/js/src/forum/components/Poll/PollList.js @@ -26,16 +26,12 @@ export default class PollList extends Component { } else if (state.hasNext()) { loading = ( ); } 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 (
diff --git a/resources/locale/en.yml b/resources/locale/en.yml index fb2f6d01..6bc5237b 100755 --- a/resources/locale/en.yml +++ b/resources/locale/en.yml @@ -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