diff --git a/lang/en.json b/lang/en.json index 73d903391d2..8c3f03167c3 100644 --- a/lang/en.json +++ b/lang/en.json @@ -764,7 +764,7 @@ "StepThemeSuccessfullyInstalled": "You have successfully installed the theme %1$s %2$s.", "StepThemeSuccessfullyUpdated": "You have successfully updated the theme %1$s %2$s.", "ActionActivateTheme": "Activate theme", - "BackToExtendPiwik": "Back to Extend Piwik", + "BackToExtendPiwik": "Back to Marketplace", "StepDownloadingPluginFromMarketplace": "Downloading plugin from Marketplace", "StepUnzippingPlugin": "Unzipping plugin", "StepPluginSuccessfullyInstalled": "You have successfully installed the plugin %1$s %2$s.", @@ -789,7 +789,13 @@ "PluginWebsite": "Plugin Website", "Activity": "Activity", "ByXDevelopers": "by %s developers", - "LastCommitTime": "(last commit %s})" + "LastCommitTime": "(last commit %s})", + "InfoThemeIsUsedByOtherUsersAsWell": "Note: the other %1$s users registered in this Piwik are also using the theme %2$s.", + "NumUpdatesAvailable": "%s Update(s) available", + "InfoThemeUpdateIsRecommended": "Update your themes to enjoy the latest version.", + "InfoPluginUpdateIsRecommended": "Update your plugins now to benefit from the latest improvements." + "NumDownloadsLatestVersion": "Latest version: %s Downloads", + "EnjoyAnotherLookAndFeelOfThemes": "Enjoy another look & feel" }, "CoreUpdater": { "PluginDescription": "Piwik updating mechanism", diff --git a/plugins/CorePluginsAdmin/templates/extend.twig b/plugins/CorePluginsAdmin/templates/extend.twig index 17ace18371d..2ad91038db7 100644 --- a/plugins/CorePluginsAdmin/templates/extend.twig +++ b/plugins/CorePluginsAdmin/templates/extend.twig @@ -50,7 +50,7 @@
-

Enjoy another look & feel

+

{{ 'CorePluginsAdmin_EnjoyAnotherLookAndFeelOfThemes'|translate }}

by installing a new theme from the Marketplace

diff --git a/plugins/CorePluginsAdmin/templates/macros.twig b/plugins/CorePluginsAdmin/templates/macros.twig index 679b3f67ac5..ecc130a39d9 100644 --- a/plugins/CorePluginsAdmin/templates/macros.twig +++ b/plugins/CorePluginsAdmin/templates/macros.twig @@ -21,7 +21,7 @@ {% if plugin.repositoryChangelogUrl %} - {{ plugin.currentVersion }} => {{ plugin.latestVersion }} + {{ plugin.currentVersion }} => {{ plugin.latestVersion }} {% else %} {{ plugin.currentVersion }} => {{ plugin.latestVersion }} {% endif %} diff --git a/plugins/CorePluginsAdmin/templates/pluginDetails.twig b/plugins/CorePluginsAdmin/templates/pluginDetails.twig index 7ed857445ed..a8902ae571a 100644 --- a/plugins/CorePluginsAdmin/templates/pluginDetails.twig +++ b/plugins/CorePluginsAdmin/templates/pluginDetails.twig @@ -7,6 +7,8 @@ {{ errorMessage }} {% elseif plugin %} + {% set latestVersion = plugin.versions[plugin.versions|length - 1] %} +

{{ plugin.name }}

@@ -39,25 +41,25 @@
- {{ plugin.versions[plugin.versions|length - 1].readmeHtml.description|raw }} + {{ latestVersion.readmeHtml.description|raw }}
- {% if plugin.versions[plugin.versions|length - 1].readmeHtml.faq %} + {% if latestVersion.readmeHtml.faq %}
- {{ plugin.versions[plugin.versions|length - 1].readmeHtml.faq|raw }} + {{ latestVersion.readmeHtml.faq|raw }}
{% endif %} @@ -68,8 +70,8 @@

{% endif %} - {% if plugin.versions[plugin.versions|length - 1].readmeHtml.changelog %} - {{ plugin.versions[plugin.versions|length - 1].readmeHtml.changelog|raw }} + {% if latestVersion.readmeHtml.changelog %} + {{ latestVersion.readmeHtml.changelog|raw }} {% endif %}

{{ 'CorePluginsAdmin_History'|translate }}

@@ -86,7 +88,7 @@ {% endif %} {% endset %} - {{ 'CorePluginsAdmin_PluginVersionInfo'|translate(versionName, version.release) }} + {{ 'CorePluginsAdmin_PluginVersionInfo'|translate(versionName, version.release)|raw }} {% endfor %} @@ -109,10 +111,10 @@
{% endif %} - {% if plugin.versions[plugin.versions|length - 1].readmeHtml.support %} + {% if latestVersion.readmeHtml.support %}
- {{ plugin.versions[plugin.versions|length - 1].readmeHtml.support|raw }} + {{ latestVersion.readmeHtml.support|raw }}
{% endif %} @@ -129,7 +131,7 @@
{{ 'CorePluginsAdmin_LastUpdated'|translate }}
{{ plugin.lastUpdated }}
{{ 'General_Downloads'|translate }}
-
{{ plugin.numDownloads }}
+
{{ plugin.numDownloads }}
{{ 'CorePluginsAdmin_Developer'|translate }}
{{ pluginsMacro.pluginDeveloper(plugin.owner) }}
{{ 'CorePluginsAdmin_Authors'|translate }}
diff --git a/plugins/CorePluginsAdmin/templates/plugins.twig b/plugins/CorePluginsAdmin/templates/plugins.twig index 9062e315e23..37cade2ec45 100644 --- a/plugins/CorePluginsAdmin/templates/plugins.twig +++ b/plugins/CorePluginsAdmin/templates/plugins.twig @@ -8,7 +8,7 @@ {% if pluginsHavingUpdate|length %}

{{ pluginsHavingUpdate|length }} Update(s) available

-

{{ 'Update your plugins now to benefit from the latest improvements.'|translate }}

+

{{ 'CorePluginsAdmin_InfoPluginUpdateIsRecommended'|translate }}

{{ plugins.tablePluginUpdates(pluginsHavingUpdate, updateNonce, activateNonce, 0) }} {% endif %} diff --git a/plugins/CorePluginsAdmin/templates/themes.twig b/plugins/CorePluginsAdmin/templates/themes.twig index b0feab6b064..7fafac6c106 100644 --- a/plugins/CorePluginsAdmin/templates/themes.twig +++ b/plugins/CorePluginsAdmin/templates/themes.twig @@ -6,9 +6,9 @@
{% if pluginsHavingUpdate|length %} -

{{ pluginsHavingUpdate|length }} Update(s) available

+

{{ 'CorePluginsAdmin_NumUpdatesAvailable'|translate(pluginsHavingUpdate|length) }}

-

{{ 'Update your themes to enjoy the latest version.'|translate }}

+

{{ 'CorePluginsAdmin_InfoThemeUpdateIsRecommended'|translate }}

{{ plugins.tablePluginUpdates(pluginsHavingUpdate, updateNonce, true) }} {% endif %} @@ -17,7 +17,7 @@

{{ 'CorePluginsAdmin_ThemesDescription'|translate }} {% if otherUsersCount > 0 %} -
Note: the other {{ otherUsersCount }} users registered in this Piwik are also using the theme {{ themeEnabled }}. +
{{ 'CorePluginsAdmin_InfoThemeIsUsedByOtherUsersAsWell'|translate(otherUsersCount, themeEnabled) }} {% endif %}