Description of problem: Unlocalized error message is shown when it is unable to associate an IP address to the port Version-Release number of selected component (if applicable): 4.0 How reproducible: 100% Steps to Reproduce: 1. Log in to Dashboard with admin account 2. Click "Settings" to change the language to Japanese 3. Select Project => Access & Security => Floating IP 4. With a given IP address listed, click "Associate" button. 5. In "Port to be associated", select a port which cannot be associated with the IP. Actual results: Unlocalized error message is displayed. Expected results: It should be localizd. Additional info: Screenshot attached.
Confirmed that this string is not included in the upstream translation file.
Thank you for the bug report. Horizon is displaying the error message as it is returned by the Neutron networking service. There are two issues at hand here: Neutron strings are not translated, and there is no good system currently to request for a message to be returned in a specific locale. Fixing this will require a larger effort together with the other projects (cf bug 1026113).
Created attachment 823157 [details] Unlocalized error message - unable to associate IP address to a port I forgot to attach this screenshot when I filed this bug.
I can confirm this still happens in Juno / 6.0. (The English message has been a bit improved at least, see screenshot.) The message is stored in Neutron. It looks like Neutron has added partial support for supporting language headers: https://blueprints.launchpad.net/neutron/+spec/user-locale-api . It's not quite clear to me from the blueprint description what is still missing, but hopefully it should be resolved by the same Horizon blueprint that will be created for bug 1026113. Because this is feature-level work and upstream is closed for new features in Juno, I am moving the target to future / 7.0. However if it turns out the work is reasonably backportable to 6.0, I'll move the target back. I doubt it'll happen in time before the initial release though. (The fact that 2 error messages are displayed is a separate issue, tracked upstream at https://bugs.launchpad.net/horizon/+bug/1301374 )
Created attachment 944614 [details] Unlocalised "External network unreachable" string Additional, for a quick way to reproduce that particular error message: 1. Create a new network, with a subnet 2. Launch a new instance using that network 3. Go to the Access and Security / Floating IPs tab and try to add a Floating IP to that instance
Seems that the bp upstream has been marked as obsolete. So Im not sure what can we do from the horizon side if the error messages are always returned on english no matter what :(
Hi Itxaka, Thank you very much for the update. In the upstream translation system [1], I can see this message has been translated into Japanese in Sep 2015. Does it mean the translation will be used in Horizon in the future, or it will not be shown as it is programmed to be so? [1] https://translate.openstack.org/webtrans/Application.seam?project=neutron&iteration=stable-mitaka&localeId=ja&locale=en#view:doc;projectsearch:therefore;projectsearchin:both;doc:neutron;search:therefore
Yuko, it looks like its translated, and the appropriate patch for querying neutron in a local language is merged (https://review.openstack.org/#/c/39590/) so it looks like it should return the error in the proper language. Checking the horizon requests done to neutron, I can see that they all include the Accepted language so at a first glance, it seem that even with the BP obsolete, neutron should return the errors in the local language (if there is a translation for that error)
Created attachment 1149434 [details] Unlocalized error message in Japanese environment of OSP-8 Beta
Seems to be blocked by https://bugzilla.redhat.com/show_bug.cgi?id=1086247, adding as 'Depends On:'
The root cause was fixed in https://bugzilla.redhat.com/show_bug.cgi?id=1086247