Welcome Guest. Please Login or Register  


You are here: Index > Softaculous Auto Installer > Languages and International Support > Topic : How to translate texts in mod_install.xml



Normal Mode | Print  

How to translate texts in mod_install.xml
Brijesh
Group: Softaculous Team
Post Group: Super Member
Posts: 5804
Status:
Hi,
I will explain it here :
1. In mod_install.xml you can use double curly braces instead of the original text. E.g. I want to translate the plugin name "Smart Maintenance Mode" so I will replace it as follows :
<head>{{maintenance_mode}}</head>
2. Now in mods.php in __wp_mod_settings function please globalize $softlang e.g.
global $softlang;
3. Now add your translated strings in this function after globalizing the array e.g. :
$softlang['english']['maintenance_mode'] = 'Smart Maintenance Mode';
$softlang['french']['maintenance_mode'] = 'Mode d\'entretien intelligent ';

Make sure the keys in $softlang matches the values you want to replace within double curly braces {{}} in the mod_install.xml
Let me know if you face any issues.


Edited by Brijesh : September 8, 2021, 11:47 am

-----------------------
Webuzo - Multi User Hosting Control Panel
AMPPS - Best WordPress/PHP/MySQL development tool
IP: --   


Threads
 manoaratefy   How to translate texts in mod_install.xml (1 Replies, Read 397394 times)
    |--  Brijesh   Hi, I will...   on September 8, 2021, 11:46 am

« Previous    Next »

Normal Mode | Print  



Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 30, 2025, 11:17 am.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 10  |  Page Created In:0.033