-
Notifications
You must be signed in to change notification settings - Fork 42
Migration Status string constants for i18n #476
Migration Status string constants for i18n #476
Conversation
@fdupont-redhat It looks like the manageiq-content repo does not currently have a provision to extract strings for gettext. I have captured all the Migration Status strings here for i18n that are visible in the UI. |
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.
❤️ ❤️ ❤️
wonderfully executed @AparnaKarve!!
@AparnaKarve |
@fdupont-redhat Yes, please. |
@priley86 Can you review the third commit? |
this is much appreciated @AparnaKarve! do you mind also updating the references in
These filter types should depend on those references now I think. Otherwise LGTM. |
5e4d543
to
a9f7e72
Compare
change sorting option from `Started` to `Elapsed Time`
a9f7e72
to
0b8a6f8
Compare
@priley86 So, we don't need any changes in Since we changed the |
@AparnaKarve - i think we can just expose those keys as another constant...and reference them there for consistency. Let me know if this works for you...seems to test OK here. |
also - i think this now closes #255 😸 |
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.
And the use of the keys 😻 Took me a sec to get it... buttttt this feels really solid, now we gotta remain vigilante, ensure they are USED
transformation_host_name: task.options && task.options.transformation_host_name, | ||
delivered_on: new Date(task.options.delivered_on), | ||
updated_on: new Date(task.updated_on), | ||
completed: task.message === 'VM Transformations completed' || task.message === 'VM Transformations failed', | ||
completed: | ||
task.message === STATUS_MESSAGE_KEYS.VM_MIGRATIONS_COMPLETED || |
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.
love love love this <3
Migration Status string constants for i18n (cherry picked from commit 8646fc4) Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1608752
Gaprindashvili backport details:
|
Fixes #255
None of the Migration status strings from the backend were being addressed for i18n/gettext.
Thanks @AllenBW for noticing this in #468
I have included all the strings from -
https://github.com/ManageIQ/manageiq-content/blob/d0cbbf2eed56b75cb737c650ec72b1504c8a31b8/content/automate/ManageIQ/Transformation/StateMachines/VMTransformation.class/transformation.yaml
and
https://github.com/ManageIQ/manageiq-content/blob/f0e6ca25f23ed4a88a87cdecc6f1066aa30898ec/content/automate/ManageIQ/Transformation/StateMachines/VMTransformation.class/vmwarews2rhevm_vddk.yaml
that show up in the Plan detail page.
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1600636