mirror of
https://framagit.org/tom79/fediplan.git
synced 2025-04-05 21:51:50 +02:00
Some fixes
This commit is contained in:
parent
2a9e99b3bf
commit
cc2fc34ec9
2 changed files with 3 additions and 2 deletions
|
@ -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()]);
|
||||||
}
|
}
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue