Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

AuditLog - Details Modal: Translate properties and background color to distinguish #7549


User avatar
0
deltavision created

Hi,

just a couple of wishes - for the ANZ framework :-)

Properties are not tranlated - and hard to distinguish Details modal from Change Logs modal.


11 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    Thank Feedback, let me see how to improve it.

  • User Avatar
    0
    maliming created
    Support Team

    Properties are not tranlated

    Because there may be some developer-defined entities. So we can't provide translations for all properties. Developers can handle it themselves if needed.

  • User Avatar
    0
    deltavision created

    Hi @maliming

    can't you do something like this in the "rendering"?

    L("Application") L("MileageDateStart") L("Remarks") L("StandStillMonths")

  • User Avatar
    0
    maliming created
    Support Team

    I can do this, just there may be user-defined entities in the change logs. The properties of the entities are also different, we can't predict them,

  • User Avatar
    0
    deltavision created

    Hi @maliming

    not sure what you mean by user-defined entities - is it the heading in the two modals?

    e.g. "Change logs: Contract ()"

    "Contract" is translated via "PROJECT.Contracts.Contract" - so that is working.

    By the way - what is suppose to go in between ( ) - in the heading of the Change Logs modal?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi @deltavision

    I think what @maliming is trying to say that, you can create an entity in the project (lets say Hotel) and define its fields as you want. Lets say that you defined a property named Address and we can use L("Address") in the related cshtml file. But the thing is, if you don't add Address key to your localization xml file, it will be displayed as [Address] to the end user.

  • User Avatar
    0
    deltavision created

    Hi @ismcagdas,

    I think that the special created entities and fields added to the project - almost always will be translated for use in UI in general.

    So I think it is OK if it says "Address" or "[Address]" (same thing). Then you know you need a translation in your localization xml files :-)

    What about the last question: what is suppose to go in between ( ) - in the heading of the Change Logs modal?

  • User Avatar
    0
    ismcagdas created
    Support Team

    You are right :), I will create an issue for this. In that way, we can force developers to translate the UIs generatead by RAD Tool. I will also check when there is no text between "( )" and let you know.

  • User Avatar
    0
    deltavision created

    Hi ismcagdas,

    just to follow up :-)

    • Did you change or is it planned to translate the property names?

    • What is suppose to go in between ( ) - in the heading of the Change Logs modal?

  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Sorry for the delay. I created the issues;

    https://github.com/aspnetzero/aspnet-zero-core/issues/2895 https://github.com/aspnetzero/aspnet-zero-core/issues/2896

    I think it should be the entity name. I will also check it out.

  • User Avatar
    0
    ismcagdas created
    Support Team

    This issue is closed because of no recent activity. Please create a new issue if you are still having this problem.