mockturtl / cinnamon-weather

DEPRECATED. Use linuxmint/cinnamon-spices-applets instead.
https://cinnamon-spices.linuxmint.com/applets/view/17
28 stars 35 forks source link

How to load translations in Archlinux #84

Closed martinrotter closed 9 years ago

martinrotter commented 9 years ago

Hello.

I adopted package cinnamon-weather for Archlinux (https://aur.archlinux.org/packages/cinnamon-applet-weather/). I had to fix the build script and discovered some issues.

See the build script (https://aur.archlinux.org/packages/ci/cinnamon-applet-weather/PKGBUILD).

  1. I had to remove ro.po and zh_CN.po from the build because they cause errors in msgmft tool.
  2. When it is build and installed, it seems that it does not load correct translations. It stays in english all the times, even if I set my DE locale to cs_CZ.

Please check the build script (it is quite self-explanatory) and let me know what I have wrong in it. Thankx in advance.

mockturtl commented 9 years ago

Hi @martinrotter,

Since Cinnamon 1.8, the applet doesn't require packaging. You can just install it via the cinnamon-settings GUI; the schema and localization bits are handled by Cinnamon itself.

I think the cinnamon-applet-weather package on AUR can be removed. I removed the install script and related files from this repository in mid-2013 (@566c764 / #38).

When it is build and installed, it seems that it does not load correct translations. It stays in english all the times, even if I set my DE locale to cs_CZ.

I'm not sure what will happen with the AUR package writing to /usr/share/locale. I think everything should just work if you remove that package and install the applet within Cinnamon, but that may be my ignorance of Arch.

Can you confirm? Maybe you can ask in #archlinux (chat.freenode.net) and #linuxmint-help (irc.spotchat.org).

martinrotter commented 9 years ago

When I install it via cinnamon settings - is that installation system-wide? If it is not, then AUR package is AFAIK much better alternative for the users.

Even if I install it from cinnamon settings, still, the GUI of the applet is in English. Maybe I am missing something obvious.

mockturtl commented 9 years ago

When I install it via cinnamon settings - is that installation system-wide?

No; they install to ~/.local/share/cinnamon/applets.

I don't know if Cinnamon has any official support for system-wide applet installation, or whether it's possible with some hacking.

(Speaking personally, I don't understand the use-case: isn't it preferable to avoid the overhead of package maintenance for a single javascript file?)


Even if I install it from cinnamon settings, still, the GUI of the applet is in English.

I don't know enough about how Cinnamon handles translations, or what conflicts might exist with GNOME, to guess what's happening on your system.

Have you contacted the previous maintainer of your package? Someone on the mailing list might have an idea, too.

The transition to Cinnamon 1.8 was significant; at the time, I recommended running this uninstall script to clean out the deprecated gsettings and .mo files.

martinrotter commented 9 years ago

Actually, the "Arch way" says, that it is not "overhead" to create the package. I create the package once, then it just works for everyone. I already created the package for your applet and it works.

It works, except translations. I do not have GNOME or any part of it installed, thus, no conflicts. Anyway, is localization does not work even with applet installed from cinnamon-settings, I consider it to be a bug which cannot by solved by me.

Can I provide any logs or something for you so that you are able to resolve the bug? If yes which logs?

Have a nice day. MR

mockturtl commented 9 years ago

I consider it to be a bug which cannot by solved by me.

I'm sorry, but I don't use Arch, and I can't help you.

I urge you to contact the last maintainer of your package (or the broader Arch community) for advice.