Some fixes

This commit is contained in:
Thomas 2020-05-03 14:00:07 +02:00
parent 2a9e99b3bf
commit cc2fc34ec9
2 changed files with 3 additions and 2 deletions

View file

@ -131,7 +131,7 @@ class FediPlanController extends AbstractController
/** /**
* @Route("/{_locale}/schedule", name="schedule", defaults={"_locale"="en"}, requirements={"_locale": "%allowed_language%"}) * @Route("/{_locale}/schedule", name="schedule", defaults={"_locale"="en"}, requirements={"_locale": "%allowed_language%"})
*/ */
public function schedule(Request $request, Mastodon_api $mastodon_api) public function schedule(Request $request, Mastodon_api $mastodon_api, TranslatorInterface $translator)
{ {
$compose = new Compose(); $compose = new Compose();
@ -233,7 +233,7 @@ class FediPlanController extends AbstractController
$compose->getPollOptions()->add($pollOption2); $compose->getPollOptions()->add($pollOption2);
$session->getFlashBag()->add( $session->getFlashBag()->add(
'Success', 'Success',
'The message has been scheduled' $translator->trans('common.schedule_success', [], 'fediplan', 'en')
); );
$form = $this->createForm(ComposeType::class, $compose, ['user' => $this->getUser()]); $form = $this->createForm(ComposeType::class, $compose, ['user' => $this->getUser()]);
} }

View file

@ -19,6 +19,7 @@ common:
edit: Edit edit: Edit
start: Start start: Start
proceed_confirm: Do you want to proceed? proceed_confirm: Do you want to proceed?
schedule_success: The message has been scheduled
start_upload: Start upload start_upload: Start upload
counter: Counter counter: Counter
license: License license: License