<![CDATA[ [quip] How can I use QUIP it with Babel / context - MODX Community Forums]]> https://forums.modx.com/thread/?thread=104556 <![CDATA[ [quip] How can I use QUIP it with Babel / context]]> https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562360
I created a MODx website in two language, english and french with babel.
I also installed and configured QUIP in order to have a secton where visitors can leave meassages.
https://docs.modx.com/extras/revo/quip

The problem, QUIP display the text (as the form or the date) in english and of course, I would like to have it in french when the visitors visit the french pages.

Is there a way to have the QUIP pages according to the selected context (the language of the pages)?

Many thank for your support
Cheers]]>
pierrot1010 Oct 28, 2018, 10:36 PM https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562360
<![CDATA[Re: [quip] How can I use QUIP it with Babel / context]]> https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562403
You'll have to re-do it if you ever update Quip, but since Quip hasn't been updated since 2012, I think you're on pretty safe ground. wink]]>
BobRay Oct 30, 2018, 03:30 AM https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562403
<![CDATA[Re: [quip] How can I use QUIP it with Babel / context]]> https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562399
Generally there is some risk in hacking extras, because when an update comes in, it could break the fix so to speak.

Actually I like your solution a lot, its pretty smooth to be honest. The call was to the web context so you just made a new lexicon called web.

]]>
nuan88 Oct 30, 2018, 12:40 AM https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562399
<![CDATA[Re: [quip] How can I use QUIP it with Babel / context]]> https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562398 That's right I have two context, but the name are 'web' and 'en'.
My solution is not good?

OK, I belived, I solved my problem.
I have a web site with two language: French and english.
The default language is french.
In context the key of french version (default) is : web
In context the key of english version is: en.

I went to
/core/componment/quip/lexicon/
and I duplicated the 'fr' folder and named it to web.
I uploaded the /core/componment/quip/lexicon/web/ folder and it's wokrs

Morever, when I go to Settings->Lexicons, for the quip namespace, I can see 'web' on the language field.
]]>
pierrot1010 Oct 29, 2018, 11:34 PM https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562398
<![CDATA[Re: [quip] How can I use QUIP it with Babel / context]]> https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562397
I think BobRay is saying is that you have your two contexts, EN and FR, right? You create settings for those two contexts that mirror the system setting values.

Then the value will be passed to Quip properly. Its going to your main system settings for language option, I guess because Quip doesn't specify. But it does get the context.

Make sense? Let's hold off on modifying the Quip code for now, its not a permanent solution.

manager_language System Setting value when operating in the Manager and the cultureKey System Setting
]]>
nuan88 Oct 29, 2018, 11:31 PM https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562397
<![CDATA[Re: [quip] How can I use QUIP it with Babel / context]]> https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562395 Quote from: pierrot1010 at Oct 29, 2018, 10:52 PM
Quote from: pierrot1010 at Oct 29, 2018, 10:45 PM
Quote from: BobRay at Oct 29, 2018, 10:28 PM
This is weird. Quip doesn't appear to have a language property, yet it has seven language files, including French. None of the lexicon->load() calls specify a language.

The lexicon uses the manager_language System Setting value when operating in the Manager and the cultureKey System Setting when operating in the front end.

If you create those two as Context Settings for each context, Quip may deliver the correct language for you. Let me know if it works. You'll have to clear the cache files (maybe manually) for it to take effect. You can use the CacheClear extra to clear the cache files quickly and easily.

Dear Bobray,
Thank again for your reply, but I did not understand everything sad.
You asked me to create a new context seting. But when I create one for web context, I did not understand which option, I have to select for
key
field type
namespace
name

As I confgiure Babel, for my web context, I already those
Base URL base_url /
Culture key cultureKey fr
Site start site_start 1


This what you asked me to check? I am a bit confused.

When i look at the snipest QuipLatestComments, I can see this line:
$quip->initialize($modx->context->get('key'))

Would it be an idea to change to
$quip->initialize($modx->context->get('cultureKey'))

OK, I belived, I solved my problem.
I have a web site with two language: French and english.
The default language is french.
In context the key of french version (default) is : web
In context the key of english version is: en.

I went to
/core/componment/quip/lexicon/
and I duplicated the 'fr' folder and named it to web.
I uploaded the /core/componment/quip/lexicon/web/ folder and it's wokrs

Morever, when I go to Settings->Lexicons, for the quip namespace, I can see 'web' on the language field.]]>
pierrot1010 Oct 29, 2018, 11:08 PM https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562395
<![CDATA[Re: [quip] How can I use QUIP it with Babel / context]]> https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562393 Quote from: pierrot1010 at Oct 29, 2018, 10:45 PM
Quote from: BobRay at Oct 29, 2018, 10:28 PM
This is weird. Quip doesn't appear to have a language property, yet it has seven language files, including French. None of the lexicon->load() calls specify a language.

The lexicon uses the manager_language System Setting value when operating in the Manager and the cultureKey System Setting when operating in the front end.

If you create those two as Context Settings for each context, Quip may deliver the correct language for you. Let me know if it works. You'll have to clear the cache files (maybe manually) for it to take effect. You can use the CacheClear extra to clear the cache files quickly and easily.

Dear Bobray,
Thank again for your reply, but I did not understand everything sad.
You asked me to create a new context seting. But when I create one for web context, I did not understand which option, I have to select for
key
field type
namespace
name

As I confgiure Babel, for my web context, I already those
Base URL base_url /
Culture key cultureKey fr
Site start site_start 1


This what you asked me to check? I am a bit confused.

When i look at the snipest QuipLatestComments, I can see this line:
$quip->initialize($modx->context->get('key'))

Would it be an idea to change to
$quip->initialize($modx->context->get('cultureKey'))
]]>
pierrot1010 Oct 29, 2018, 10:52 PM https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562393
<![CDATA[Re: [quip] How can I use QUIP it with Babel / context]]> https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562392 Quote from: BobRay at Oct 29, 2018, 10:28 PM
This is weird. Quip doesn't appear to have a language property, yet it has seven language files, including French. None of the lexicon->load() calls specify a language.

The lexicon uses the manager_language System Setting value when operating in the Manager and the cultureKey System Setting when operating in the front end.

If you create those two as Context Settings for each context, Quip may deliver the correct language for you. Let me know if it works. You'll have to clear the cache files (maybe manually) for it to take effect. You can use the CacheClear extra to clear the cache files quickly and easily.

Dear Bobray,
Thank again for your reply, but I did not understand everything sad.
You asked me to create a new context seting. But when I create one for web context, I did not understand which option, I have to select for
key
field type
namespace
name

As I confgiure Babel, for my web context, I already those
Base URL base_url /
Culture key cultureKey fr
Site start site_start 1


This what you asked me to check? I am a bit confused.

]]>
pierrot1010 Oct 29, 2018, 10:45 PM https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562392
<![CDATA[Re: [quip] How can I use QUIP it with Babel / context]]> https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562388
The lexicon uses the manager_language System Setting value when operating in the Manager and the cultureKey System Setting when operating in the front end.

If you create those two as Context Settings for each context, Quip may deliver the correct language for you. Let me know if it works. You'll have to clear the cache files (maybe manually) for it to take effect. You can use the CacheClear extra to clear the cache files quickly and easily.]]>
BobRay Oct 29, 2018, 10:28 PM https://forums.modx.com/thread/104556/quip-how-can-i-use-quip-it-with-babel-context#dis-post-562388