Bug 1001473

Summary: [ja_JP][Admin Portal] String 'Network Provider' broken into two lines in 'New Host' dailog.
Product: Red Hat Enterprise Virtualization Manager Reporter: Lijun Li <lijli>
Component: ovirt-engine-webadmin-portalAssignee: Lior Vernia <lvernia>
Status: CLOSED CURRENTRELEASE QA Contact: Yuko Katabami <ykatabam>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.3.0CC: acathrow, bazulay, danken, ecohen, iheim, lijli, lpeer, lvernia, masayag, nyechiel, qe-i18n-bugs, Rhev-m-bugs, yeylon, ykatabam
Target Milestone: ---Keywords: i18n
Target Release: 3.4.0   
Hardware: x86_64   
OS: Linux   
Whiteboard: network
Fixed In Version: org.ovirt.engine-root-3.4.0-17 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-12 14:04:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Network RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1026487    
Attachments:
Description Flags
String 'Network Provider' broken into two lines in 'New Host' dailog
none
new-line
none
Network Provider strings in Zanata
none
Line break point is not fixed, and a space was inserted.
none
Not Fixed on is21
none
updated translation pulled from Zanata
none
Not fixed av8_Network Provider
none
Host dialog, Japanese
none
Confirmed the fix on 3.4.0-0.21 using Firefox none

Description Lijun Li 2013-08-27 06:46:29 UTC
Description of problem:
[ja_JP][Admin Portal] String 'Network Provider' broken into two lines in 'New Host' dailog.

Version-Release number of selected component (if applicable):
rhevm-3.3.0-0.16.master.el6ev.noarch.rpm
rhevm-webadmin-portal-3.3.0-0.16.master.el6ev.noarch.rpm

How reproducible:
100%

Steps to Reproduce:
1. Login web admin portal.
2. Create External Providers.
3. Click on Hosts tab.
4. Click New button.
5. Click on Network Provider tab from left panel.


Actual results:
String 'Network Provider' broken into two lines

Expected results:
It should be displayed in one line.

Additional info:
Please refer to the attached screen shot for more details.

Comment 1 Lijun Li 2013-08-27 06:49:16 UTC
Created attachment 790796 [details]
String 'Network Provider' broken into two lines in 'New Host' dailog

Comment 2 Lior Vernia 2013-09-01 11:06:30 UTC
Hello Li,

I could use a clarification, is "Network Provider" translated into a single word in Japanese? Or could it be that the translated Japanese string is missing a space character?

Thanks, Lior.

Comment 3 Lijun Li 2013-09-02 01:51:01 UTC
(In reply to Lior Vernia from comment #2)
> Hello Li,
> 
> I could use a clarification, is "Network Provider" translated into a single
> word in Japanese? Or could it be that the translated Japanese string is
> missing a space character?
> 
> Thanks, Lior.

Hi Lior,
No need to add space within the translated Japanese string and checked it in Zanata, the translation is: ネットワークプロバイダー , it's a single word and should be displayed in one line.

Thanks,
Robert.

Comment 4 Einav Cohen 2013-09-09 19:38:06 UTC
@Yuko - we have a similar issue discussed in bug 1000946; 
is there any way to make the ja-JP translation for "Network Provider" shorter or split it to two words?

Comment 5 Yuko Katabami 2013-09-09 22:39:13 UTC
(In reply to Einav Cohen from comment #4)
> @Yuko - we have a similar issue discussed in bug 1000946; 
> is there any way to make the ja-JP translation for "Network Provider"
> shorter or split it to two words?

@Einav - It would be better if we can change it to:

ネットワーク
プロバイダー

Should I insert "\n" or pilcrow (¶) in Zanata to break the line where it is appropriate?

Comment 6 Einav Cohen 2013-09-09 23:18:58 UTC
Created attachment 795768 [details]
new-line

Comment 7 Einav Cohen 2013-09-09 23:22:29 UTC
(In reply to Yuko Katabami from comment #5)
> (In reply to Einav Cohen from comment #4)
> > @Yuko - we have a similar issue discussed in bug 1000946; 
> > is there any way to make the ja-JP translation for "Network Provider"
> > shorter or split it to two words?
> 
> @Einav - It would be better if we can change it to:
> 
> ネットワーク
> プロバイダー
> 
> Should I insert "\n" or pilcrow (¶) in Zanata to break the line where it is
> appropriate?

Hi Yuko, first of all - if it makes sense to put a simple single white-space, it is preferable. if white-space doesn't make sense, please put a line-break symbol in the relevant location within the translation, as you suggested.

with regards to the exact newline character to be used: in https://bugzilla.redhat.com/show_bug.cgi?id=1001428#c4, Daniel has suggested to put the line break character ('\n\'), which is indeed the character that eventually need to appear in the .properties (text) file generated from Zanata; however, I saw that in Zanata there is a usage of a gray pilcrow character (see attachment 795768 [details]) - it seems that this gray pilcrow character represents the '\n\' character, so this is what you should be using.

Comment 8 Yuko Katabami 2013-09-09 23:52:28 UTC
(In reply to Einav Cohen from comment #7)
> (In reply to Yuko Katabami from comment #5)
> > (In reply to Einav Cohen from comment #4)
> > > @Yuko - we have a similar issue discussed in bug 1000946; 
> > > is there any way to make the ja-JP translation for "Network Provider"
> > > shorter or split it to two words?
> > 
> > @Einav - It would be better if we can change it to:
> > 
> > ネットワーク
> > プロバイダー
> > 
> > Should I insert "\n" or pilcrow (¶) in Zanata to break the line where it is
> > appropriate?
> 
> Hi Yuko, first of all - if it makes sense to put a simple single
> white-space, it is preferable. if white-space doesn't make sense, please put
> a line-break symbol in the relevant location within the translation, as you
> suggested.
> 
> with regards to the exact newline character to be used: in
> https://bugzilla.redhat.com/show_bug.cgi?id=1001428#c4, Daniel has suggested
> to put the line break character ('\n\'), which is indeed the character that
> eventually need to appear in the .properties (text) file generated from
> Zanata; however, I saw that in Zanata there is a usage of a gray pilcrow
> character (see attachment 795768 [details]) - it seems that this gray
> pilcrow character represents the '\n\' character, so this is what you should
> be using.

Hi Einav,
I have changed the string using the gray pilcrow as suggested.
Please see attached screenshot.
There are two strings of "Network Provider":
Resource IDs networkProvider and networkProviderButtonLabel
Please let me know if both need to be fixed or only one of these.

I will ask our zh-CN translator about the #1001428.

Comment 9 Yuko Katabami 2013-09-09 23:53:23 UTC
Created attachment 795779 [details]
Network Provider strings in Zanata

Comment 11 Einav Cohen 2013-09-10 01:19:10 UTC
(In reply to Yuko Katabami from comment #8)
> ...
> 
> Hi Einav,
> I have changed the string using the gray pilcrow as suggested.
> Please see attached screenshot.
> There are two strings of "Network Provider":
> Resource IDs networkProvider and networkProviderButtonLabel
> Please let me know if both need to be fixed or only one of these.
> 

@Lior - which one(s) should be changed: networkProvider, networkProviderButtonLabel or both?

Comment 12 Lior Vernia 2013-09-10 06:55:45 UTC
networkProviderButtonLabel is what appears in the left-hand tab when adding a new host (i.e. what this bug was opened about).

networkProvider appears at the top of the Import Networks dialog (accessible from Networks main tab --> Import). No bug was opened for the string there overrunning the listbox, but I suspect there might be a length problem there as well, so it might be a good idea to change that as well (although that can also be fixed by more spacing if that's preferable).

Comment 13 Yuko Katabami 2013-09-10 07:59:39 UTC
(In reply to Lior Vernia from comment #12)
> networkProviderButtonLabel is what appears in the left-hand tab when adding
> a new host (i.e. what this bug was opened about).
> 
> networkProvider appears at the top of the Import Networks dialog (accessible
> from Networks main tab --> Import). No bug was opened for the string there
> overrunning the listbox, but I suspect there might be a length problem there
> as well, so it might be a good idea to change that as well (although that
> can also be fixed by more spacing if that's preferable).

Hi Lior,

I checked the Import Networks window (Networks main tab --> Import) and I also think the length might be a problem (but I don't have the latest environment at hand and mine shows this window in unlocalized thus unable to see the issue).

In this case, adjusting the spacing is preferable.
I removed the pilcrow from networkProvider in Zanata, but left the pilcrow with networkProviderButtonLabel.
Please let me know if there is any issue with it.

I can file a new bug for networkProvider (to extend the space) during the upcoming L10N QA event starting from next Tuesday, if required.

Comment 14 Lior Vernia 2013-09-10 08:51:05 UTC
Hello Yuko,

Yes, if there proves to be a problem with the Import Networks dialog I'd appreciate you opening a bug, as we are currently in a development phase where little can be done without a related bug.

Lior.

Comment 15 Yuko Katabami 2013-09-10 09:26:30 UTC
(In reply to Lior Vernia from comment #14)
> Hello Yuko,
> 
> Yes, if there proves to be a problem with the Import Networks dialog I'd
> appreciate you opening a bug, as we are currently in a development phase
> where little can be done without a related bug.
> 
> Lior.

Hi Lior,

Sure. No problems. Thank you for your suggestion.

Comment 16 Einav Cohen 2013-09-11 20:50:38 UTC
Hi Yuko, if this one is completed (i.e. ready to be pulled from Zanata), can you please move the BZ to POST?
Thanks.

Comment 17 Yuko Katabami 2013-09-11 21:24:28 UTC
(In reply to Einav Cohen from comment #16)
> Hi Yuko, if this one is completed (i.e. ready to be pulled from Zanata), can
> you please move the BZ to POST?
> Thanks.

Hi Einav,

Yes, it has been fixed.
I only changed one with Resource ID networkProviderButtonLabel.
I will check the other one during the QA event and file a separate bug if it is problematic.

Thank you.

Comment 18 Yuko Katabami 2013-09-19 04:49:30 UTC
Created attachment 799730 [details]
Line break point is not fixed, and a space was inserted.

Comment 19 Yuko Katabami 2013-09-19 05:39:24 UTC
Checking with zanata developers for the solution.

Comment 20 Yuko Katabami 2013-09-19 05:44:21 UTC
I was suggested by Zanata developer to insert u200B character where I want to wrap the text. It is fixed in zanata now and need to check again when the next build becomes available.

Comment 21 David Mason 2013-09-19 05:53:24 UTC
To expand a little for future reference: I have advised using a zero-width space to specify the point where the string should be broken when there is insufficient width.

Zero-width space is unicode code point 200B, which can usually be input with a key combination. e.g. I am using Red Hat Enterprise Linux and I can hold Ctrl+Shift, press u, 2, 0, 0, b, then release Ctrl and Shift to insert the character.

In Zanata editor at the moment the zero-width space is displayed as a black dot, but in a downloaded .po file it is correctly represented. The same should be the case for .properties files, but I have not checked specifically.

Note that it does not appear possible to copy-paste a zero-width space from the Zanata editor at the moment, so I recommend always using a key combination as described above.

Comment 22 Yuko Katabami 2013-09-19 05:59:42 UTC
(In reply to David Mason from comment #21)
> To expand a little for future reference: I have advised using a zero-width
> space to specify the point where the string should be broken when there is
> insufficient width.
> 
> Zero-width space is unicode code point 200B, which can usually be input with
> a key combination. e.g. I am using Red Hat Enterprise Linux and I can hold
> Ctrl+Shift, press u, 2, 0, 0, b, then release Ctrl and Shift to insert the
> character.
> 
> In Zanata editor at the moment the zero-width space is displayed as a black
> dot, but in a downloaded .po file it is correctly represented. The same
> should be the case for .properties files, but I have not checked
> specifically.
> 
> Note that it does not appear possible to copy-paste a zero-width space from
> the Zanata editor at the moment, so I recommend always using a key
> combination as described above.

Hi David,
Thank you very much for your thorough explanation,
and sorry about my insufficient information in my previous comment.

Comment 23 Yuko Katabami 2013-09-26 02:49:08 UTC
@Einav,

Translation is updated following the suggestion by David.
It is ready to pull.
I move this status back to POST.

Comment 25 Lijun Li 2013-11-05 08:05:04 UTC
Verified it's NOT fixed on is21 build 3.3.0-0.31.beta1.el6ev

Please refer to the attached screenshot.

Comment 26 Lijun Li 2013-11-05 08:08:22 UTC
Created attachment 819559 [details]
Not Fixed on is21

Comment 27 Yuko Katabami 2013-11-05 08:25:38 UTC
(In reply to Lijun Li from comment #25)
> Verified it's NOT fixed on is21 build 3.3.0-0.31.beta1.el6ev
> 
> Please refer to the attached screenshot.

@Einav,

I would like to check with you if the fixed translation was pulled or not.
If it was no pulled, that's fine but if it was and then did not fix the problem, it means that inserting u200B character did not work. 

Please let me know.

Kind regards,

Yuko

Comment 28 Einav Cohen 2013-11-25 22:11:59 UTC
Created attachment 828935 [details]
updated translation pulled from Zanata

Comment 29 Einav Cohen 2013-11-25 22:44:53 UTC
(In reply to Yuko Katabami from comment #27)
> (In reply to Lijun Li from comment #25)
> > Verified it's NOT fixed on is21 build 3.3.0-0.31.beta1.el6ev
> > 
> > Please refer to the attached screenshot.
> 
> @Einav,
> 
> I would like to check with you if the fixed translation was pulled or not.
> If it was no pulled, that's fine but if it was and then did not fix the
> problem, it means that inserting u200B character did not work. 
> 
> Please let me know.
> 
> Kind regards,
> 
> Yuko

Hi Yuko, it seems that the translation has been updated properly (i.e. the "/n" character has been properly replaced with the "/u200B" character - see attachment 828935 [details]), however indeed it seems that it hasn't affected the rendered text in the application. 
@Lior - can you please assist us and find out what is the exact character that should be written within the string in the *_ja_JP.properties file that will result in a newline within the section-title label?

Comment 31 Yuko Katabami 2013-11-25 22:58:38 UTC
(In reply to Einav Cohen from comment #29)
> (In reply to Yuko Katabami from comment #27)
> > (In reply to Lijun Li from comment #25)
> > > Verified it's NOT fixed on is21 build 3.3.0-0.31.beta1.el6ev
> > > 
> > > Please refer to the attached screenshot.
> > 
> > @Einav,
> > 
> > I would like to check with you if the fixed translation was pulled or not.
> > If it was no pulled, that's fine but if it was and then did not fix the
> > problem, it means that inserting u200B character did not work. 
> > 
> > Please let me know.
> > 
> > Kind regards,
> > 
> > Yuko
> 
> Hi Yuko, it seems that the translation has been updated properly (i.e. the
> "/n" character has been properly replaced with the "/u200B" character - see
> attachment 828935 [details]), however indeed it seems that it hasn't
> affected the rendered text in the application. 
> @Lior - can you please assist us and find out what is the exact character
> that should be written within the string in the *_ja_JP.properties file that
> will result in a newline within the section-title label?

Thank you Einav.
I will also speak with David Mason or other Zanata engineers about this and update if we can find other solution.

Comment 32 Yuko Katabami 2014-03-28 00:13:45 UTC
Just checked with damason but there is no other solution for this.

Is it possible to widen the pane?

Comment 33 Einav Cohen 2014-03-28 02:00:21 UTC
(In reply to Yuko Katabami from comment #32)
> Just checked with damason but there is no other solution for this.
> 
> Is it possible to widen the pane?

[changing Whiteboard to 'network' for now]

@Lior - thoughts? see comment #29, comment #32 for possible solutions, please let us know what you think. thanks.

Comment 34 Lior Vernia 2014-03-31 09:26:55 UTC
Sorry, I probably missed your original NEEDINFO somehow. I played around with this a little on Firefox 22. Seems like lines aren't broken according to spaces at all when Japanese letters are concerned; I tried inserting actual spaces (with nonzero width) and the string still got broken at the same spot.

I found that adding a CSS property "word-break: keep-all" to the containing HTML element does respect spacing when breaking (including the zero width space), but this should be applied in the generic left tab widget (to correct this everywhere and not just for this specific dialog and tab), and I'm not knowledgeable enough in CSS to know what harm this might cause on other browsers. I'll play around a little and push a patch when I'm happy with the results.

Comment 35 Einav Cohen 2014-03-31 13:45:01 UTC
(In reply to Lior Vernia from comment #34)
> Sorry, I probably missed your original NEEDINFO somehow. I played around
> with this a little on Firefox 22. Seems like lines aren't broken according
> to spaces at all when Japanese letters are concerned; I tried inserting
> actual spaces (with nonzero width) and the string still got broken at the
> same spot.
> 
> I found that adding a CSS property "word-break: keep-all" to the containing
> HTML element does respect spacing when breaking (including the zero width
> space), but this should be applied in the generic left tab widget (to
> correct this everywhere and not just for this specific dialog and tab), and
> I'm not knowledgeable enough in CSS to know what harm this might cause on
> other browsers. I'll play around a little and push a patch when I'm happy
> with the results.

Many thanks, Lior - I appreciate it.

Comment 36 Lior Vernia 2014-04-20 11:59:57 UTC
The patch I pushed should fix this on Firefox and on IE for all dialog left tabs, as far as I could tell without breaking anything in Western languages. It seems that the CSS property is not supported on Chrome (verified) and possibly on Safari (didn't check), haven't found an easy fix for those.

Comment 37 Lior Vernia 2014-04-20 12:00:57 UTC
P.S. zero-width space should in general keep on being inserted within such words as line-break "hints".

Comment 38 Einav Cohen 2014-04-22 00:39:07 UTC
(In reply to Lior Vernia from comment #36)
> The patch I pushed should fix this on Firefox and on IE for all dialog left
> tabs, as far as I could tell without breaking anything in Western languages.

Many thanks, Lior. 

> It seems that the CSS property is not supported on Chrome (verified) and
> possibly on Safari (didn't check), haven't found an easy fix for those.

For Chrome, it indeed seems to be a known issue:
https://code.google.com/p/chromium/issues/detail?id=141792

Comment 39 Lijun Li 2014-05-08 08:56:58 UTC
Verified Not fixed on av8 build: 3.4.0-0.16.rc.el6ev.

Please see the attached screenshot.

Comment 40 Lijun Li 2014-05-08 09:00:05 UTC
Created attachment 893580 [details]
Not fixed av8_Network Provider

Comment 41 Lior Vernia 2014-05-08 10:45:28 UTC
I think it was incorrectly marked as ON_QA in av8, I think it missed that build.

Comment 42 Lijun Li 2014-05-26 06:31:19 UTC
Verified on latest av9 build, it's still Not Fixed.

Comment 43 Lijun Li 2014-05-26 06:31:45 UTC
Build: 3.4.0-0.21.el6ev

Comment 44 Dan Kenigsberg 2014-05-26 12:37:34 UTC
Let's solve it in 3.5, then.

Comment 45 Lior Vernia 2014-05-26 13:07:02 UTC
Created attachment 899307 [details]
Host dialog, Japanese

See my screenshot from 3.4.0-0.21.el6ev. Looks okay to me. This is on Firefox 22, verified on Firefox 26 as well.

Comment 46 Dan Kenigsberg 2014-05-26 13:57:07 UTC
Lijun Li, could you provide more details on why this bug is not yet fixed?

Comment 47 Yuko Katabami 2014-05-26 21:31:30 UTC
It looks like fixed to me too.
@Robert, wonder why it did not show this fix on your environment.

Comment 48 Yuko Katabami 2014-05-27 04:16:50 UTC
I found out why --- I opened Robert's environment with google-chrome and it looked unfixed but when I opened it in Firefox, it looks perfectly fine.
We should change the status to VERIFIED.

Comment 49 Yuko Katabami 2014-05-27 04:19:40 UTC
Created attachment 899379 [details]
Confirmed the fix on 3.4.0-0.21 using Firefox

Comment 50 Lijun Li 2014-05-27 07:04:27 UTC
With Comment 45 and Comment 49, also verified on Firefox (version: ESR 17.0.10), it's FIXED, moving to VERIFIED.

Comment 51 Itamar Heim 2014-06-12 14:04:21 UTC
Closing as part of 3.4.0