1. 89Joda
  2. Pres-sale questions about WP File Download
  3. Friday, 22 November 2019
  4.  Subscribe via email
I use qtranslate but the language of WP File Download does not change.
It seems to either detect browser language, or admin language. But that is a problem, because for the client it seems that the language change does not work.
Can I pass the language programmatically?
Responses (4)
Accepted Answer Pending Moderation
Hi,

Thanks for contacting us here about this extension.

I use qtranslate but the language of WP File Download does not change.
It seems to either detect browser language, or admin language. But that is a problem, because for the client it seems that the language change does not work.
Can I pass the language programmatically?


You can override your languages at WP File Download Configuration > Translate. For more information:
https://www.joomunited.com/news/ju-translation-translate-and-get-extension-translation/

Hope it helps!
Cheers,
Accepted Answer Pending Moderation
Thank you.

All languages are installed correctly already. The override helps to individualize certain strings.

The problem is different in that WP File Download does not recognize when the language is switched to Englisch, German, etc.
It seems WP File Download understand WPML but not qTranslate.

http://www.domain.com/de/ german
http://www.domain.com/en/ english
http://www.domain.com/nl/ dutch

However I can easily put a PHP snippet on each page to indicate the language if you can tell me what which variable, session, etc. it should set.
So please I would appreciate if you could help me how to switch the language programmatically.
Accepted Answer Pending Moderation
For example I put this in the header template to emulate that I have a WPML site:
<?php
define("ICL_LANGUAGE_CODE",qtranxf_getLanguage());
?>

And this works fine to fill the constant ICL_LANGUAGE_CODE with "en" or "de".
However the WP File Download plugin is always in German. It just does not use that information.

What to do here? How can I pass that info so that it works.
Accepted Answer Pending Moderation
Hi,

Thanks for getting back to me with more information.
I'm not sure about technical issue, please drop us a ticket (menu Support > Ticket support).
Our developer in charge will take a look at that.

Cheers,
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!