mclemente / fvtt-module-polyglot

Talk to others using a language you can speak and scrambles text you can't understand.
MIT License
41 stars 48 forks source link

New language is not correctly detected everywhere in Splittermond #215

Closed gsterling closed 2 years ago

gsterling commented 2 years ago

Describe the bug When I added a new language (hightlighted) in Splittermond: image It was showing up in the chat window. image But it did nothing. Even the green globe is missing from the card. As compared to another language or the default language. In this order: image It does show up in journals and does work with a language item on a charater sheet for a player.

When writing in a journal it does not translate the text, as it should. Admin view with scrambled texts: image

It does work though, if the character has the desired language: image

If the character does not have the desired language, it breaks. First is the default language, second is known, third ist the new one (unknown) and the last one is unknown, too. The last two lines should be unreadable. It breaks when encountering the new language and the character does not know it. After that all text is clear. image

It also doesn't show up on the language settings window: image

To Reproduce Steps to reproduce the behavior:

  1. Add languages: Basargnomisch,Patalisch,Zwingardisch,Furato,Dragoreisch
  2. Add custom fonts to all of them
  3. Add another language: Mertalisch
  4. Do all of the above mentioned things

I am not sure which of these is important or if I missed anything. It just doesn't work. At all. And I don't see why.

Expected behavior Have an theoretical unlimited quantity of languages all behave the same and use them in the same sentences in journals without breaking other languages.

Versions

Additional context

mclemente commented 2 years ago

I overengineered the support for Splittermond and forgot Custom Languages are how you get languages for systems that don't have languages setup already.