Open Closed

Translation of ABP to Serbian #6471


User avatar
0
Buckoge created
  • ABP Framework version: v8.0.1
  • UI Type: MVC
  • Database System: PostgreSQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

We need help related to translation into Serbian. Specifically, the translation of ABP, not localization. Localization is fine.

Since there is currently no default Serbian translation, we have translated ABP using Languages and Language Texts, and it works fine for the host.

We have a problem when creating a new tenant, the translation does not appear.

How can we solve this?

Thank you.


9 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    We have a problem when creating a new tenant, the translation does not appear.

    Can you share some screenshots? Thanks

  • User Avatar
    0
    Buckoge created

    Hi,

    Host:

    Tenant:

    I noticed, if this can help, that the AbpLanguageTexts table is empty when we create a new tenant, when i manually insert (backup/restore) data from the host table (using dbeaver), then the translation works. Maybe we should somehow seed this table when we create the tenant? We create the tenant through abp, and we choose that it is a separate database.

    Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    The language texts are multiple tenancy. Different translation texts can be used between each tenant and host.

    You can use abp CLI to translate your culture.

    abp translate -c sr -r en
    

    This command creates a file in the same folder, named abp-translation.json. Open this file in your favorite editor and fill the missing text values.

    Backup abp-translation.json file.

    Once you done the translation, use abp translate -a command to apply changes to the related files.

  • User Avatar
    0
    Buckoge created

    Hi,

    It seems we didn't understand each other well, sorry maybe I didn't explain well, this command abp translate -c sr -r en compares sr.json and en.json and I already translated it, it made this, everything matches:

    { "ReferenceCulture": "en", "TargetCulture": "sr", "Resources": [] }

    I need a translation into Serbian, by default teat comes from Abp, and when we update Abp you add new texts. These values ​​do not exist in en.json

    For example, in Language Texts under Resource Name, they have options AbpAccount, AbpAuditLogging and others. How should we translate these?

    Sorry, please correct me if I misunderstood something

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I see that your license may not be able to download the source code of the module. You can consider using the same translation for host and tenant.

    https://support.abp.io/QA/Questions/1642/Is-there-a-way-to-bypass-Tenant-for-Translations#answer-eea69656-8bb0-af79-e8fb-39fe16c17820

  • User Avatar
    0
    Buckoge created

    Ok, this is great for us it works.

    If it's not a problem to tell me, we set the default language to Serbian, as you can see in the first picture, but always when we log in for the first time, it is English.

    Thanks.

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Can you share a website URL? liming.ma@volosoft.com

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    I tested your website. The default language will always be SR; no English problem exists.

    You can try to clear your local cookies and check the language in your Browser.

    https://www.w3.org/International/questions/qa-lang-priorities

  • User Avatar
    0
    Buckoge created

    Ok, great thanks.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38