VirtueMart Forum

VirtueMart 2 + 3 + 4 => Language/Translations => Topic started by: Genius WebDesign on June 29, 2012, 21:47:39 PM

Title: Can't find string for warning text in "ask a question" modal popup..
Post by: Genius WebDesign on June 29, 2012, 21:47:39 PM
Hi,

I'm trying to find the language file and string to translate the warning text that is shown when not enough characters are written in the "ask a question" modal popup:

* This field is required
* Minimum 50 characters allowed

Does anyone know in which language file this string is located? (I have of course tried en-GB.com_virtuemart.ini but that's not it)

Title: Re: Can't find string for warning text in "ask a question" modal popup..
Post by: jjk on July 01, 2012, 18:42:37 PM
I guess it's related to ...\components\com_virtuemart\assets\js\languages\jquery.validationEngine-en.js, but I don't know how the translation works in this case.
Title: Re: Can't find string for warning text in "ask a question" modal popup..
Post by: Genius WebDesign on July 14, 2012, 23:59:07 PM
It´s pretty strange.. I cant imagine that the text is not just a simple text-string from one of the system language files.

Does anyone have an idea as to where this text string is located?

I can see that the text is wrapped in a div class="formErrorContent" - dont know if that helps..
Title: Re: Can't find string for warning text in "ask a question" modal popup..
Post by: jjk on July 15, 2012, 10:03:46 AM
I just had a look at this again. I'm pretty sure that you have to open the file ...\components\com_virtuemart\assets\js\languages\jquery.validationEngine-en.js in an editor (i.e. Notepad++), translate the strings into the language you are missing and save the file with your language suffix (replace -en.js) at the end in the same folder. Let me know if this works.

If you are lucky, you may find a version of the file which matches the english version here: https://github.com/posabsolute/jQuery-Validation-Engine/tree/master/js/languages (https://github.com/posabsolute/jQuery-Validation-Engine/tree/master/js/languages)
I suppose the version currently used in VM2 is from around April or May 2011. (Browse the file history)
Title: Re: Can't find string for warning text in "ask a question" modal popup..
Post by: Genius WebDesign on July 15, 2012, 12:59:05 PM
ok, thanks. I will try that first thing
Title: Re: Can't find string for warning text in "ask a question" modal popup..
Post by: Genius WebDesign on July 16, 2012, 18:47:36 PM
Thanks jjk, that did the trick:)
Title: Re: Can't find string for warning text in "ask a question" modal popup..
Post by: servlet on August 15, 2013, 22:33:32 PM
Is it planned to be implemented in language files or it is not possible?
Title: Re: Can't find string for warning text in "ask a question" modal popup..
Post by: jjk on August 16, 2013, 14:56:38 PM
It is currently not planned to be implemented into VM language files. But I suppose you are looking for a bulgarian translation. Please have a look here:
https://github.com/posabsolute/jQuery-Validation-Engine/pull/688
Title: Re: Can't find string for warning text in "ask a question" modal popup..
Post by: servlet on August 16, 2013, 22:33:31 PM
I made bulgarian translation and posted it in Coding central to implement in next version....