Emretorx Posted October 6, 2020 Share Posted October 6, 2020 Hi i have a question i want to localize the whois extension which is whois for client but i coulnt find any documentation about it i wonder community can help me best regards. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 22, 2020 Share Posted October 22, 2020 On 06/10/2020 at 12:52, Emretorx said: Hi i have a question i want to localize the whois extension which is whois for client but i coulnt find any documentation about it i wonder community can help me do you mean you want to show whois info to a client when they make a search ? https://marketplace.whmcs.com/product/4795-whois-for-clients 1 Quote Link to comment Share on other sites More sharing options...
Emretorx Posted October 26, 2020 Author Share Posted October 26, 2020 On 22.10.2020 at 19:03, brian! said: Arama yapan bir müşteriye whois bilgilerini göstermek istediğini mi söylüyorsun? https://marketplace.whmcs.com/product/4795-whois-for-clients I installed this module. but the outputs are in english how can i translate this into another language 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 27, 2020 Share Posted October 27, 2020 On 26/10/2020 at 07:56, Emretorx said: I installed this module. but the outputs are in english how can i translate this into another language the modules not encrypted, so you should just need to edit the "clientArea.tpl" file in the module's own /templates directory. and change the text in the lines i've added *** to... <div class="row"> <div class="col-lg-12 col-lg-offset-3"> <form method="POST" action="{$moduleLink}" class="form-inline" > <div class="col-lg-12 align-content-center"> <div class="input-group col-lg-8"> <input type="text" class="form-control input-lg" placeholder="example.com" name="domainName" value="{$domainName}" /> <span class="input-group-btn"> <button class="btn btn-primary btn-lg" type="submit" > ***GET WHOIS*** </button> </span> </div> </div> </form> </div> </div> <br> <br> <div class="row"> {if !empty($whoisData) } <div class="panel panel-primary"> <div class="panel-heading">***WHOIS Data for <strong>{$domainName}***</strong></div> <br> <div class="row"> <div class="col-lg-10 col-md-offset-1"> <div class="alert alert-warning" role="alert"> <span class="glyphicon glyphicon-info-sign" aria-hidden="true"></span> <span style="font-size:14px">***This domain name is {$whoisData['status']}***</span> </div> </div> </div> <div class="panel-body"> {$whoisData['whois']} </div> </div> {/if} </div> 1 Quote Link to comment Share on other sites More sharing options...
Emretorx Posted October 28, 2020 Author Share Posted October 28, 2020 16 hours ago, brian! said: modüller şifrelenmemiştir, bu nedenle modülün kendi / templates dizinindeki "clientArea.tpl" dosyasını düzenlemeniz yeterlidir. ve *** eklediğim satırlardaki metni değiştirin ... THNKS Brian, I know you are a genius I know this but https://prnt.sc/v8h80f How can I translate the fields I have drawn in red into another language. Such as "Unavailable", "Created on" 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 29, 2020 Share Posted October 29, 2020 On 28/10/2020 at 08:34, Emretorx said: How can I translate the fields I have drawn in red into another language. you should be able to translate the unavailable / available text by changing (in clientArea.tpl)... <span style="font-size:14px">bu alan {$whoisData['status']}</span> to... <span style="font-size:14px">bu alan {lang key="whois.`$whoisData['status']`" defaultValue=$whoisData['status']}</span> and then you'll need to add the last two lines below Language Overrides to an /overrides/turkish.php file (forgive the Turkish translations if they're wrong!).. <?php $_LANG['whois']['unavailable'] = "kullanılamıyor"; $_LANG['whois']['available'] = "kullanılabilir"; with regards to the whois output (the larger red box), the API function used is just returning the complete output it receives from the whois server - it would be a pain to translate it because every whois server gives a slightly different output, which could change at any time... 1 Quote Link to comment Share on other sites More sharing options...
Emretorx Posted October 30, 2020 Author Share Posted October 30, 2020 thanks brian 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.