Tuba icon indicating copy to clipboard operation
Tuba copied to clipboard

[Request]: Make "Copy %s Post Link?" a separate string for each value of %s

Open bragefuglseth opened this issue 11 months ago • 1 comments

Describe the request

Hi! Just chiming in with a quick i18n request amidst updating Tuba's Norwegian Bokmaal translations.

src/Widgets/Status.vala#L393:

// translators: the variable is the post visibility e.g. Public, Unlisted...
{_("Copy %s Post Link?").printf (accounts.active.visibility[status.formal.visibility].name), false},

Surgically injecting a word/phrase into a sentence this way is inconvenient for many languages, since there might be surrounding words that require different conjugations depending on the injected one, or vice versa. For Norwegian, I'd also like to avoid Title Case Strings since that convention doesn't exist here, and a capitalized word being injected programmatically means that I have to resort to awkward wording to accomplish this ("Copy Link to Post of Type '%s'?").

Ideally, each possible post type would have its very own "Copy Post Link" string, so translators can conjugate words properly. Or you could try to find a suitable term for all those kinds of posts and make the string generic, e.g. "Copy Restricted Post Link?", albeit the added context of an exact type is nice to have.

Implementation Details

bragefuglseth avatar Dec 28 '24 20:12 bragefuglseth

It wasn't meant to be sentence splitting but I see how it looks now, should have probably wrapped it in quotes :/

I can probably do individual strings! The actual possibilities are only 'Private' and 'Mentioned-Only' (and probably 'local-only' when I add that)

GeopJr avatar Dec 29 '24 14:12 GeopJr