Active Topics

 


Reply
Thread Tools
rooster13's Avatar
Posts: 319 | Thanked: 221 times | Joined on Jan 2010 @ Finland
#1
I am trying to get localized names of the folders in MyDocs, .sounds, .videos, .documents, .images.

I have tried using gettext like this:
Code:
setlocale(LC_ALL,""); 
bindtextdomain("maemo-af-desktop","/usr/share/locale");
bind_textdomain_codeset("maemo-af-desktop","UTF-8");
textdomain("maemo-af-desktop"); 
realName = gettext(".sounds"));
To which domain should I bind gettext? Anyone has an idea?
 
rooster13's Avatar
Posts: 319 | Thanked: 221 times | Joined on Jan 2010 @ Finland
#2
Ok, I figured it out. You have to bind the gettext domain to hildon-fm (Hildon Filemanager). Then use gettext for the names you want. Search for then hildon-fm translations to figure out the string to pass to gettext.
 

The Following 2 Users Say Thank You to rooster13 For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 19:52.