Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
1 task done
bragefuglseth opened this issue Dec 28, 2024 · 1 comment
Open
1 task done
Labels
enhancement New feature or request

Comments

@bragefuglseth
Copy link
Contributor

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 bragefuglseth added the enhancement New feature or request label Dec 28, 2024
@GeopJr
Copy link
Owner

GeopJr commented Dec 29, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants