Small refactoring

Allow translation of the name of none icon
This commit is contained in:
Sanel Zukan 2009-05-20 15:04:32 +00:00
parent cf8f661b17
commit 5eda865eb4

View File

@ -414,8 +414,7 @@ IconSettings* Desktop::read_desktop_file(const char* path) {
else
is->icon = buf;
edelib::DesktopFileType dtype = dconf.type();
if(dtype == edelib::DESK_FILE_TYPE_LINK) {
if(dconf.type() == edelib::DESK_FILE_TYPE_LINK) {
is->cmd_is_url = true;
dconf.url(buf, bufsz);
}
@ -428,7 +427,7 @@ IconSettings* Desktop::read_desktop_file(const char* path) {
if(!dconf.name(buf, bufsz)) {
E_DEBUG(E_STRLOC ": No Name key\n");
is->name = "(none)";
is->name = _("(none)");
} else
is->name = buf;