HelgeSverre / gs-plugin-installer

A Plugin Installer for GetSimple CMS
GNU General Public License v3.0
2 stars 0 forks source link

Translated the uninstall confirm messages #11

Closed webketje closed 9 years ago

webketje commented 9 years ago

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.

HelgeSverre commented 9 years ago

Thanks for contributing :D !