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

Installation Proposal BiDi fix (bsc#1089846) #19

Merged
merged 1 commit into from
Apr 23, 2018
Merged

Installation Proposal BiDi fix (bsc#1089846) #19

merged 1 commit into from
Apr 23, 2018

Conversation

mvidner
Copy link
Member

@mvidner mvidner commented Apr 23, 2018

Fixed the "SSH" BiDi text direction in the installation proposal
https://bugzilla.suse.com/show_bug.cgi?id=1089846

Actually this is a workaround, it should not be necessary if there was a <div dir='rtl'>...</div> parent but this will be quicker.

Fixed the "SSH" BiDi text direction in the installation proposal
https://bugzilla.suse.com/show_bug.cgi?id=1089846

Actually this is a workaround, it should not be necessary if there was a
<div dir='rtl'>...</div> parent but this will be quicker.

#. Returns the SSH-port part of the firewall proposal description
#. Returns nil if this part should be skipped
#. @return [String] proposal html text
#: src/lib/y2firewall/clients/proposal.rb:144
msgid "SSH port will be open (<a href=\"%s\">block</a>)"
msgstr "SSH سيتم فتحه (<a href=\"%s\">أغلق</a>)"
msgstr "SSH سيتم فتحه (<a href=\"%s\">أغلق</a>)"
Copy link
Member Author

Choose a reason for hiding this comment

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

The GitHub rendered diff does not show any difference, but the actual change is adding a Right-To-Left mark (U+200F) at the beginning of the string, before "SSH" or "VNC" can establish a LTR direction.

@mvidner
Copy link
Member Author

mvidner commented Apr 23, 2018

I tested the fix using ./yast-test.rb $'\u200fSSH سيتم منعه (<a href=\"%s\">فتح</a>)' from https://github.com/mvidner/bidi-test .

@mvidner mvidner merged commit 3551a29 into master Apr 23, 2018
@imobachgs imobachgs deleted the ssh-bidi branch April 23, 2018 13:46
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.

1 participant