Ends in:
7 DAYS
21 HRS
33 MIN
10 SEC
Ends in:
7 D
21 H
33 M
10 S

Activities of "safi"

AbpAccountResource

Yes, still the same error.Can we connect on zoom?

What does the error say?

Adding this code into hostmodule.cs and getting this error also I have added the above-mentioned namespace and references too.

Namespace for AbpAccountResource is Volo.Abp.Account.Localization, and Volo.Abp.UI.Navigation.Localization.Resource for AbpUiNavigationResource.

using Volo.Abp.Account.Localization;

using Volo.Abp.UI.Navigation.Localization.Resource;

However, make sure that you are overriding these resources in a project/layer that references Volo.Abp.Account.Pro.Shared.Application.Contracts package. I suggest you to make these changes in the top layer (i guess HttpApi.Host for blazor) of your solution.

Ok thanks, yekalkan. Let me try this solution.

I added these folders into host project and trying like this but still getting error while using AbpAccountResource

Namespace for AbpAccountResource is Volo.Abp.Account.Localization, and Volo.Abp.UI.Navigation.Localization.Resource for AbpUiNavigationResource.

using Volo.Abp.Account.Localization;

using Volo.Abp.UI.Navigation.Localization.Resource;

However, make sure that you are overriding these resources in a project/layer that references Volo.Abp.Account.Pro.Shared.Application.Contracts package. I suggest you to make these changes in the top layer (i guess HttpApi.Host for blazor) of your solution.

Ok thanks, yekalkan. Let me try this solution.

Hi @safi,

You overrided AbpUiNavigationResource localizations, and registration form localizations don't belong to that resource. So you need to override AbpAccountResource as well.

Hi

If I am trying to add AbpAccountResource then it's showing error

Please let me know what reference I need to add for this. Same error is coming If I use AbpUiNavigationResource.

It's quite urgent so expecting early response.

If there is anything that we can add in the JSON file (present in the localization folder) for this?

You won't change anything in your current localization files. You need to create another localization folder and configure it to extend the resource you want to change.

See Extending Existing Resource section in the documentation.

In your scenario, you need to extend AbpUiNavigationResource.

Localization key for administration menu is Menu:Administration.

example code:

services.Configure<AbpLocalizationOptions>(options => 
{ 
    options.Resources 
        .Get<AbpUiNavigationResource>() 
        .AddVirtualJson("/Localization/Resources/Test/Extensions"); 
}); 

/Localization/Resources/Test/Extensions/en.json file:

{ 
  "culture": "en", 
  "texts": { 
    "Menu:Administration": "Custom administration translate" 
  } 
} 

Hi

Thanks for the response. I tried your solution so it's reflecting my files in Language text section (under administration) but not changing text in registration form. I added keys there but not showing changes there.

services.Configure<AbpLocalizationOptions>(options => { options.Resources .Get<AbpUiNavigationResource>() .AddVirtualJson("/Localization/Resources/Test/Extensions"); });

Where I need to add this code?

Hi @safi

I answered this question at https://support.abp.io/QA/Questions/2413/Changing-the-name-of-Administration-menu-item#answer-c47fcd18-b187-5cae-4a43-3a0160d834cf

Ok, thanks. If there is anything that we can add in the JSON file (present in the localization folder) for this?

Any update?

Showing 221 to 230 of 286 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06