Base solution for your next web application
Open Closed

language issue #11243


User avatar
0
zyrel.sermon created

Hi,

We are having issues changing languages on version 8.2 of aspnetzero, our setup is multi-tenant with different default languages. What we need is to limit certain languages per tenant but we are having issues doing it, we've tried bypassing it on the database but still it doesn't work.

Please advise,Thanks.


5 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Could you share how you are tryign to do this ? A tenant can have a subset of languages defined for the Host.

  • User Avatar
    0
    zyrel.sermon created

    Hi,

    Here's a sample of what we are trying to do

    tenant 1

    • eng
    • chinese

    tenant 2

    • eng
    • eng-UK

    tenant 3

    • eng

    we tried disabling the languages on the tenant db but still it doesn't limit the languages avaible per tenant

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @zyrel.sermon

    Could yoıu share the AbpLanguages table data as a screenshot ? Please include TenantId field in the screenshot.

  • User Avatar
    0
    zyrel.sermon created

    Hi,

    heres' a screenshot of the host

    and here's a copy for the tenant

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    In this method, we are merging Languages defined in Host side and Tenant side. If you don't want to use languages defined in Host side for any tenant, you can create your own LanguageManager inherited from ApplicationLanguageManager, replace the default implementation and override GetLanguageDictionary method.