- 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)
-
0
Hi,
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.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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 enThis 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.jsonfile.Once you done the translation, use
abp translate -acommand to apply changes to the related files.Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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.
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
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
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)



