You are not logged in.
hi,
the file xfdesktop-4.6.1\modules\menu\directory-data\xfce-network.directory.in like this
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Directory
Icon=applications-internet
_Name=Network
_Comment=Network applications and utilities
I find that some files use ‘Name’,some files use '_Name',is there any different between them?
now, I have a file like this is ok! I can set different language.
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Icon=applications-internet
Name=reboot
Name[zh_CN]=重启
Name[zh_TW]=重啟
Comment=******
but the other file like this is wrong! I can't set different language.
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Directory
Icon=applications-internet
_Name=shutdown
Name[zh_CN]=关机
Name[zh_TW]=關機
_Comment=******
Is there any different between them?
Thanks a lot!
Offline
_Name marks the string are translatable (for intltool-update), so the *.desktop.in file will become *.desktop with translated strings (when running make).
Offline
Nick,thanks.
I know that the _Name variable can be translated to surpport different language automatic。
now,I want to add a new menu,so I write the xfce-shutdown.directory.in file like this:
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=Directory
Icon=xfce-system-exit
_Name=Shutdown
_Comment=Shut down system
after make command, the new file xfce-shutdown.directory is as same as xfce-shutdown.directory.in, it's not translated automatic.
why?Dose xfce just surpport a liitle and certain _Name variable can be translated?
Last edited by ggstone (2011-10-19 07:36:13)
Offline
If the string is know known (not in the po files) not translation is made. The file also needs to be known in the desktop.in files in Makefile.am so it is processed by INTLTOOL_DESKTOP_RULE.
Offline
Thanks Nick!
Offline
[ Generated in 0.010 seconds, 7 queries executed - Memory usage: 533.73 KiB (Peak: 534.57 KiB) ]