Jump to content

Help Required


Emretorx

Recommended Posts

  • 3 weeks later...
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

Link to comment
Share on other sites

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.

D5vnpN5.png

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>
Link to comment
Share on other sites

16 hours ago, brian! said:

modüller şifrelenmemiştir, bu nedenle modülün kendi / templates dizinindeki "clientArea.tpl" dosyasını düzenlemeniz yeterlidir.

D5vnpN5.png

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" 

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated