scp-fs2open / scp-fs2open/fs2open.github.com

Translated string sizes do not match source string sizes

Open
#5,989 0 comments 0 reactions 0 assignees View on GitHub
bug discussion localization / translation
Dominant language
C++
Stars
487
Forks
184
PR merge metrics
PR metrics pending

Description

The per-entry limit when parsing tstrings and string tables is 4096 because it's still parsing using a char array. Interestingly, the places where these strings are used are **not** limited to 4096 characters. I'm not sure if it's worth just increasing the char array size or if writing a version of parselo.cpp's `get_string()` that uses SCP_string is a better idea. Either way the difference in string size limit between source and translation isn't ideal.

Relatedly, commented out strings also cannot be larger than 4096 characters. I suspect it uses a similar buffer size for its character array also but I didn't investigate that part any further.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.