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
Audio delay units uses two lines in Hebrew #4895
Comments
AnalysisMy initial take was that
That suggested the error was that IINA was presenting this label to translators instead of making it universal across all languages. However as shown here usage of SI symbols is not common practice in some locals. Therefore IINA should allow translators to specify the text to use in this case. Thus the layout problem needs to be corrected. FixingThe solution is to change the |
This commit will change the Line Break attribute of the text field holding the units from Word Wrap to Truncate Tail.
After further thought, the abbreviation " Can you fix it? Maybe you should narrow the width of the number input? |
When I tested it the text field holding the number automatically reduced it's size. The results shown are unexpected. I will investigate. |
This commit will change the Line Break attribute of the text field holding the units from Word Wrap to Clip.
I experimented a lot, but was unable to reproduce the behavior shown in your screenshot: I did update the code to clip instead of truncate to match the behavior of the other labels. Make certain your
I found the I did confirm that some other languages also do not use the SI symbol: Translations:
|
Yes. I will fix that. It will mean the label will get clipped instead of the box with the number when the window is really compressed. |
This commit will: - Change the Line Break attribute of the text field holding the units from Word Wrap to Clip - Add a width constraint to the text field displaying slider setting as a numeric value - Change the width constraint of the similar text field on the SUBTITLES tab to match the new constraint added to the AUDIO tab This prevents the audio delay units field from wrapping into two lines and places a limit on the minimum size of the text field displaying the slider value such that the number it holds is not truncated when the user reduces the window size so much that the quick settings panel is compressed.
I have fixed both the |
System and IINA version:
Expected behavior:
The
Audio delay
setting on theAUDIO
tab of the quick settings panel is displayed as intended in languages other than English.Actual behavior:
The
Audio delay
setting contains a text field after the slider that can be used to enter a value for the delay. After the text field is another text field giving the units of the value. In English this field showss
. Currently IINA does not support any right to left languages. However PR #4922 enables Hebrew. If you build IINA with that pull request and set Hebrew as the language then the units (שנ'
) do not fit:This problem was reported by @ShlomoCode in issue #4776. As that issue reports quite a few RTL related problems I have created this issue to focus just on this particular problem.
Steps to reproduce:
Pull PR feat: enable hebrew locale #4922
Open the IINA project in Xcode
Under the
Product
menu open theScheme
menu and selectEdit Scheme…
Click on the
Options
tabScroll down to the
App Language
settingIn the pull down select
Hebrew
Start IINA running under Xcode
Start playing a video
Press ⇧⌘A to show the audio panel
Notice the units shown for
Audio delay
is wrapped into multiple linesMPV does not have this problem.
mpv does not support localization.
How often does this happen?
Every time.
The text was updated successfully, but these errors were encountered: