ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Spellcheck issue with MSM and forums in multiple languages

October 29, 2011 1:31pm

Subscribe [4]
  • #1 / Oct 29, 2011 1:31pm

    the wire

    31 posts

    This question is be related to a resolved thread.

    The above thread was closed but I don’t see how the issue is resolved. Adding

    config['spellcheck_language_code'] = 'fr';

    fixes the French forum but opens up an issue with the English forum where the spellchecker is using French instead of English. Basically I cannot get the forums to use the spellchecker on its own language.

    Please let me know if I’m doing something wrong.

    Thanks,
    Gabriela

  • #2 / Oct 31, 2011 4:28am

    John Henry Donovan

    12339 posts

    Hi Gabriela,

    Can you explain your setup a little to us please?
    Do you have 2 different boards or forums?
    Are you using MSM on this site for Multi Lang?

    What version and build of EE are you using?

    Are you using any addons?

  • #3 / Oct 31, 2011 8:28am

    the wire

    31 posts

    2 sites English/French using MSM and each site has its own forum (single discussion forum module). EE 2.2.2, Discussion Forum 3.1.5

    Addons: Structure, Structure Entries, Playa, CE Image, SmartDown, TrunchHtml

    Adding

    $config['spellcheck_language_code'] = 'fr';

    to config.php makes spellchecker use French on both forums.

    Adding

    $assign_to_config['spellcheck_language_code'] = 'fr'

      to the French site index.php does not make any difference.

    Thanks,
    Gabriela

  • #4 / Nov 01, 2011 10:57pm

    Dan Decker

    7338 posts

    the wire,

    If you try and set the spellcheck preference in the Control Panel for the French site using the Config editor, what is the result? You can find this in Admin-> System Administration-> Config File Editor

    Cheers,

  • #5 / Nov 02, 2011 7:36am

    the wire

    31 posts

    If I go to French site and set the spellcheck language code in Admin->System Administration->Config File Editor the English site is affected too - I end up with both forums using French spellcheck.

    Is it possible that this is a bug? I was able to set the language properly for everything else (error messages. user messages. email notifications, but not the spellcheck.

    Thanks!

     

     

  • #6 / Nov 04, 2011 11:46am

    Kevin Smith

    4784 posts

    Hi Gabriela,

    My apologies for the previous thread being closed prematurely. I was trying to make sure your system was working properly rather than offering you a full solution, and it looks like Mark assumed your answer meant the problem was resolved. We’ll do our best to help get you a solution here.

    From the tests on my own MSM install with forums, adding the following to one particular site’s index.php file caused that site to offer spellcheck in French for the forums:

    $assign_to_config['spellcheck_language_code'] = 'fr';

    The other sites continued offering spellcheck in English. So it looks like this is indeed the proper way to do it. The real question now is: why isn’t your installation handling this correctly?

    Could you tell me more about the directory and file structure of your MSM setup? The French site is its own MSM site, correct? And if that site has its own web root with its own index.php in it, adding the above to that particular site’s index.php should perform as expected. Just to be clear, you’re not adding the $assign_to_config variables to system/index.php are you?

  • #7 / Nov 04, 2011 12:31pm

    the wire

    31 posts

    Hi Kevin,

    Thank you again for looking into this. I will try to explain but I’m more than happy to give you FTP and admin access if that makes it easier.

    The 2 sites are setup as different domains under the same user with a path like this:

    1. /home/user/domains/english-domain.ca/public_html - this contains all system, themes and images files.

    2. /home/user/domains/french-domain.ca/public_html - contains only index.php and a separate folder for uploads

    The $assign_to_config variable was added to /home/user/domains/french-domain.ca/public_html/index.php

    The forum_themes folder contains 2 separate themes for each forum.

    Thanks - Gabriela

  • #8 / Nov 04, 2011 12:49pm

    the wire

    31 posts

    Correction: The forum_themes folder contains 2 separate themes for each forum board.

  • #9 / Nov 07, 2011 2:44pm

    Dan Decker

    7338 posts

    Hello Gabriela,

    We would love to have a look at this! Please be on the lookout for an email from me.

    Thanks!

  • #10 / Nov 09, 2011 8:06am

    the wire

    31 posts

    Hi Dan,

    I posted the login info. Please let me know if there’s anything else you need.

    Thanks - Gabriela

  • #11 / Nov 10, 2011 5:30pm

    Dan Decker

    7338 posts

    Hi Gabriela,

    We’ve got your info and I’ll be working this issue tonight. I’ll be in communication with you via email until we find resolution. Once we have a solution, I’ll post that back here.

    Thanks for your patience!

  • #12 / Nov 16, 2011 11:05am

    Kevin Smith

    4784 posts

    For onlookers: At the moment, we’ve privately recommended an upgrade to the latest version. From our dev Robin to Gabriela…

    I took a look- the config override is not being recognized- hence the failure to use the proper language setting. I believe an update to the latest version should fix the issue. I can’t replicate running on the current and the EE_Config library underwent some relevant changes in the 2.3 release. I’m fairly certain updating will resolve the issue and the changes are really not something we’d want to do by hand.

    Can you go ahead and update and then do a quick check? I believe that will shake out the problem.

    Gabriela, feel free to update this thread after you’ve gotten your EE installation running on the latest version.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases