-
Notifications
You must be signed in to change notification settings - Fork 897
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
Add mw server translations #16483
Add mw server translations #16483
Conversation
Checked commits tumido/manageiq@2f3edad~...75fb0b9 with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 **
|
@miq-bot add_label internationalization, middleware, bug |
@tumido Cannot apply the following label because they are not recognized: middleware |
@miq-bot add_label providers/middleware |
@tumido iiic, this PR contains another commit from a different PR? |
@mzazrivec please review |
@abonas yes. I can't build this PR upon master if the master is not in sync with itself. So once the dependent PR is merged (which is here as the first commit) the change set would include only the MW related part. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure you use the proper spelling and capitalization for Red Hat and VMWare to comply with their corporate branding.
I’m working under the assumption that most of the strings in these files are UI labels for fields and actions and should be consistently capitalized as Title Case (that is, all words capitalized).
It may be that some of the strings that I marked weren’t field or action labels but messages displayed to the user. User messages should be Sentence Case capitalization (capitalize first word only) and you can ignore my attempts to change them to Title Case capitalization.
Also noted instances where I wasn’t sure if I was looking at a parameter or a field label (should this be one word or three?).
# TRANSLATORS: en.yml key: dictionary.model.ManageIQ::Providers::Openstack::InfraManager::Host (plural form) | ||
_("Hosts (OpenStack)") | ||
# TRANSLATORS: en.yml key: dictionary.model.ManageIQ::Providers::Redhat::InfraManager::Host | ||
_("Host (Redhat)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Red Hat is two words, both should be capitalized.
# TRANSLATORS: en.yml key: dictionary.model.ManageIQ::Providers::Redhat::InfraManager::Host (plural form) | ||
_("Hosts (Redhat)") | ||
# TRANSLATORS: en.yml key: dictionary.model.ManageIQ::Providers::Vmware::InfraManager::Host | ||
_("Host (Vmware)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VMware should have the first two letters capitalized.
# TRANSLATORS: en.yml key: dictionary.model.ManageIQ::Providers::Hawkular::MiddlewareManager::MiddlewareServerEap (plural form) | ||
_("Middleware Servers (EAP)") | ||
# TRANSLATORS: en.yml key: dictionary.model.ManageIQ::Providers::Hawkular::MiddlewareManager::MiddlewareServerWildfly | ||
_("Middleware Server (Wildfly)") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WildFly should have the "F" capitalized.
# TRANSLATORS: file: db/fixtures/miq_product_features.yml | ||
_("Everything under Cloud Object Stores") | ||
_("Everything under Cloud Object Store Containers") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should "store" be "storage"? (I'm not sure of the correct terminology here)
@@ -3282,6 +3315,10 @@ | |||
# TRANSLATORS: file: db/fixtures/miq_product_features.yml | |||
_("Re-check Authentication Status of Physical Infrastructure Providers") | |||
# TRANSLATORS: file: db/fixtures/miq_product_features.yml | |||
_("Management Console") | |||
# TRANSLATORS: file: db/fixtures/miq_product_features.yml | |||
_("Open a management console") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Open a Management Console
(to be consistent with the title capitalization used elsewhere)
@@ -33368,7 +32319,7 @@ msgstr "" | |||
msgid "new_flavor_id cannot be nil" | |||
msgstr "" | |||
|
|||
msgid "no %{table} credentials defined" | |||
msgid "no Provider credentials defined" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No Provider credentials defined
@@ -33389,18 +32340,15 @@ msgstr "" | |||
msgid "no parent_manager to ems" | |||
msgstr "" | |||
|
|||
msgid "no yml file found for name \"%{name}\"" | |||
msgid "no uid_ems_array defined for linking to service" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No uid_ems_array defined for linking to service
msgstr "" | ||
|
||
msgid "not connected to ems" | ||
msgid "no yml file found for name \"%{name}\"" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No yml file found for name "%{name}"
msgid "time_profile must be passed if interval name is 'daily'" | ||
msgstr "" | ||
|
||
msgid "unable to execute script, file name [%{file_name} does not exist]" | ||
msgid "unable to execute script, file name [%{file_name}] does not exist" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unable to execute script....
@@ -7488,7 +7534,22 @@ msgstr "" | |||
msgid "Data Points" | |||
msgstr "" | |||
|
|||
msgid "Data Store does not exist, unable to add disk" | |||
msgid "DataSource - Connection Creation Time" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Datasource - Connection Creation Time
(Datasource has been lower case, not camel case, through the rest of these files. Change the next couple of strings to be consistent.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure you use the proper spelling and capitalization for Red Hat and VMWare to comply with their corporate branding.
I’m working under the assumption that most of the strings in these files are UI labels for fields and actions and should be consistently capitalized as Title Case (that is, all words capitalized).
It may be that some of the strings that I marked weren’t field or action labels but messages displayed to the user. User messages should be Sentence Case capitalization (capitalize first word only) and you can ignore my attempts to change them to Title Case capitalization.
Also noted instances where I wasn’t sure if I was looking at a parameter or a field label (should this be one word or three?).
That commit updating gettext catalogs should not be included. If you need to add pretty model Updating gettext catalogs is needed only when you want to upload the strings into Zanata |
@mzazrivec, @JStickler, I'm gonna close this PR, since @mzazrivec explained it's not needed to do it this way. I got wrong impression from the MIQ i18n docs that I need translations for new strings introduced. So I've tried to put things into order. The wrong way. Let's try it once more and better. Sorry for the clutter. IMO this PR's review by @JStickler should not be wasted and used in strings corrections later. |
@tumido All you need to do is change |
@tumido why did you close the PR? it seems that you can reopen it, fix the file that @mzazrivec pointed to, take into account @JStickler review and it's good to go |
Add Translation for Middleware servers so they appear correct in Alert profile listings.
Fixes: BUG 1511653
Depends on (for smaller change set): #16482
Before:
After:
cc @abonas