mirror of
https://github.com/processwire/processwire.git
synced 2025-08-12 01:34:31 +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:
@@ -482,7 +482,7 @@ class ProcessLanguageTranslator extends Process {
|
|||||||
|
|
||||||
/** @var InputfieldForm $form */
|
/** @var InputfieldForm $form */
|
||||||
$form = $this->modules->get('InputfieldForm');
|
$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->attr('method', 'post');
|
||||||
$form->description = sprintf($this->_('Translate %1$s to %2$s'), basename($file), $this->language->title);
|
$form->description = sprintf($this->_('Translate %1$s to %2$s'), basename($file), $this->language->title);
|
||||||
$form->value = "<p>" .
|
$form->value = "<p>" .
|
||||||
|
Reference in New Issue
Block a user