0
Dear Saleem,
There is an issue we’ve encountered with the application. While the desktop version of the application supports multiple language options, but when run from a mobile device currently does not.
We have tryied using Safari, Chroom, and Firefox and all have the same issue.
This discrepancy is impacting the user experience for our mobile users who rely on the language support features available on the desktop.
Could you please look into this matter and provide guidance on how we might enable multi-language support in the mobile device as well?
Regards.
0
You can try adding the following code in the themes\default\admin\views\header.php
file at line 70
. This will allow users to switch languages on mobile devices, just like on the desktop version.
<a class="btn" data-placement="bottom" data-toggle="dropdown" href="#">
<img src="<?= base_url('assets/images/' . $Settings->user_language . '.png'); ?>" alt="">
</a>
<ul class="dropdown-menu pull-right">
<?php
$scanned_lang_dir = array_map(function ($path) {
return basename($path);
}, glob(APPPATH . 'language/*', GLOB_ONLYDIR));
foreach ($scanned_lang_dir as $entry) { ?>
<li>
<a href="<?= admin_url('welcome/language/' . $entry); ?>">
<img src="<?= base_url('assets/images/' . $entry . '.png'); ?>" class="language-img">
<?= ucwords($entry); ?>
</a>
</li>
<?php } ?>
<li class="divider"></li>
<li>
<a href="<?= admin_url('welcome/toggle_rtl') ?>">
<i class="fa fa-align-<?= $Settings->user_rtl ? 'right' : 'left'; ?>"></i>
<?= lang('toggle_alignment') ?>
</a>
</li>
</ul>
This should allow mobile users to access the multi-language dropdown and toggle RTL alignment.
My name is @Enyinnaya Gift. I am an Independent Software Developer
with in-depth knowledge of the SMA system. I have done a lot of customizations for many happy clients across the globe. One of my recent projects is a WooCommerce eCommerce/Web Shop Integration to seamlessly synchronize your inventory with WooCommerce. This integration allows you to manage products, stocks, and orders directly from your SMA software, eliminating the need to update multiple systems and enabling you to launch an online shop within minutes.
You can check out highlights and a demo of my latest customization by Clicking HERE - Highlights
You can also reach me via any of the following mediums for a real-time discussion on your customization request:
enyinnayag
genyinnaya
[email protected]
+2348068355192
0
Hi @Enyinnaya Gift,
Thank you for reply, the solution you provided solved the issue.
We use Cookies
We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.