[XB] Language Detect

[XB] Language Detect [Paid] 2.0.1

No permission to buy ($10.00)
An exception occurred: [Error] Class 'Locale' not found in src/addons/OzzModz/LanguageDetect/XF/Entity/User.php on line 31

  1. OzzModz\LanguageDetect\XF\Entity\User->getBrowserLanguage() in src/addons/OzzModz/LanguageDetect/Listener.php at line 23
  2. OzzModz\LanguageDetect\Listener::appPubStartEnd() in src/XF/Extension.php at line 69
  3. XF\Extension->fire() in src/XF/App.php at line 2855
  4. XF\App->fire() in src/XF/Pub/App.php at line 201
  5. XF\Pub\App->start() in src/XF/App.php at line 2349
  6. XF\App->run() in src/XF.php at line 524
  7. XF::runApp() in index.php at line 20

php 7.4
XF v2.2.10 Patch 1
 
[OzzModz] Language Detect requires PHP intl extension.

Have updated server, now running php 8.1, but 8.2 is also automatically installed with webmin in ubuntu in wsl2/windows 10
have apt-get install php-intl, have uncomment intl as extension in php.ini;
have copied intl.so from /usr/lib/php/2022... to 2021

Finally the solution was apt-get install php8.1-intl
 
With page caching enabled, if a guest loads a page in one language, the next guest gets the same language. Does anyone know a good work-around?

My config:
$config['cache']['enabled'] = true;
$config['pageCache']['enabled'] = true;
$config['cache']['context']['page']['provider'] = 'Memcached';
$config['cache']['context']['page']['config'] = [];

To reproduce: Load the page in incognito mode from two web browsers with different accept-language headers.
 
Painbaker updated [XB] Language Detect with a new update entry:

2.0.1

Confirmed XF 2.3 support
Fixed work with page caching for guests (now properly sets the cache key when automatically detecting the guest's language)

This add-on is now part of the supporter membership. Becoming a supporter gives you access to the complete set of add-ons in your tier, available for as long as your membership is active.​


Read the rest of this update entry...
 
Back
Top Bottom