1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-10 16:54:44 +02:00

Fix issue processwire/processwire-issues#410 by making ProcessLanguageTranslator give preference to GET var (rather than session) with language ID, by adding part of PR #93

This commit is contained in:
Ryan Cramer
2017-10-30 05:48:31 -04:00
parent 0f4cf01ec2
commit c778056991

View File

@@ -482,7 +482,7 @@ class ProcessLanguageTranslator extends Process {
/** @var InputfieldForm $form */
$form = $this->modules->get('InputfieldForm');
$form->attr('action', "./?textdomain=$textdomain");
$form->attr('action', "./?textdomain=$textdomain&language_id={$this->language->id}");
$form->attr('method', 'post');
$form->description = sprintf($this->_('Translate %1$s to %2$s'), basename($file), $this->language->title);
$form->value = "<p>" .