News:

Looking for documentation? Take a look on our wiki

Main Menu

some constants are not translated on the bilingual site

Started by michelerighetti, November 11, 2021, 10:01:43 AM

Previous topic - Next topic

michelerighetti

Hello. I am making a site in 2 languages Italian (main language) and English. I have set up the menus correctly. I have checked all the errors that I could have made by reading on this forum. Unfortunately it happens that the site in English is partially translated. Some things are translated and some are not.
For example in the category screen the product titles and short descriptions are not translated, if I view the single product it is translated.
In the single product there are custom fields with the constants set for the translation, some fields are translated, others are not.
I have set up a side menu with categories, but they are not translated.
I can't understand what's wrong.
I post some image


GJC Web Design

have you correctly installed the VM lang files and translated the products?

for the custom fields u have to use lang constants and translate them in the Joomla lang over rides system
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

michelerighetti

Quote from: GJC Web Design on November 11, 2021, 12:38:45 PM
have you correctly installed the VM lang files and translated the products?

for the custom fields u have to use lang constants and translate them in the Joomla lang over rides system

I have used Constants for translating Custom fields and I have translated the constants in both languages in the Joomla lang overrrides System.
About the Vm language pack, can you explain to me how to install correctly? I believe I have done the correct procedure.
however I only find thelang pack version for VM2 and not for VM3. it's right?

GJC Web Design

yes.. the lang packs page has a wrong VM2 header

sorry .. out of ideas re the rest .. I have no problems with multi lingual sites..
have u tried as a test with SEF off ?
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

michelerighetti

Yes, I did a test with sef disabled. Nothing changes.

Jörgen

Turn on language debug in Joomla to see what it gives for clues.

Jörgen @ Kreativ Fotografi
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

michelerighetti

Thank you for your answer. I turned on language debugging and it doesn't give me any useful clues.

Jörgen

That screenshot ypu show is totally meaningless. You should see untranslated strings and notices in you rendered output. It is not a strict report tool. It displays clues everywhere in your output.

Jörgen
Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

jjk

Can you provide a link to that website? That would make it easier to see what might be wrong.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

Studio 42

Do a screenshot with debug Language active please
Some issue can be because your template do not use Joomla Key system

michelerighetti

Quote from: jjk on November 13, 2021, 21:55:46 PM
Can you provide a link to that website? That would make it easier to see what might be wrong.
the website is in maintenance mode at the moment.

michelerighetti

Quote from: Studio 42 on November 15, 2021, 10:28:20 AM
Do a screenshot with debug Language active please
Some issue can be because your template do not use Joomla Key system

I don't understand i ?? in some fields. What is the meaning of those ??
What is the difference between ** and ??

Jörgen

Joomla 3.9.18
Virtuemart 3.4.x
Olympiantheme Hera (customized)
This reflects current status when viewing old post.

michelerighetti

Quote from: Jörgen on November 16, 2021, 09:54:31 AM
https://docs.joomla.org/Debugging_a_translation/en

Jörgen @ Kreativ Fotografi
Thanks Jörgen, I have read the page dedicated to the translation indicated by you. In the image I have highlighted 3 words which are taken from the same place but one is translated and the others are not. The debug says that the category title is translatable, but it does not find the translation, but the translation is there, in the side menu it says that it is not translatable and this puzzles me. I really don't understand where I'm wrong.

Studio 42

If only some are translatable, it's because  in some case you have the PHP code
echo Jtext::_($original_string);
and when not translatable only
echo $original_string;
As i explained before, this need to be checked in the template overrides