Search the Community
Showing results for tags 'languages'.
-
Indeed a long day. WHMCS not responding to locale info from Geolocation hooks -- uploaded the new stuff via ftp, all the files there. Set config.php there to faithfully do the right things, I guess $countryToCurrency = array( 'default' => 'EUR', 'RO' => 'RON', 'GB' => 'GBP', 'DE' => 'EUR', // NOTE: You can add more below ); $countryToLanguage = array( 'default' => 'english', 'GB' => 'english', 'US' => 'english', 'RO' => 'romanian', ); $countryToTemplate = array( 'GB' => 'hanco', 'default' => 'hanco', // NOTE: You can add more below ); $templateToLanguage = array( 'english' => 'hanco', 'romanian' => 'hanco', 'default' => 'hanco', // NOTE: You can add more below ); Do I need to make different templates for some reason for each language in the config.php? All other Geo files pristine from the latest 2.2.3 release. But really, zero locale change happening in private window as guest user ... WHMCS responds fine to logged in users, all correct that way for language, currency etc ... but that's not really the geoip doing it's thing is it? Are there any variables for the geolocation I can see? did the {debug} and $var_dumps on templates, all giving completely the wrong locale (forever thinks we're in the UK, no idea why, all en_GB in smarty, everything). No clue ... no errors in the activity logs (turned on hooks, sql, php) ... no console errors ... geolocation_hook.php loading fine, just that Geo having no effect. Suggestions where to look? Thanks!
-
- geoip
- geolocation
-
(and 3 more)
Tagged with:
-
Would anyone happen to know how to help WHMCS show the correct language in the drop-down lists in mobile view? I did insert some {$LANG.categories} and {$LANG.actions} for the option groups, but the {$productgroup.name} in line 8 of /templates/orderforms/standard_cart/sidebar-categories-collapsed.tpl seems entirely uninterested in respecting the language set. What is feeding that template? The sidebar is translated just fine in a normal-sized browser window. Bit of a head-scratcher! Thanks for any hints, cheers!
- 7 replies
-
- languages
- Products and services
-
(and 2 more)
Tagged with:
-
Hi, I recently upgraded from 6.3 to 7.2 and one of my rewrite rules stop working. All my website links were rewited to open diffrent languages like English: http://www.mypage.co.uk/en/ Spanish: http://www.mypage.co.uk/es/ All pages are properly redirecting but not home page. So http://www.mypage.co.uk/en/ and http://www.mypage.co.uk/en/index.php returns 404 Page Here is my code RewriteRule ^en/Web-Hosting.htm$ cart.php?gid=1&language=english [NC,L,QSA] RewriteRule ^en/Email-Hosting.htm$ cart.php?gid=3&language=english [NC,L,QSA] RewriteRule ^en/Domain-Search.htm$ cart.php?a=add&domain=register&language=english [NC,L,QSA] RewriteRule ^en/Domain-Transfer.htm$ cart.php?a=add&domain=transfer&language=english [NC,L,QSA] RewriteRule ^en/Cart-View.htm$ cart.php?a=view&language=english [NC,L,QSA] RewriteRule ^en/(.*)\.php $1.php?language=english [NC,L,QSA] RewriteRule ^en/?$ ?language=english [NC,L,QSA] RewriteRule ^en/(.*) $1 [NC,L,QSA] I know my solution is not perfect but all used to work in WHMCS 6.3
-
Hello, is it possible to make, for example a Google ad, go to a specific link to offer e.g. dutch users the dutch language? We rather do not display the flags pulldown on our website but we would like to offer a landing page in the user his own language.
-
As you install WHMCS straight-from-the-box, you have nearly two dozens of different languages the user can select... some of them even quite exotic, like Macedonian or Estonian. But, if I want to keep only few of them (in order also to refine and customizing the translation of my theme), how can I delete some of them from the menu?