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

l10n: Correctly setup the locales #8

Open
wants to merge 1 commit into
base: localization
Choose a base branch
from

Conversation

ryonakano
Copy link

Fixes #4

I annotated some codes because this is a example code

# Provide a path of the directory where translation binary files (*.mo) are located
config_data.set_quoted('LOCALEDIR', get_option('prefix') / get_option('localedir'))
# Provide translation domain name
config_data.set_quoted('GETTEXT_PACKAGE', meson.project_name())
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the same as project ID can we just assume this is also always the same as application ID? It feels like kinda overkill to use a config file for this if we know it's equal to a variable we're already using in the application class

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the same as project ID can we just assume this is also always the same as application ID?

Hmm, I don't think so, because I think it's by chance that the GETTEXT_PACKAGE in the config file is same as the application ID in this example.

We can set a value to GETTEXT_PACKAGE that is different from the application ID. And in that case, it's meson.build that knows the original value of GETTEXT_PACKAGE, as you can see at ryonakano@5d4c2e1. So I think it's reasonable to set GETTEXT_PACKAGE as a configuration data here and don't think it's overkill, even if these values are equal.

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

Successfully merging this pull request may close these issues.

2 participants