-
Notifications
You must be signed in to change notification settings - Fork 39
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
Question about i18n #92
Comments
Hi @maximbaz The instructions in the README are only for maintainers of the app (developers/translators). You can see those here:
I'm going to update the That being said, I don't really know how to test those locales. I tried setting a different locale using @brodi1 @xfgusta you've translated swappy in |
Most of the `i18n` boilerplate was there, but the app still needed to know what domain to look for. This must happen after initialization of the `GtkBuilder` and before loading the glade file. The domain is simply the `mo` file packaged with the app and usually located under: ``` ``` /usr/share/locale/$LANG/LC_MESSAGES/$APP.mo ``` Once again thanks to @maximbaz for pointing it out. Closes #92
Most of the `i18n` boilerplate was there, but the app still needed to know what domain to look for. This must happen after initialization of the `GtkBuilder` and before loading the glade file. The domain is simply the `mo` file packaged with the app and usually located under: ``` /usr/share/locale/$LANG/LC_MESSAGES/$APP.mo ``` Once again thanks to @maximbaz for pointing it out. Closes #92
So I don't think it was working before (if it was I can't really explain how). I've submitted #94 which now properly sets the domain for the app, before loading the glade UI file. This will let the app know where the I've tested the Once again, thanks @maximbaz for bringing it up ! And to answer your original question, you don't need to change anything to the |
Most of the `i18n` boilerplate was there, but the app still needed to know what domain to look for. This must happen after initialization of the `GtkBuilder` and before loading the glade file. The domain is simply the `mo` file packaged with the app and usually located under: ``` /usr/share/locale/$LANG/LC_MESSAGES/$APP.mo ``` Once again thanks to @maximbaz for pointing it out. Closes #92
Hey, just a quick question, I saw your commit 57c707a describing how to build i18n, and I want to make sure I'm doing everything correctly for your package once I moved it to Arch [community], but I never worked with i18n before - what is supposed to happen if I change
ninja -C build
toninja -C build swappy-pot
? Or in other words, how can I test that everything is good? I don't see any changes to the package, that's why I'm a bit confused 🤔PKGBUILD is pretty much how you made it for AUR: https://github.com/archlinux/svntogit-community/blob/dbc2f1633d5abf5c112f17f03e12c1ec335259f4/trunk/PKGBUILD#L22-L23
The text was updated successfully, but these errors were encountered: