fbef0102 / L4D1_2-Plugins

L4D1/2 help server to record, make server more fun, and more useful plugins for adm.
GNU General Public License v3.0
156 stars 67 forks source link

Help Menu — Translation is displayed incorrectly. #42

Closed SefoNotasi closed 1 year ago

SefoNotasi commented 1 year ago

The help menu is displayed incorrectly with translation. For example I wrote some simple, short menu items in English and translated them into Russian. In English, everything is displayed correctly with the Back and Exit buttons: Help eng ok

But the same thing doesn't appear correctly in Russian: the last menu item is cut off in the middle of a sentence, and the Back and Exit buttons have disappeared altogether: Help ru broken (marked)

There are no errors in the logs. Any ideas how to fix this, please?

fbef0102 commented 1 year ago

Menu has character maximum limit. This is engine limit, can not be changed

Please reduce the words when translate.

SefoNotasi commented 1 year ago

Menu has character maximum limit. This is engine limit, can not be changed

Please reduce the words when translate.

Very strange, because sometimes the English language is displayed incorrectly too, even if the menu items are few and the text is short. Sometimes the menu is displayed incorrectly, even if it has only 2-3 items with short text. I cannot reproduce exactly at what point the limitation occurs.

Do you know what the limitations are? I mean the maximum number of characters per item or menu as a whole?

fbef0102 commented 1 year ago

Because in computer program, it has different size to store different language word. For example English "A" takes 1 byte Chinese "哈" takes 2 bytes I guess a Russian alphabet takes 2 bytes ?

Do you know what the limitations are? I mean the maximum number of characters per item or menu as a whole?

The whole menu limit is 512, also there is limit for title and each options, but not sure how much (around 200).

See also