[i18n] .desktop files should be generated and translated, instead of being statically checked in

Bug #1404142 reported by GenghisKhan on 2014-12-19
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wicd
Wishlist
Unassigned

Bug Description

TODO: make a wicd-gtk.desktop.in and wicd-tray.desktop.in file that is translated and used to generate the *.desktop files instead of having them statically checked into the source repo. This requires some knowledge about pybabel and POT files.

---

Original issue that brought the issue to light:

Below Hebrew translations of two Wicd desktop files.

wicd.desktop
Comment=Start the Wicd client without system tray icon
Comment[he]=הפעלת לקוח Wicd בלי סמל מגש מערכת

wicd-tray.desktop
Comment=Display network connection status in the system tray
Comment[he]=הצגת מצב חיבור רשת במגש מערכת

"Comment[en_US]=" is redundant.

Related branches

summary: - [i18n] Desktop file strings are not translatable
+ [i18n] Desktop file strings are not available in POT file
Changed in wicd:
status: New → Confirmed
importance: Undecided → Medium

Added the Hebrew translation. Thanks!

Changed in wicd:
status: Confirmed → Fix Committed
assignee: nobody → Tom Van Braeckel (tomvanbraeckel)
milestone: none → 1.7.3
GenghisKhan (genghiskhan) wrote :

Translated desktop strings should be setup in desktop files only on build time, not in source archive (i.e. wicd.desktop wicd-tray.desktop). The above strings should be available in POT file.

Also, when in source code tree, desktop files are named like this FILENAME.desktop.in

See source of Blueman or Gajim for an example.

GenghisKhan (genghiskhan) wrote :

Please generate/update pot/po file/s while using desktop files below and check if the following strings getting included.
* Wicd Network Manager
* Network Manager
* Start the Wicd client without system tray icon
* dhcp;ethernet;ip;network;route;wep;wifi;wireless;wpa;wps
* Network Manager
* Wicd Network Manager Tray
* Display network connection status in the system tray

wicd.desktop
[Desktop Entry]
Categories=Application;Network;
Exec=wicd-gtk --no-tray
_GenericName=Network Manager
Icon=wicd-gtk
_Name=Wicd Network Manager
_Comment=Start the Wicd client without system tray icon
_Keywords=dhcp;ethernet;ip;network;route;wep;wifi;wireless;wpa;wps
Terminal=false
Type=Application
Version=1.0

wicd-tray.desktop
[Desktop Entry]
Categories=Application;Network;
Exec=wicd-gtk --tray
_GenericName=Network Manager
Icon=wicd-gtk
_Name=Wicd Network Manager Tray
_Comment=Display network connection status in the system tray
Terminal=false
Type=Application
Version=1.0
X-GNOME-Autostart-enabled=true
X-KDE-autostart-after=panel

P.S. I suggest to move all contents of /other/ to /data/.

Changed in wicd:
status: Fix Committed → In Progress

TODO: make a wicd-gtk.desktop.in and wicd-tray.desktop.in file that is translated and used to generate the *.desktop files instead of having them statically checked into the source repo. This requires some knowledge about pybabel and POT files.

Changed in wicd:
status: In Progress → Triaged
assignee: Tom Van Braeckel (tomvanbraeckel) → nobody
milestone: 1.7.3 → none
summary: - [i18n] Desktop file strings are not available in POT file
+ [i18n] .desktop files should be generated and translated, instead of
+ being statically checked in
description: updated
Changed in wicd:
importance: Medium → Wishlist
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers