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

Key bindings for Layout & Render Style menu... #810

Conversation

georgeraraujo
Copy link
Contributor

... don't make it into TS/translations/ts.pot because of CTRLORALT macro introduced in 5d5ee4a , so rearrange code in src/myframe.h to bring them back.

Closes #809.

... don't make it into `TS/translations/ts.pot` because of `CTRLORALT` macro introduced in 5d5ee4a , so rearrange code in `src/myframe.h` to bring them back
@aardappel
Copy link
Owner

I am not a fan of how much duplication this fix causes, there has to be other ways to make this string translatable without copying everything twice.

Like maybe _(L"Vertical Layout with Grid Style Rendering" "\t" CTRLORALT "+1") so now the string to translate is just the first part?

Or use actual string concatenation.
_(L"Vertical Layout with Grid Style Rendering") + (L"\t" CTRLORALT L"+1") (may need a wxString constructor)

@georgeraraujo
Copy link
Contributor Author

I don't like it too. I only did it like that because the CTRLORALT macro only gets resolved to CTRL or ALT at compile time. I read the documentation, and as far as I could tell xgettext does not handle this case.

@aardappel
Copy link
Owner

@tobiolo

@tobiolo
Copy link
Collaborator

tobiolo commented Feb 13, 2025

I am not a fan of how much duplication this fix causes, there has to be other ways to make this string translatable without copying everything twice.

I agree. The costs of the duplicates are too high.

Like maybe _(L"Vertical Layout with Grid Style Rendering" "\t" CTRLORALT "+1") so now the string to translate is just the first part?

Or use actual string concatenation.

_(L"Vertical Layout with Grid Style Rendering") + (L"\t" CTRLORALT L"+1") (may need a wxString constructor)

I would prefer this one. I am unsure whether the first one works but I have not yet tried.

@tobiolo
Copy link
Collaborator

tobiolo commented Feb 20, 2025

Please rebase your translation files against the updated master branch in this repository. Thanks!

@georgeraraujo georgeraraujo deleted the key-bindings-for-layout-n-render-style-menu branch February 20, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants