Xelson / flarum-ext-chat

☁️NeonChat — native realtime chat application for Flarum
https://discuss.flarum.org/d/25361-neon-chat-native-realtime-chat-applicaiton
MIT License
20 stars 8 forks source link

Disambiguate keys used in locale files #7

Closed rob006 closed 3 years ago

rob006 commented 3 years ago

This PR normalizes format of translations string, avoiding situation where for example xelson-chat.forum.chat.list.add_modal.form.color works both as translation and group for child translations (like xelson-chat.forum.chat.list.add_modal.form.color.validator). While current approach seems to work in Flarum, it is confusing and may create problems wit other tools (like Weblate, which does not recognize such format and ignores some strings).

rob006 commented 3 years ago

@askvortsov1 Can you take a look at this?