2022-06-30 11:02 AM
Similar to this:
....I have a separate project that produces my binary translations and for the most part, don't use the translations in the main project. I noticed however that the main project is required to have greater or equal the number of text translations than the number of text translation in the binary translation.
It seems to be limited by code in setLanguage() in Texts.cpp where it uses the internal static table size (getInstanceSize()) rather than pulling a size from the binary file.
if (currentLanguageTypedText)
{
currentLanguage = id;
touchgfx::TypedText::registerTypedTextDatabase(currentLanguageTypedText,
TypedTextDatabase::getFonts(), TypedTextDatabase::getInstanceSize());
}
Is this an oversight? It seems kind of limiting to always have to increase the size of an unused table (or setting it to beyond what one might possibly use in the future), if the binary translation file also has to grow.
2022-07-06 02:36 AM
Hi,
You're correct. I think we assumed, at the time, that there would be an equal amount of texts. Can you describe your use case for me?
/Martin
2022-07-07 09:21 AM
We have our application split into two parts. One contains an RTOS, hardware drivers, TouchGFX core, a set number of TGFX screens, etc. You can think of it like an OS. The other is the "Application" and has any number or translations, texts, fonts, screen content, business logic, etc. The "Application" can be loaded independently, and will have a number of variations (i.e Number of text resources). This split architecture is made to support different customers and projects.