This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
litespeed_wiki:cpanel:cpanel-plugin [2018/07/18 13:50]
Michael Alegre created
litespeed_wiki:cpanel:cpanel-plugin [2019/06/25 20:34]
Lisa Clarke [Translations] Proofreading
Line 1: Line 1:
-====== cPanel Plugin - LiteSpeed Cache For WordPress Management ​======+====== cPanel Plugin - LiteSpeed ​Web Cache Manager ​======
 +===== Where Did This Plugin Come From? =====
 +The LiteSpeed Web Cache Manager plugin for cPanel is a companion plugin to the LiteSpeed plugin for WHM. If a hosting provider is using both LiteSpeed Web Server and the LiteSpeed plugin for WHM, they are able to [[litespeed_wiki:​cpanel:​whm-plugin-cpanel-plugin#​installation|install this plugin]] for their cPanel end-users.
 + {{ :​litespeed_wiki:​cpanel:​cpanel-v1.0.0-advanced-icon.png?​nolink |}}
Line 55: Line 60:
   * **Log File Level**: This setting controls the highest level of log messages that will be written to the log file located at ''/​home/​$user/​lscmData/​ls_webcachemgr.log''​. The default value is ''​INFO''​.   * **Log File Level**: This setting controls the highest level of log messages that will be written to the log file located at ''/​home/​$user/​lscmData/​ls_webcachemgr.log''​. The default value is ''​INFO''​.
 +===== Translations =====
 +As of the cPanel user-end plugin v1.2.2, a ''​lang/''​ directory has been added. This will allow custom translations for plugin text. The translation language used is based on the cPanel dashboard locale selected.
 +The ''​lang/''​ directory will also contain any translations submitted to LiteSpeed for inclusion in the plugin package. Be aware that these translations will be bypassed if any custom translations for that locale exist in the ''​lang/​cust/''​ directory.
 +Instructions for translating the plugin are included in the plugin'​s ''​lang/​cust/''​ directory ''​README''​ file, included below:
 +Welcome to the LiteSpeed Web Cache Manager user-end cPanel plugin'​s '​lang/​cust'​
 +directory. This directory will contain any custom translations you would like
 +to use with the LiteSpeed Web Cache Manager user-end cPanel plugin.
 +This file will now explain how to provide your own custom translations for this
 +plugin based on the language selected in a user's cPanel dashboard.
 +1) Choose a cPanel locale to provide translations for. A full list of available
 +locales can be found through WHM under
 +Home >> Locales >> View Available Locales
 +2) Once a locale has been chosen, create a directory under this plugin'​s
 +'​lang/​cust'​ directory for that locale using the same name as the locale. Then
 +create an '​en_US'​ directory under that, and an '​LC_MESSAGES'​ directory under the
 +'​en_US'​ directory.
 +Using French as an example (cPanel locale '​fr'​) our directory structure would look
 +Note: The '​en_US'​ directory exists as a workaround for linux systems that may not
 +contain certain locales, as it is commonly installed on most systems. If you
 +are running into issues getting your translations to appear, please make sure
 +that the '​en_US.utf8'​ locale is installed on your system.
 +Note: As long as the '​lang/​cust/​fr'​ directory exists, this directory will always be
 +used when looking for translation files, regardless of wheather or not any
 +exist. If you would like to go back to checking the official translation
 +directory under '​lang',​ you must remove/​rename the '​cust'​ locale directory.
 +3) Generate a '​messages.po'​ file for your desired language based on the
 +'​messages.pot'​ file provided under the '​lang'​ directory, or copy the '​messages.po'​ file
 +for your locale if it has already been officially provided under the '​lang'​
 +4) Update the generated '​messages.po'​ file with any new translations. You should
 +also update the '​messages.po'​ file header info if you have not already.
 +5) Generate a '​messages.mo'​ file based on your updated '​messages.po'​ file and place
 +both the '​messages.po'​ and '​messages.mo'​ files under the custom '​LC_MESSAGES'​
 +directory created earlier.
 +6) Visit the LiteSpeed user-end cPanel plugin through a cPanel dashboard and
 +confirm that your translations are appearing.
 +CAUTION: Any custom translation files will be lost upon uninstalling the
 +LiteSpeed Web Cache Manager user-end cPanel plugin. Please keep a copy of any
 +custom translation files elsewhere to prevent loosing these files.
 +That should be all that is required to begin using custom translations with the
 +LiteSpeed user-end cPanel plugin.
 +If you would like to have your custom translations included as official
 +translations in future versions of the LiteSpeed Web Cache Manager user-end
 +cPanel plugin, or have updates for exisitng official translations,​ please send
 +an email including the locale and both '​messages.po'​ and '​messages.mo'​ files to
  • Admin
  • Last modified: 2021/10/06 15:20
  • by Lisa Clarke