Lorenzo0111 / MultiLang

🗺️ Remove language barriers and make everyone understand your minecraft server
MIT License
8 stars 3 forks source link

Underscores do not work with translation. #88

Closed spikehidden closed 4 months ago

spikehidden commented 2 years ago

When using underscores (_) in the identifier "<lang>quest_newbie_hungry_07</lang>" won't be replaced with the actual string. It will show <lang>quest_newbie_hungry_07</lang>.

Example:

  7687:
    identifier: "quest_newbie_hungry_07"
    default: "See you later"
    locales:
      english: "See you later"
      deutsch: "Bis später"
      deutsch_be: "Bis später"

But if I change the config to

  7687:
    identifier: "questnewbiehungry07"
    default: "See you later"
    locales:
      english: "See you later"
      deutsch: "Bis später"
      deutsch_be: "Bis später"

it will show See you later or Bis später. image

Lorenzo0111 commented 2 years ago

We only support letters in the placeholder identifier

spikehidden commented 2 years ago

Just want to mention in PAPI placeholders (%multilang_quest_newbie_hungry_07%) it does work perfectly if the plugin supports placeholders.

Anyway, if there are no plans to change this or if it isn't possible may I suggest to put that somewhere in the wiki. Unless I overread it of course.

But still thanks for such a great and free plugin!👍❤️