ptomter Posted February 19, 2019 Share Posted February 19, 2019 Cant find language strings for the categories for the domains. Please advice. Should have translated them into my language.. 0 Quote Link to comment Share on other sites More sharing options...
lims Posted February 19, 2019 Share Posted February 19, 2019 (edited) 1 hour ago, ptomter said: Cant find language strings for the categories for the domains. Please advice. Should have translated them into my language.. you can added new string in your language by modify thus line in domainregister.tpl {foreach $categoriesWithCounts as $category => $count} <a href="#" data-category="{$category}" class="label label-default">{lang key="domainTldCategory.$category" defaultValue=$category} ({$count})</a> {/foreach} to manual setup <div class="tld-filters"> <a href="#" data-category="Popular" class="label label-default">Popular (1)</a> <a href="#" data-category="gTLD" class="label label-default">gTLD (1)</a> <a href="#" data-category="Other" class="label label-default">Other (1)</a> </div> please not, if you have added new extension domain, you must edit your themes in domainregister.tpl Edited February 19, 2019 by lims 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted February 19, 2019 Share Posted February 19, 2019 for a more detailed explanation of what @lims suggested, see the post I wrote below - as you'll have to create Language Overrides for each language that you want to translate these categories. looking at it again, I will add that you could do this with an action hook instead of modifying the template, though you would still likely need to create the overrides for the categories. 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted March 23, 2019 Share Posted March 23, 2019 I have translate the Domain Categories directly in th DB and this is OK. But what is missing is to be able to choose which categories each TLD should belong to. This is also in the database, but it becomes too difficult with hundreds of TLDs when you only see an ID. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted March 24, 2019 Share Posted March 24, 2019 21 hours ago, web2008 said: I have translate the Domain Categories directly in th DB and this is OK. it's OK in the sense that it's worked for you - but that relies on your site a) only using one language and b) WHMCS not adding any new domain categories in the last 4 years.... if either of those change, your method fails. 21 hours ago, web2008 said: But what is missing is to be able to choose which categories each TLD should belong to. ... or even add TLDs... for example, your ccTLD isn't even on the list of TLDs by default - I can see that you must have added it to the Popular category on your installation, but for everyone else, it would come under the "Other" category (e.g those TLDs in domain pricing that aren't in the TLD categories table)... and I think that 'other' category was only added a year or two after launch of the feature. 21 hours ago, web2008 said: This is also in the database, but it becomes too difficult with hundreds of TLDs when you only see an ID. you just need to understand the relationship between the three TLD database tables. FWIW, i've attached a list of the current TLD/Category assignments in v7.7.1 - some of your categories will be different, but you'll at least be able to see which TLDs are assigned to which categories. TLD List.html 0 Quote Link to comment Share on other sites More sharing options...
web2008 Posted March 24, 2019 Share Posted March 24, 2019 Thanks, but anyway, all of this should have been possible from inside the WHMCS and it is strange that this is still not possible, after so many years! 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.