TTT-2 / TTT2

Trouble in Terrorist Town 2 for Garry's Mod (gmod)
https://steamcommunity.com/sharedfiles/filedetails/?id=1357204556
177 stars 72 forks source link

It seems that Simplified Chinese and Traditional Chinese don't have automatic line breaks. #1110

Closed sbzlzh closed 9 months ago

sbzlzh commented 11 months ago

It's in English: image This is in simplified Chinese: image (1)

TimGoll commented 9 months ago

We're sorry it took that long. But what seemed like an easy problem was actually quite complex in the end. But it should work now for all languages in all UI elements

sbzlzh commented 9 months ago

We're sorry it took that long. But what seemed like an easy problem was actually quite complex in the end. But it should work now for all languages in all UI elements

Thank you for your hard work and dedication. I appreciate your efforts to make it work for all languages and UI elements. :D

Racpy commented 9 months ago

The new update looks great, no more manual line breaks from translation files. but the line breaks in body search don’t seem to be perfect?

For example, the strings in the picture will automatically line break. 1 2

TimGoll commented 9 months ago

The new update looks great, no more manual line breaks from translation files. but the line breaks in body search don’t seem to be perfect?

For example, the strings in the picture will automatically line break. 1 2

probably because there is a whitespace before the curly bracket and whitespaces are preferred when breaking lines

Racpy commented 9 months ago

The new update looks great, no more manual line breaks from translation files. but the line breaks in body search don’t seem to be perfect? For example, the strings in the picture will automatically line break. 1 2

probably because there is a whitespace before the curly bracket and whitespaces are preferred when breaking lines

Hmm, but english seems to display normally as expected. 3

TimGoll commented 9 months ago

becasue english has other whitespaces where i can break the line. If there is a single line break in the text if first tries to split it there. If the line is still too long, it uses the new line break rework.

is is invalid for chinese to remove this whitespace here?

Racpy commented 9 months ago

becasue english has other whitespaces where i can break the line. If there is a single line break in the text if first tries to split it there. If the line is still too long, it uses the new line break rework.

is is invalid for chinese to remove this whitespace here?

If I remove the spaces, there will be no line breaks, but for me I prefer to keep one space before and after the numbers, just like in English. haha

TimGoll commented 9 months ago

becasue english has other whitespaces where i can break the line. If there is a single line break in the text if first tries to split it there. If the line is still too long, it uses the new line break rework. is is invalid for chinese to remove this whitespace here?

If I remove the spaces, there will be no line breaks, but for me I prefer to keep one space before and after the numbers, just like in English. haha

Is there a chinese character that is a different type of whitespace that could be used here?

Racpy commented 9 months ago

becasue english has other whitespaces where i can break the line. If there is a single line break in the text if first tries to split it there. If the line is still too long, it uses the new line break rework. is is invalid for chinese to remove this whitespace here?

If I remove the spaces, there will be no line breaks, but for me I prefer to keep one space before and after the numbers, just like in English. haha

Is there a chinese character that is a different type of whitespace that could be used here?

The Traditional Chinese input method can be switched to full-width characters. In full-width character mode, press space to create larger white space. (unicode character U+3000)

As shown in the picture, but the spaces are a bit large, but it’s better than no spaces. 4

sbzlzh commented 9 months ago

image If you remove the trailing spaces it is normal. Is there any other way.