"Battery" appears untranslated in indicator-power

Bug #846895 reported by Gabor Kelemen
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu Translations
Fix Released
Medium
Unassigned
indicator-power
Fix Released
Undecided
Unassigned
indicator-power (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The string "Battery" appears untranslated in indicator-power, despite being translated in the .mo file.

This is because this string directly uses the gettext() call, while the indicator-power.c file includes gi18n-lib.h. The latter means that the _() macro uses dgettext(). Strings which use the _() macro (like Show Time in Menu Bar) appear translated, so the gettext() calls need to be replaced by these.
There are also a few ngettext calls in the same file, these need to be converted to g_dngettext() if we want those translations to work.

Revision history for this message
Gabor Kelemen (kelemeng) wrote :
Changed in indicator-power (Ubuntu):
status: New → Confirmed
Revision history for this message
Javier Jardón (jjardon) wrote :

Thanks a lot for the patch, aproved and merged.

Changed in indicator-power:
status: New → Fix Committed
Javier Jardón (jjardon)
Changed in indicator-power:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package indicator-power - 0.9-0ubuntu1

---------------
indicator-power (0.9-0ubuntu1) oneiric; urgency=low

  * New upstream release.
    - Use correct dgettext and g_dngettext calls (LP: #846895)
    - Ensure we use the same icon for all charge levels if we are in the
      charging status (LP: #824629)
    - Fix gap when the power indicator is not show (LP: #842188)
    - Do not show (charged) in menu title when fully charged (LP: #850011)
    - Do not activate g-s-d, but just watch dbus for g-s-d to
      appear (LP: #854717)
  * po/POTFILES.in
    - Fixed gsettings schema filename
  * debian/copyright
    - Removed an extra line to make dep5 compliant
 -- Ken VanDine <email address hidden> Fri, 23 Sep 2011 13:03:13 -0400

Changed in indicator-power (Ubuntu):
status: Confirmed → Fix Released
Gabor Kelemen (kelemeng)
Changed in ubuntu-translations:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.