Forum Discussion

isxtn's avatar
isxtn
Advisor
2 years ago

Is it possible to have a language pack function at a subcategory only level?

Let's say we have a category called "groups" and in that category, there is a sub-category that we'd like to enable Spanish in, limited to that sub-category. Is that something that's possible or are ...
  • MattV's avatar
    2 years ago

    Setting it up for a sub category wouldn't be much different than for a Top Level Category (TLC). 

    TLCs are more about pretending the TLC is actually the top-most level of the community, instead of the community page.

    So, if you wanted one category to be Spanish, you can go into that category's settings, go to users > profile defaults, and set the default language to Spanish.

    This won't work if the user has changed their profile settings to have a language set to anything other than default, which will override this setting. To "fix" that, you'd have to create something in common.init that forces the users language to spanish when they enter that category, then change it back when they leave, which would be a bit of a hassle and probably bad user experience.