Wrong italian language in empty wishlist

20.12.2024 10:01
#1
ste981
Joomshopping forum user no avatar
Name: stefano
10.09.2015
Сообщения: 45
Quote
Wrong italian language in empty wishlist

In the frontend it always appeared “Your wishlist is empty” in English and not in Italian

In the folder:
\components\com_jshopping\templates\default\cart I modified the Wishlist file from:

<div class="wishlist_empty_text"><?php print Text::_('JSHOP_WISHLIST_EMPTY') ?></div>
to
<div class="wishlist_empty_text"><?php print Text::_('JSHOP_WISHLIST_IS_EMPTY') ?></div>
(add IS)

Because it recalls the “it-IT” file, in the \components\com_jshopping\lang folder:

define('_JSHOP_WISHLIST_IS_EMPTY', 'La tua lista dei desideri è vuota');

Did I do something right?


Последнее изменение: 20.12.2024 10:02
 
20.12.2024 10:28
#2
admin
(Support Team)
User admin
Name: Admin
05.08.2010
Сообщения: 28147
Quote
Aw: Wrong italian language in empty wishlist

install Italian 3.11.6-5.0.2
https://www.webdesigner-profi.de/joomla-webdesign/shop/languages/italian.html?lang=en

For JoomShopping 5 need edit
components\com_jshopping\language\it-IT\com_jshopping.ini


Последнее изменение: 20.12.2024 10:29
 
20.12.2024 15:45
#3
ste981
Joomshopping forum user no avatar
Name: stefano
10.09.2015
Сообщения: 45
Quote
Aw: Wrong italian language in empty wishlist

Ok thanks, with Italian 3.11.6-5.0.2 (instead of 3.11.6-5.0.0), the translation “Your wishlist is empty” it works in Italian

But I had to insert in the file a translation that don't exist:

JSHOP_PRODUCT_AVAILABLE="Disponibile"


Последнее изменение: 20.12.2024 15:46
 
10.07.2025 12:54
#4
vitalevae070
Joomshopping forum user no avatar
Name: Витальева Елена
10.07.2025
Сообщения: 2
Quote
Aw: Wrong italian language in empty wishlist

Here's a professional and helpful response you can use:

---

Yes, you're on the right track! ????

By changing the key from `JSHOP_WISHLIST_EMPTY` to `JSHOP_WISHLIST_IS_EMPTY` in your template file and ensuring that this new key is correctly defined in the Italian language file (`it-IT.php`), you've effectively overridden the default text with your desired translation.

✅ What you did:

* Updated the template file to use a specific language constant: `JSHOP_WISHLIST_IS_EMPTY`
* Made sure that this constant is properly defined in the Italian language file

As long as `define('_JSHOP_WISHLIST_IS_EMPTY', 'La tua lista dei desideri è vuota');` exists in your `it-IT.php` language file and the language is correctly loaded, it will now display the message in Italian as expected.

???? Just make sure:

* You’re not duplicating translation keys (check if `JSHOP_WISHLIST_EMPTY` already exists and is unused now)
* The language file you're editing is actually the one being loaded by Joomla for that language

Great job customizing the user experience!

 


Copyrights MAXXmarketing GmbH. Alle Rechte vorbehalten
Durch die Nutzung dieser Website stimme ich zu, dass Cookies zur optimalen Gestaltung der Website sowie zur Analyse der Nutzung der Website verwendet werden. Weiterführende Informationen finden Sie hier. OK, einverstanden.