bluesky-social / social-app

The Bluesky Social application for Web, iOS, and Android
https://bsky.app
MIT License
8.3k stars 1.11k forks source link

Add variables to interface strings to support more languages #3481

Open Aonghuso opened 5 months ago

Aonghuso commented 5 months ago

Irish has recently been added as an interface language. However, because Irish has verb subject object word order, some of the translations are awkward or just plain wrong because parts of the string are not parts of the message string.

For example

: src/view/com/notifications/FeedItem.tsx:170

msgid "liked your custom feed" msgstr "a mhol do shainfhotha"

: src/view/com/notifications/FeedItem.tsx:155

msgid "liked your post" msgstr "a mhol do phostáil"

The subject is not part of the the string to be localised.

This leads to "X a mhol do phostáil"

But the idiomatic way to say this would be Mhol X do phostáil.

Using a placeholder for the subject would permit this.

kscanne commented 5 months ago

As one of the contributors to the Irish localization, I can confirm that this is a significant problem. There is no way of rephrasing the translation to make it not completely awkward/ungrammatical.

quiple commented 3 months ago

PRs related to this issue: #3911, #3912, #3948, #4494