GS exposes a GS Javascript object in the <head> section of every back-end page, which has an i18n property. Every string stored in this object is retrievable with the JS function i18n().
This commit adds 2 strings CONFIRM_UNINSTALL (a.cancel) and CONFIRM_UNINSTALL_ALL (#uninstall button) to every language file (for Norwegian?? it's just an English placeholder, the rest is translated), adds a script tag in gs_plugin_installer.php before the form, and updates script.js.
Admittedly how it's done is not very sophisticated (see gs_plugin_installer.php), but better to have it translated already, later it can be replaced with a foreach mechanism/ AJAX call.
GS exposes a
GS
Javascript object in the<head>
section of every back-end page, which has ani18n
property. Every string stored in this object is retrievable with the JS functioni18n()
.This commit adds 2 strings
CONFIRM_UNINSTALL
(a.cancel) andCONFIRM_UNINSTALL_ALL
(#uninstall button) to every language file (for Norwegian?? it's just an English placeholder, the rest is translated), adds a script tag ings_plugin_installer.php
before the form, and updatesscript.js
.Admittedly how it's done is not very sophisticated (see
gs_plugin_installer.php
), but better to have it translated already, later it can be replaced with aforeach
mechanism/ AJAX call.