Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

intl: Add missing localized enum #312

Merged
merged 1 commit into from
May 23, 2022
Merged

Conversation

tinez
Copy link
Member

@tinez tinez commented Apr 25, 2022

When testing engine UI with Selenium in the Firefox console we can see:

console.warn: "Mon Apr 25 13:07:02 GMT+000 2022 org.ovirt.engine.ui.uicompat.EnumTranslator
WARNING: Missing Enum resource 'V4_2'. Cannot find constant 'NfsVersion___V4_2';
expecting a method name"

Let's add the java enum entry to match the one defined in the properties
file [1].

[1]

Signed-off-by: Marcin Sobczyk msobczyk@redhat.com

@tinez
Copy link
Member Author

tinez commented Apr 25, 2022

/ost

1 similar comment
@tinez
Copy link
Member Author

tinez commented Apr 25, 2022

/ost

Copy link
Member

@sjd78 sjd78 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The property key and the GWT resource method should be added at the same time.

When testing engine UI with Selenium in the Firefox console we can see:

 console.warn: "Mon Apr 25 13:07:02 GMT+000 2022 org.ovirt.engine.ui.uicompat.EnumTranslator
                WARNING: Missing Enum resource 'V4_2'. Cannot find constant 'NfsVersion___V4_2';
                expecting a method name"

Let's add the java enum entry to match the one defined in the properties
file [1].

[1] https://github.com/oVirt/ovirt-engine/blob/27a8d1c3f678ef9efc9a300da8cc3c8a8c1afef0/frontend/webadmin/modules/uicompat/src/main/resources/org/ovirt/engine/ui/uicompat/LocalizedEnums.properties#L620

Signed-off-by: Marcin Sobczyk <msobczyk@redhat.com>
@ahadas ahadas merged commit 03d15e9 into oVirt:master May 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants