In Backend add a menu item for menu type Privacy > Create Request and in frontend visit this menu item. You will find that several language strings like
Labels |
Added:
?
|
@infograf768 could you take a look please as I dont really understand the plugin language files. Basically the language file for the plugin is not being loaded
I guess 4.0 has changed something somewhere.
It’s a known issue with system plugins and that onBeforeExecute event I have said just needs flat out reverted. There’s an issue still open that still hasn’t been addressed.
In the mean while it looks like this patch solves the issue (same code as in actionlogs as stated above.:
diff --git a/plugins/system/privacyconsent/privacyconsent.php b/plugins/system/privacyconsent/privacyconsent.php
index 82926e4..4fb949a 100644
--- a/plugins/system/privacyconsent/privacyconsent.php
+++ b/plugins/system/privacyconsent/privacyconsent.php
@@ -33,12 +33,4 @@
{
/**
- * Load the language file on instantiation.
- *
- * @var boolean
- * @since 3.9.0
- */
- protected $autoloadLanguage = true;
-
- /**
* Application object.
*
@@ -72,4 +64,17 @@
/**
+ * Listener for the `onAfterInitialise` event
+ *
+ * @return void
+ *
+ * @since 4.0
+ */
+ public function onAfterInitialise()
+ {
+ // Load plugin language files.
+ $this->loadLanguage();
+ }
+
+ /**
* Adds additional fields to the user editing form
*
@waader
Can you test?
This looks like the fix I had to do in other plugins so it should be good to go BUT the root issue will need to be fixed as it will break lots of plugins
@infograf768: Yes, that works.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-11-26 09:38:33 |
Closed_By | ⇒ | SharkyKZ |
Closed_By | SharkyKZ | ⇒ | joomla-cms-bot |
Set to "closed" on behalf of @SharkyKZ by The JTracker Application at issues.joomla.org/joomla-cms/26715
Please test PR #27155.
The correct language file is not being loaded - looking at it now