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:
@@ -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>" .
|
||||
|
Reference in New Issue
Block a user