Active Topics

 


Reply
Thread Tools
rooster13's Avatar
Posts: 319 | Thanked: 221 times | Joined on Jan 2010 @ Finland
#1
How do you get the real or localised application name if in your .desktop -file for example the MicroB browser has:
Code:
[Desktop Entry]
Encoding=UTF-8
Version=0.1
Type=Application
Name=weba_ap_web_browser
Comment=weba_ap_web_browser_thumb
Exec=/usr/bin/browser
Icon=general_web
X-Window-Icon=general_web
X-Window-Icon-Dimmed=general_web
X-Osso-Service=osso_browser
X-HildonDesk-ShowInToolbar=true
X-Osso-Type=application/x-executable
MimeType=text/html;text/css;text/sgml;text/x-dtd;application/x-javascript;image/gif;image/jpeg;image/png;image/vnd.wap.wbmp;image/pjpeg;image/bmp;image/x-windows-bmp;image/x-ms-bmp;image/xbm;image/ico;image/x-ico;image/x-xbitmap;text/plain;application/x-shockwave-flash;application/x-xpinstall;
X-Maemo-Prestarted=always
X-Text-Domain=osso-browser-ui
X-Maemo-Prestarted-Priority=7000
Is there any way to get the real name of weba_ap_web_browser or do you have to hardcode all this stuff?

EDIT: Ok, so I figured it out, you have to use gettext.

Last edited by rooster13; 2010-11-05 at 22:59. Reason: Figured it out
 
Reply


 
Forum Jump


All times are GMT. The time now is 04:51.