If you have a multilanguage site, on the Privacy consent plugin, if you use a language replacement string, it does not get translated.
For example use:
COM_USER_PRIVACY_CONSENT_SHORT_TOS: "Text in Spanish"
COM_USER_PRIVACY_CONSENT_SHORT_TOS: "Text in English"
On the registration form, the replacement string should show.
The constant string is shown instead.
This can be solved changing file /plugins/system/privacyconsent/field/privacy.php line 41:
FROM THIS:
$privacynote = !empty($this->element['note']) ? $this->element['note'] : Text::_('PLG_SYSTEM_PRIVACYCONSENT_NOTE_FIELD_DEFAULT');
TO THIS:
$privacynote = !empty($this->element['note']) ? Text::($this->element['note']) : Text::('PLG_SYSTEM_PRIVACYCONSENT_NOTE_FIELD_DEFAULT');
I didnt check if the redirection text can use translation strings, but maybe it has the same problem.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-12-07 13:02:54 |
Closed_By | ⇒ | mbabker |
Ok, thanks for your attention.
In my opinion a regular user is not aware of this, and its not easy to find the correct translation string for this. Whenever a textfield is available, i think its easier to create your own string than finding which one is the one to override. Not to say that most possibly the user dont even think that his own string will not work. Thats what happened to me.
But its fine, im sure the team already thought about this, and the used method is the best...
Regards!
As explained in https://docs.joomla.org/J3.x:Privacy#Short_Privacy_Policy the text of that input area is not designed to be translated. If you want to have a translated string you should create a language override for the
PLG_SYSTEM_PRIVACYCONSENT_NOTE_FIELD_DEFAULT
key.Closing as this is the intended system behavior.