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

GNOME glib syntax does not work for static translation methods in C# #31

Closed
Jogge opened this issue Feb 20, 2019 · 2 comments
Closed

GNOME glib syntax does not work for static translation methods in C# #31

Jogge opened this issue Feb 20, 2019 · 2 comments

Comments

@Jogge
Copy link

Jogge commented Feb 20, 2019

_("Context|Message") should show up as Message as source text and Context as context, but it shows up as Context|Message as source text and no context.

Related to #22

@Jogge Jogge changed the title GNOME glib syntax does not work for static translation message in C# GNOME glib syntax does not work for static translation methods in C# Feb 20, 2019
@robert-j-engdahl
Copy link
Owner

xgettext supports this (kind-a) out of the box, just use the option -k_:0g when invoking xgettext. (It will give anoying warnings when you forget to specify a context)

However, as you point out the static translation methods in this library doesn't detect the | as a context separator. And it would be awesome if it did.

@robert-j-engdahl
Copy link
Owner

Is fixed in next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants