PSA: Can't Categorize Font Terms
- TheWanderingBen
- Topic Author
- Offline
- New Member
Less
More
- Posts: 3
- Thank you received: 0
5 years 7 months ago #3692
by TheWanderingBen
PSA: Can't Categorize Font Terms was created by TheWanderingBen
Not sure if this is intended or a bug, but either way, folks should know to not put Font terms in a Category and expect them to work as Secondary Terms in the Localize component.
Basically, if a font is called MyCoolFont SDF, and term is of the format Font/MyCoolFont SDF, and you use it as a Secondary Term on the Localize component, the plugin will never find that font, and so the Localize component will change the translation, but not the font asset. This is a problem if you have languages with different glyphs.
I think this has to do with the way LanuageSourceData::GetTermData gets called, which is always with the default allowCategoryMismatch set to false. If it were me, I'd set the SecondaryTerms to allow that mismatch. But I haven't studied the code or use-cases much, so there could be a reason to keep the current functionality. It was just really confusing for a while!
Basically, if a font is called MyCoolFont SDF, and term is of the format Font/MyCoolFont SDF, and you use it as a Secondary Term on the Localize component, the plugin will never find that font, and so the Localize component will change the translation, but not the font asset. This is a problem if you have languages with different glyphs.
I think this has to do with the way LanuageSourceData::GetTermData gets called, which is always with the default allowCategoryMismatch set to false. If it were me, I'd set the SecondaryTerms to allow that mismatch. But I haven't studied the code or use-cases much, so there could be a reason to keep the current functionality. It was just really confusing for a while!
Please Log in or Create an account to join the conversation.
5 years 7 months ago #3698
by Frank
Are you Give I2L 5 stars!
Are you Please lets us know how to improve it!
Replied by Frank on topic PSA: Can't Categorize Font Terms
That's definitely a bug.
Will investigate and submit a fix ASAP!
Thanks for reporting that.
Frank
Will investigate and submit a fix ASAP!
Thanks for reporting that.
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.
Time to create page: 0.118 seconds