Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: [SOLVED] Multilingual issue

[SOLVED] Multilingual issue 8 years 4 months ago #13441

Hello,

I am developing a mutilingual website (Italian - English). Everything works correctly except from the content of CleanMart theme which remains in english even if I switch the site to italian language.
Here is what I did (according to your instructions):
I made a copy of en-GB.plg_flexibleTemplate.ini, translated into italian, renamed as it-IT.plg_flexibleTemplate.ini, saved into it-IT folder (ROOT>administrator>language>it-IT) and uploaded to the server. But, as I told above, the CleanMart content doesn't switch to italian as Virtuemart and Joomla do. What am I missing? Please help, thank you.

Joomla 3.4.6 - Virtuemart 3.0.12

Best regards,
Maurizio
Last Edit: 8 years 4 months ago by Maurizio Urbani. Reason: The issue has been solved
The administrator has disabled public write access.

Multilingual issue 8 years 4 months ago #13450

Hi,

Looks like you did everything correctly. Are you sure you didn't make any typo with file names? or folder name?

Are you also sure that those words that remain in English comes from en-GB.plg_flexibleTemplate.ini file? Maybe they are coming from some another file?, or maybe you translated the wrong line? To figure out what is going on, you can put a syntax at the end of one line in the en-GB ini file.

Follow these steps:

1- Open this file: ROOT/administrator/language/en-GB/en-GB.plg_flexibleTemplate.ini file and find this line:
TPL_FLEXIBLE_NOT_REGISTERED_MEMBERS="Members" 

2- Replace it with this:
TPL_FLEXIBLE_NOT_REGISTERED_MEMBERS="Members --TEST" 

3- Open this file: ROOT/administrator/language/it-IT/it-IT.plg_flexibleTemplate.ini file -- MAKE SURE THERE IS NO TYPO IN THE FILE NAME, IT IS ALSO CASE-SENSITIVE -- and find this line :
TPL_FLEXIBLE_NOT_REGISTERED_MEMBERS="Members" 

4- Replace it to this:
TPL_FLEXIBLE_NOT_REGISTERED_MEMBERS="Membri" 

5- Navigate to Joomla Front-end,
6- Switch Joomla language to Italian
7- Open the shopping cart page (domain.com/index.php?option=com_virtuemart&view=cart&lang=it)
8- Check if you see "Members" or "Members --TEST" or "Membri"


Attachment Pasted_Image_12_17_15__9_40_PM.png not found

Last Edit: 8 years 4 months ago by Support.
The administrator has disabled public write access.

Multilingual issue 8 years 4 months ago #13454

Hi,

I did exactly what you suggested and here is the result. As you can see the virtuemart words are correctly translated into italian (I evidenced them in black ellipse) while all the rest is still in english taken from the en-GB.plg_flexibleTemplate.ini ('members' became 'Members --TEST')
Attachments:
The administrator has disabled public write access.

Multilingual issue 8 years 4 months ago #13462

Okay, i understood. But it shouldn't be like that.

I strongly suspicious you have made a file-name typo on the it-IT.plg_flexibleTemplate.ini file or its folder, or somewhere else, I can't be sure. Because there is no other explanation. Why don't you let me take a look at your website?

Please fill out this support-request-form below and email it to This email address is being protected from spambots. You need JavaScript enabled to view it. and i will take a look at your website ASAP.
Order ID:
<< Enter your Order ID >>

Problem:
www.flexiblewebdesign.com/forum-virtuemart-template-support/3168-multilingual-issue

Joomla Administrator Credentials:
<< Joomla Administrator URL & Username & Password >>

FTP credentials (Provide FTP credentials in this format)
FTP server: ftp.yourdomain.com
FTP username: <<username>>
FTP password: <<password>>
Port: << port number -- if it is other than 21 -->>

regards.
The administrator has disabled public write access.

Multilingual issue 8 years 4 months ago #13473

Hi,

Actually I thought the same about typos in fact I checked all file and folder names and the .ini file content but it seems to be all ok. Anyway I just sent you an email with all details you required. Waiting for your reply, thank you.
Regards.
The administrator has disabled public write access.

Multilingual issue 8 years 4 months ago #13482

Hi,
I noticed a very strange behavior when switching languages: when you change language all strings are correctly translated EXCEPT the strings contained in plg_flexibleTemplate.ini (any language).
If you simply reload the page then strings are correctly translated.

I attached 2 images of the same page, the second one after reload. Notice the string after the rating stars!

What-s happening???
Bruno
Attachments:
The administrator has disabled public write access.

[SOLVED] Multilingual issue 8 years 4 months ago #13489

HI Support Desk Team thank you very much for your help in solving my problem, now everything is working great.
Best regards.
The administrator has disabled public write access.

[SOLVED] Multilingual issue 8 years 4 months ago #13490

Maurizio,
what was causing the problem? I'm having similar problems and it would be useful to know what was going wrong.

Thanks,
Bruno
The administrator has disabled public write access.

[SOLVED] Multilingual issue 8 years 4 months ago #13516

Hi Bruno,

look at the flexibleTemplate plugin INI file. (especially the one that you translated)

Check all the lines one by one and make sure there is no double-quote typo.

WRONG: THE_NAME_OF_THE_LINE="The translation goes here";
WRONG: THE_NAME_OF_THE_LINE=The translation goes here"
WRONG: THE_NAME_OF_THE_LINE="The translation goes here

CORRECT: THE_NAME_OF_THE_LINE="The translation goes here"


Maurizio's problem was, he forgets to put 1 double-quote in one of the line. This causes a FATAL error in the Joomla backend so the language file gets abandoned by Joomla.

Regards.
Last Edit: 8 years 4 months ago by Support.
The administrator has disabled public write access.

[SOLVED] Multilingual issue 8 years 4 months ago #13528

Hi, I double checked all the strings and they are correct.
In fact the same problem happens both when you switch from Italian to English and when you switch from English to Italian.
It's unlikely that I made a typo mistake in both files.

The strange fact is that if you reload the page then the string is translated.
By the way other strings are translated correctly, just the ones in the Flexible INI files.

I searched through some Joomla and VM forums and seems that the problem might be related to some conflict.
See here for example: forum.virtuemart.net/index.php?topic=131914.0

Thanks,
Bruno
The administrator has disabled public write access.

[SOLVED] Multilingual issue 8 years 4 months ago #13530

hmm.. If strings are translated upon refreshing the page, then i am guessing it is related to caching (either Joomla Cache, or Browser Cache.. could be either of them)

Since you said "other strings are translated correctly, just the flexibleTemplate INI is problematic", then why don't you try this;

1- Copy all the lines from ROOT//administrator/language/en-GB/en-GB.plg_flexibleTemplate.ini file
2- Paste them to the Virtuemart's english INI file, which should be here: ROOT//components/com_virtuemart/language/en-GB/en-GB.com_virtuemart.ini
3- Delete the en-GB.plg_flexibleTemplate.ini file (because you don't need it anymore)

Do the same thing for Italian language:

1- Copy all the lines from ROOT//administrator/language/it-IT/it-IT.plg_flexibleTemplate.ini file (i suppose you have created it already)
2- Paste them to the Virtuemart's Italian INI file, which should be here: ROOT//language/it-IT/it-IT.com_virtuemart.ini
3- Delete the it-IT.plg_flexibleTemplate.ini file (because you don't need it anymore)

Furthermore, you can safely uncomment the lines within the flexibleTemplate plugin PHP file to avoid trying to load the flexibleTemplate's language INI file (because you have already deleted them), for this:
1- open this PHP file: ROOT//plugins/system/flexibleTemplate/flexibleTemplate.php
2- Scroll to the bottom and find these lines:
$lang = JFactory::getLanguage();
$lang->load('plg_flexibleTemplate', JPATH_ADMINISTRATOR);
3- replace them with this:
// $lang = JFactory::getLanguage();
// $lang->load('plg_flexibleTemplate', JPATH_ADMINISTRATOR);

By following these procedure, you are actually disabling the language support of flexibleTemplate plugin completely, but add couple more lines to Virtuemart Core Language INI file, the language translation that flexibleTemplate plugin requires are grabbed from the Virtuemart Core Language file.

FYI: Make sure to backup the Virtuemart Core Language INI file, because every time you update Virtuemart Component, its language files will be retrieved back to original states.

This trick should work for you. Just give it a shot and let me know about the result.

regards
Last Edit: 8 years 4 months ago by Support.
The administrator has disabled public write access.

[SOLVED] Multilingual issue 8 years 4 months ago #13541

Bruno, sorry for my late response but I have been traveling in the last days and didn't check the forum for a while. Anyway the Support Desk already replied you about my issue. Wish you the best with yours!
Maurizio
The administrator has disabled public write access.
Time to create page: 0.687 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo