Using numbers in brackets [0] breaks RTL (Arabic)
- Multiplayer
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
7 years 9 months ago - 7 years 9 months ago #2106
by Multiplayer
Using numbers in brackets [0] breaks RTL (Arabic) was created by Multiplayer
Edit:
Apparently the problem only comes up when I use numbers inside of brackets. "0" is ok, "[]" is also ok, but [0] triggers the error. I can comment out the offending lines 308 and 309, but that produces "¬" signs instead of the color changes that I need the brackets for. Also, it does not correctly reverse the Arabic strings.
Edit 2:
Because I can imagine someone would ask that: Checking "Ignore numbers" does not help.
Hi
I am trying to translate into Arabic. Some of my strings include brackets with rgb codes that change the color of the following text. When I try to request these in Arabic, everything breaks down with the following error:
the origin is me callingThe offending string example is
Is this a bug, or am I doing it wrong?
Apparently the problem only comes up when I use numbers inside of brackets. "0" is ok, "[]" is also ok, but [0] triggers the error. I can comment out the offending lines 308 and 309, but that produces "¬" signs instead of the color changes that I need the brackets for. Also, it does not correctly reverse the Arabic strings.
Edit 2:
Because I can imagine someone would ask that: Checking "Ignore numbers" does not help.
Hi
I am trying to translate into Arabic. Some of my strings include brackets with rgb codes that change the color of the following text. When I try to request these in Arabic, everything breaks down with the following error:
ArgumentOutOfRangeException: Cannot be negative.
Parameter name: startIndex
System.String.Remove (Int32 startIndex, Int32 count) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System/String.cs:1743)
I2.Loc.LocalizationManager.ApplyRTLfix (System.String line, Int32 maxCharacters, Boolean ignoreNumbers) (at Assets/I2/Localization/Scripts/LocalizationManager.cs:309)
I2.Loc.LocalizationManager.TryGetTermTranslation (System.String Term, System.String& Translation, Boolean FixForRTL, Int32 maxLineLengthForRTL, Boolean ignoreRTLnumbers, Boolean applyParameters, UnityEngine.GameObject localParametersRoot) (at Assets/I2/Localization/Scripts/LocalizationManager.cs:250)
I2.Loc.LocalizationManager.GetTermTranslation (System.String Term, Boolean FixForRTL, Int32 maxLineLengthForRTL, Boolean ignoreRTLnumbers, Boolean applyParameters, UnityEngine.GameObject localParametersRoot) (at Assets/I2/Localization/Scripts/LocalizationManager.cs:227)
I2.Loc.LocalizationManager.GetTermTranslation (System.String Term) (at Assets/I2/Localization/Scripts/LocalizationManager.cs:220)
...
the origin is me calling
LocalizationManager.GetTermTranslation(term)
Loading[FFB8F7].[39F7FF].[FFF56C].
Is this a bug, or am I doing it wrong?
Last edit: 7 years 9 months ago by Multiplayer.
Please Log in or Create an account to join the conversation.
7 years 9 months ago #2108
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic Using numbers in brackets [0] breaks RTL (Arabic)
Hi,
Thanks a lot for reporting this issue.
I was able to reproduce and made a fix for that. It is now working on all the tests I did, but will be great if you could try yours and let me know if there is any other case misbehaving.
I uploaded the new version to the beta folder (v2.6.11 a2)
Hope that helps,
Frank
Thanks a lot for reporting this issue.
I was able to reproduce and made a fix for that. It is now working on all the tests I did, but will be great if you could try yours and let me know if there is any other case misbehaving.
I uploaded the new version to the beta folder (v2.6.11 a2)
Hope that helps,
Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
To get the betas as soon as they are ready,
check this out
Please Log in or Create an account to join the conversation.
- Multiplayer
- Topic Author
- Offline
- New Member
Less
More
- Posts: 2
- Thank you received: 0
7 years 9 months ago #2110
by Multiplayer
Replied by Multiplayer on topic Using numbers in brackets [0] breaks RTL (Arabic)
Thank you, I sent you an email for the beta access.
Please Log in or Create an account to join the conversation.
7 years 9 months ago #2111
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic Using numbers in brackets [0] breaks RTL (Arabic)
I sent you an invite!
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
To get the betas as soon as they are ready,
check this out
Please Log in or Create an account to join the conversation.
Time to create page: 0.165 seconds