Indicator-Sensors menu is in English, while all the words ("Preferences...", "About..." and "Quit") are translated to Lithuanian, Polish and other languages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Hardware Sensors Indicator |
Fix Released
|
High
|
Alex Murray |
Bug Description
Indicator-Sensors menu (which appears when you click on Indicator-sensors icon) is in English, while all the words ("Preferences...", "About..." and "Quit") are translated to Lithuanian, Polish and other languages - see screenshot https:/
You can test this bug with Polish (pl) or Lithuanian (lt) language - indicator-sensors is 100% translated to Polish. Check if your system has Polish locale generated with comand "localedef --list-archive" (if not - then run sudo apt-get install language-pack-pl ) and then run "LANG=pl_PL.UTF-8 indicator-sensors" from terminal:
ubuntu@ubuntu:~$ localedef --list-archive |grep pl
pl_PL.utf8
ubuntu@ubuntu:~$ LANG=pl_PL.UTF-8 indicator-sensors
Also I've found one string missing in translation template (indicator-
Changed in indicator-sensors: | |
status: | Fix Committed → Fix Released |
I think problem with Indicator-Sensors menu translation is in file /indicator- sensors/ is-indicator. c lines 159-175 - there is macros N_() used: preferences" , N_("Preferences…"), NULL, N_("Preferences"), G_CALLBACK( prefs_action) }, set_label( self, _("No active sensors"));
static GtkActionEntry entries[] = { { "Preferences", "application-
while other lines with translation strings has _() instead of N_(), see for example line 699:
is_indicator_
(I'm not C language guru, so, maybe I'm wrong, maybe problem is in other place ;))
Also I think, that untranslated Preferences Window title (string "Hardware Sensors Indicator Preferences") is because of line 108 in file /indicator- sensors/ is-preferences- dialog. c line: set_title( GTK_WINDOW( self), _(PACKAGE_NAME " Preferences"));
gtk_window_
Maybe this line should be like this (I forgot C language many years ago, but you should understand my idea ;) ): set_title( GTK_WINDOW( self), _(PACKAGE_NAME) + _(" Preferences"));
gtk_window_