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.

Change month language file for MSM site only? v2

July 15, 2010 12:19pm

Subscribe [4]
  • #1 / Jul 15, 2010 12:19pm

    Chris Arnold

    201 posts

    This question may be related to a resolved thread.

    Perhaps we closed the previous thread out a bit early. Anyway, I followed the process that Ingmar noted. Created a duplicate language pack for the Portuguese language and adjusted a member’s localization settings, but I see this only updates the language for that single particular logged in user. It worked like a charm when I’m logged in, but the public doesn’t see the language shift.

    I need the system-generated months (or any system generated strings I need to adjust) to show up to the >non-logged-in public< in the proper native language. e.g. English months for people visiting the the English MSM site, Portuguese for those visiting the Brasil site, etc.

    Maybe I’m still missing the hook here, or maybe you misunderstood my goal. Sorry about any confusion 😊 Let me know what you think.

  • #2 / Jul 15, 2010 12:41pm

    Ingmar

    29245 posts

    Created a duplicate language pack for the Portuguese language and adjusted a member’s localization settings, but I see this only updates the language for that single particular logged in user. It worked like a charm when I’m logged in, but the public doesn’t see the language shift.

    You will need to set this members preferences as the default for the site. Go to CP > My Account > Member Administration > Member Preferences >  Use this member’s localization settings as the master site default?

    You’ll do the same with some other member on your other sites.

  • #3 / Jul 15, 2010 1:29pm

    Chris Arnold

    201 posts

    Here is what I’m doing in my Brasil site:

    1) CP > My Account > Personal Settings > Localization Settings > Select Language > (I then choose Portuguese)

    Then, I do this:

    2) CP > My Account > Member Administration > Member Preferences >  Use this member’s localization settings as the master site default?

    I see the translated months when I’m logged in. When I log out and refresh the page, they flip back to English.

  • #4 / Jul 15, 2010 7:06pm

    Brandon Jones

    5500 posts

    Which version and build of EE are you using?

  • #5 / Jul 15, 2010 7:32pm

    Chris Arnold

    201 posts

    1.6.8, build 20090723

    I know it’s not 1.6.9 (too busy with MSM site translations), but does suggesting we update mean this doesn’t work below 1.6.9? 😊 The notion to update seems to be a standard response, so I figured I’d head it off.

    Any other thoughts besides the 1.6.9 update?

  • #6 / Jul 15, 2010 8:46pm

    Lisa Wess

    20502 posts

    Chris - can you try setting the default language in the CP Admin settings, and see if that helps?

    Thank you.

  • #7 / Jul 20, 2010 12:24pm

    Chris Arnold

    201 posts

    Apologies for the delayed response. But yes, the default language in the MSM CP (Sys Prefs > General Config) is set to English.

    Again, I can see the translated months on the back-end and on the site, but it’s still not changing the public non-logged-in displays. I’ll see it perfectly on the site, log out, and refresh to see months in English again.

    It seems like this setting is only meant for logged in / CP use?

  • #8 / Jul 20, 2010 7:56pm

    Brandon Jones

    5500 posts

    Hi Chris, so if you choose Portuguese for the MSM under Sys Prefs > General Config, you are seeing that language on the site when logged out, correct?

  • #9 / Jul 20, 2010 7:58pm

    Chris Arnold

    201 posts

    Yes, it shows the Portuguese months for all 3 MSM sites, when logged out.

  • #10 / Jul 21, 2010 3:06am

    John Henry Donovan

    12339 posts

    Chris,

    So to confirm. This is working correctly for you now?

  • #11 / Jul 21, 2010 12:25pm

    Chris Arnold

    201 posts

    No. Here’s the thing, again broken down. And what I’m trying to do here is show proper Portuguese months BOTH on the back end and on the front end (public facing, not logged in), for this single specific MSM site (1 of 3).

    1) English is the primary language. Thus, in Sys Prefs > General Config it’s set to English. This is fine. Brandon was asking ‘what if’ I changed this to Portuguese and if it would show properly on the site. Yes, if set to the master default language, it does. But I don’t want it to be the default for all 3 sites.

    2) I’ll log in, click to Brasil and do CP > My Account > Personal Settings > Localization Settings > Select Language > (I then choose Portuguese)

    3) Next, I visit CP > My Account > Member Administration > Member Preferences >  Use this member’s localization settings as the master site default? (And I choose yes)

    As expected, this shows up in the CP and on the site only while I’m logged in. When I log out, the Brasil site’s months go back to English. Is this ‘setting’ meant only for the CP or is there a way to get this to stick for guests to the Brasil site?

  • #12 / Jul 21, 2010 8:18pm

    Brandon Jones

    5500 posts

    Chris, thanks for the recap. Sorry if there was any confusion.

    The setting that should affect the language used for guests on each site is indeed Sys Prefs > General Config. If you set one MSM site to Portuguese here, do the other sites retain the English setting?

    I’m testing using the member profile area: I set my primary site to English in General Config, switched to Site B and set it to Spanish. Then I loged out, and:

    mydomain.com/index.php/member/login is in English (correct)
    mydomain.com/siteb/index.php/member/login is in Spanish (correct)

    Do yours behave the same way? So far, that all seems correct to me, and indicates that you should be able to set the default language on a per-MSM basis.

  • #13 / Jul 22, 2010 3:18pm

    Chris Arnold

    201 posts

    Oh man, that was it! Since so much of the General Config is system-wide, I never knew adjusting in the Brasil site’s Sys Prefs > General Config would adjust only that site, and not the others. Earlier I was adjusting this only in the English site because I figured it was all the same… again, system-wide.

    I can confirm this is now working. Thank you for your help!

  • #14 / Jul 22, 2010 3:34pm

    Ingmar

    29245 posts

    Very glad you were able to figure this out. Please don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases