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?

July 07, 2010 3:13pm

Subscribe [3]
  • #1 / Jul 07, 2010 3:13pm

    Chris Arnold

    201 posts

    I have MSM setup for a few international sites. The specific countries are going in an translating everything, but I noticed the months are in English. Is there an easy way to just have a specific MSM site point to an edited month language file?

  • #2 / Jul 07, 2010 5:30pm

    Ingmar

    29245 posts

    You will need to install the various language packs and make the correct one the default for each site. Each member can always override this with their personal localisation settings.

  • #3 / Jul 08, 2010 1:23pm

    Chris Arnold

    201 posts

    Unfortunately I need Portuguese, which I do not see on the language packs page. Is there no other option?

  • #4 / Jul 08, 2010 3:31pm

    Ingmar

    29245 posts

    I am afraid not, the language packs really are the way to go here. If there is no Portuguese one consider using the Translation Utility to create one yourself. If you just want the dates you wouldn’t have to translate the whole pack, just the relevant strings.

  • #5 / Jul 14, 2010 12:29pm

    Chris Arnold

    201 posts

    Thanks Ingmar. Before I proceed, I want to be sure I understand correctly. If I have multiple sites through MSM, and need things like the months in native languages (not only on the back end, but on the front facing site, too), this is handled through the translation utility? How do I ensure that say, Portuguese months, are only displayed on that MSM site?

  • #6 / Jul 14, 2010 12:44pm

    Chris Arnold

    201 posts

    Update: I’ve just created a duplicate of the lang.core.php file with the updated month translations, but I want to be sure I know how to use this file only for a specific site.

  • #7 / Jul 14, 2010 3:38pm

    Ingmar

    29245 posts

    If I have multiple sites through MSM, and need things like the months in native languages (not only on the back end, but on the front facing site, too), this is handled through the translation utility? How do I ensure that say, Portuguese months, are only displayed on that MSM site?

    All theses things are handled via language packs. Every user can choose a different one. There are a number of readily-available, community-contributed packs (Spanish is among them, but not Portuguese, unfortunately. Which is why I suggested to create one yourself.)

    You can also set a default language pack for every site. On other sites you would use other defaults. That said, users could still choose their own language pack.

  • #8 / Jul 14, 2010 4:15pm

    Chris Arnold

    201 posts

    I think my question is really *how* that is done. Could you point me to the documentation that talks about how to set a language pack for a single site in an MSM?

    Also, I followed the instructions and edited the months in the lang.core.php file, but I’m not clear as to how I institute that on a single site. Does it need to be wrapped in a full blown custom language pack? Can I just use that single modified file as an append to what’s already there? These are questions I’m struggling finding answers to.

    Thanks!

  • #9 / Jul 14, 2010 4:32pm

    Ingmar

    29245 posts

    I think my question is really *how* that is done. Could you point me to the documentation that talks about how to set a language pack for a single site in an MSM?

    You will need to assign the language pack to a user, then login and go to CP > My Account >  Member Administration > Member Preferences >  Use this member’s localization settings as the master site default?

    Also, I followed the instructions and edited the months in the lang.core.php file, but I’m not clear as to how I institute that on a single site.

    When you edit lang.core.php you are, in all likelihood, editing the file from the English language pack.

    Does it need to be wrapped in a full blown custom language pack?

    Yes, I’d definitely recommend to duplicate the “english” folder and work with that.

  • #10 / Jul 14, 2010 6:55pm

    Chris Arnold

    201 posts

    Thanks. I’ll give this a shot.

  • #11 / Jul 15, 2010 6:55am

    John Henry Donovan

    12339 posts

    Chris, Im glad Ingmar was able to help. I’m closing this one out for now but feel free to start a new thread if you have any more questions

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

ExpressionEngine News!

#eecms, #events, #releases