打开 关闭

How to change display name of abp-modal-footer buttons? #1558


User avatar
0
ElifKaya 创建

ABP Framework version: v4.3.0 UI type: Razor (MVC) DB provider: EF Core Tiered (MVC)

Hello,

Is there any way I can change Save and Cancel button display name in the following usage?

Thanks,


4 答案
  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer

    hi

    You can try to change the localization translation of the buttons.

    https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/AbpUiResource.cs#L6 https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json#L6-L12

  • User Avatar
    0
    ElifKaya 创建

    hi

    You can try to change the localization translation of the buttons.

    https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/AbpUiResource.cs#L6 https://github.com/abpframework/abp/blob/dev/framework/src/Volo.Abp.UI/Localization/Resources/AbpUi/en.json#L6-L12

    Actually this solution wont be useful for us. Because I don't want to use localization. I want that AbpModalButtons.Save button name to appear as "Export" in modal, "Import" in another modal, "Save" in another modal or "Associate" in the another modal in the same language. I stopped using abp-modal-footer buttons now. If is not possible changes display name of AbpModalButtons.Save, I can contionue using abp-button like this.

    Thanks

  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer

    hi

    I can contionue using abp-button like this.

    It seems this is the right way.

  • User Avatar
    0
    ServiceBot 创建
    支持团队 Automatic process manager

    This question has been automatically marked as stale because it has not had recent activity.

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11