VirtueMart Forum

VirtueMart 2 + 3 + 4 => Administration & Configuration => Topic started by: Alemantico on August 21, 2017, 08:00:16 AM

Title: looking for language string
Post by: Alemantico on August 21, 2017, 08:00:16 AM
Dear User,
I'm building an onlineshop in 3 languages. Since I followed the instructions on https://docs.virtuemart.net/tutorials/multilingual-store/99-multilanguage-setup.html (https://docs.virtuemart.net/tutorials/multilingual-store/99-multilanguage-setup.html) and already installed all other language packs, I wonder if anyone could help me out by telling me, where on earth I can find the language strings for "out of stock", "Describtion" and "Reviews" (Screenshot)? You'd also take a look on my site https://dinnerdog.at/index.php/es/tienda/comida-humada/carne-de-res-con-zanahorias-detail.html (https://dinnerdog.at/index.php/es/tienda/comida-humada/carne-de-res-con-zanahorias-detail.html). Any help would be very much appreciated!

Thank you very much in Advance!
Title: Re: looking for language string
Post by: jenkinhill on August 21, 2017, 11:35:39 AM
http://forum.virtuemart.net/index.php?topic=113895.0
Title: Re: looking for language string
Post by: Alemantico on August 21, 2017, 12:28:44 PM
thank you a lot for yout time! I'll give that a try. Even I've already had these strings properly translated inside the resp. language files.
Title: Re: looking for language string
Post by: Alemantico on August 25, 2017, 07:59:30 AM
Ok, I tried your suggestions; Checking the lang-file, I've found the sting COM_VIRTUEMART_CART_PRODUCT_OUT_OF_STOCK="", responsible for "out of Stock"-Text inside of the: de-DE.com_virtuemart.ini. As this string was already defined with text, I still tried de Overwrite method inside of joomla! But at the end, it wasn't without any effect. So, why's that? Is there anywhere another language file hidden, which I've to overwrite? Would be awesome, if someone out there really knows, what or/and why I'm not able to change these strings.

Best regards!
Title: Re: looking for language string
Post by: jjk on August 25, 2017, 13:19:19 PM
If you want to create an override for the german language keys/strings you have to use these:
your-joomla-root-folder\language\de-DE\de-DE.com_virtuemart.ini, line 398, COM_VIRTUEMART_REVIEWS="Kundenrezensionen"
your-joomla-root-folder\administrator\language\de-DE\de-DE.com_virtuemart.ini, line 843, COM_VIRTUEMART_PRODUCT_DESC_TITLE="Beschreibung"

If you downloaded and installed the german language files for VirtueMart from http://virtuemart.net/community/translations, the german language strings should show up on the product details pages.

For translating the availability text, see there. This method still works with VirtueMart 3.2.4:
https://forum.virtuemart.net/index.php?topic=130856.msg450973#msg450973
In your case you could enter for example COM_VIRTUEMART_AVAILABLILITY_TEXT_SOLDOUT in the language constant field when you create an override.
Title: Re: looking for language string
Post by: Alemantico on August 26, 2017, 10:10:43 AM
Thank you, jik for taking a look on it! Bue indeed, I already downloaded an installed the german - language package, as well as the spanish language packes (its going to be a trillingue-shop). Everything has being translated pretty well, but just not the "out of stock", "description", and "reviews". I've already checked the language files, but they seemed alright. So maybe these strings come from somewhere else? In your suggestion; Dou you mean, I should add the entire path into? I just tried that, but as soon, as I hit the save-button, it changes to: "ADMINISTRATORLANGUAGEDE-DEDE-DE.COM_VIRTUEMART.INILINECOM_VIRTUEMART_CART_PRODUCT_OUT_OF_STOCKPRODUKTDERZEITNICHTAUFLAGER"
This is getting very confusing for me now  :-[ !
Title: Re: looking for language string
Post by: Jörgen on August 28, 2017, 08:40:35 AM
Hello

I see You have a custom template. Have You tried the protostar template? Maybe the text string is hard coded in Your template ?

regards

Jörgen @ Kreativ Fotografi
Title: Re: looking for language string
Post by: Studio 42 on August 28, 2017, 11:00:56 AM
Hi Alemantico,
Your language strings are not from Joomla. Eg PRODUKTDERZEITNICHTAUFLAGER
YOu should try to add a language override in Joomla
See YOURJOOMLASITE.COM/administrator/index.php?option=com_languages&view=overrides
And add all missing key for each language
Title: Re: looking for language string
Post by: florihana on August 28, 2017, 14:47:39 PM
Hi,

Have you try to find in composant/ fa_Lang/ translation?
If this string is from module / plugin/ or some article then you could find those string to translated ; see picture: