I have already asked a similar question before: #6471
And this is now a continue because I noticed that something is wrong and I need help. I noticed that MyDynamicResourceLocalizer does not translate all the translations for the tenants and that it translates differently for each tenant. The Switch button on the login page is mostly not translated. In the pictures you will see that for Host everything is translated in Language Text, and when I create tenant, MyDynamicResourceLocalizer it doesn't translate everything. This is for Abp framework translation that dosen exist in Srebian language - not lozalization that we create in our app.
Host:
Video Switch button when i change tenant: https://streamable.com/9fa6hw
This is our MyDynamicResourceLocalizer:
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Caching;
using Volo.Abp.DependencyInjection;
using Volo.Abp.LanguageManagement;
using Volo.Abp.Localization;
using Volo.Abp.MultiTenancy;
namespace Horizont.Web
{
[Dependency(ReplaceServices = true)]
public class MyDynamicResourceLocalizer : DynamicResourceLocalizer
{
public MyDynamicResourceLocalizer(
IServiceScopeFactory serviceScopeFactory,
IDistributedCache<LanguageTextCacheItem> cache)
: base(serviceScopeFactory, cache)
{
}
protected override LanguageTextCacheItem CreateCacheItem(LocalizationResourceBase resource, string cultureName)
{
var cacheItem = new LanguageTextCacheItem();
using (var scope = ServiceScopeFactory.CreateScope())
{
var currentTenant = scope.ServiceProvider.GetRequiredService<ICurrentTenant>();
using (currentTenant.Change(null))
{
var texts = scope.ServiceProvider
.GetRequiredService<ILanguageTextRepository>()
.GetList(resource.ResourceName, cultureName);
foreach (var text in texts)
{
cacheItem.Dictionary[text.Name] = text.Value;
}
}
}
return cacheItem;
}
}
}
"Culture": "sr-Latn",
Did I do it right or do I need to adjust something else? Thank you.
I need guidance on implementing service calls (in either C# or JavaScript) to refresh the Redis cache via a custom service during CRUD operations on Organization Units. Specifically, I want to ensure that the cache is updated whenever:
An Organization Unit is created, updated, or removed. Users or Roles are added to or removed from an Organization Unit.
Additionally, I need a solution that allows me to call this service on submit, ensuring that it is triggered regardless of the specific operation or context (e.g., adding/removing users or roles, modifying organization unit details, etc.).
What would be the best approach to create such service calls?
I would appreciate explanations, examples, or references to relevant resources to implement this solution effectively.
Thanks.
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.
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
Hi abp team.
Have you explored the possibility of integrating a feature like this HTML5 Editor into text templates?
We are currently using Word templates with bookmarks for generating contracts, annexes, and other related documents. We are considering transitioning to text templates, but we believe that end user modifications through HTML might present some complexities.
Or could you provide us with recommendations or guidelines on how we might implement this ourselves?
Thanks.
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
First:
The mouse wheel scroll does not work LeptonX, inside the table.
In Leton it works.
example:
Code:
Second: Coloring fields in datatable does not work. example:
LeptonX now working (only apply bold):
Thank you for your help.
Check the docs before asking a question: https://docs.abp.io/en/commercial/latest/ Check the samples, to see the basic tasks: https://docs.abp.io/en/commercial/latest/samples/index The exact solution to your question may have been answered before, please use the search on the homepage.
If you're creating a bug/problem report, please include followings:
Hi, can you please check this? When changing between child abp-tab class remains active:
There are probably some changes in bootstrap 5.2.0
Thank you.
Database: PostgreSQL 13
So far, I have successfully solved everything through documentation or through posts, now i need your help so I can upgrade to the new version
As you can see in the picture, the loading time is 3.18 s
As you can see in the picture, the loading time is 10.77 s
Steps taken during migration:
I only have two changes to the code and they are:
from var apiScope = await _apiScopeRepository.GetByNameAsync(name); to var apiScope = await _apiScopeRepository.FindByNameAsync(name);
Configure<AbpClockOptions>(options => { options.Kind = DateTimeKind.Utc; });
I saw that you had this problem: https://support.abp.io/QA/Questions/2303/ABP-50---very-slow-when-using-the-Startup-Template
Maybe it is something like that ...
Do you have any idea to direct me where and what to look for?
Maybe to send you log files?
Since this is my first question after one year of development in the abp, I want to say all the positive impression of using abp. In 7 months we have developed the application and we have been live for 5 months now. Thanks