Permalink
Browse files

add error notification for user when missing home.xml

  • Loading branch information...
1 parent ad5e04d commit 40bb7a55f0e96c7ec19e740fbdb699e0e1086373 @pieh committed Jun 20, 2012
Showing with 10 additions and 1 deletion.
  1. +9 −1 language/English/strings.po
  2. +1 −0 xbmc/Application.cpp
@@ -8725,7 +8725,15 @@ msgctxt "#24101"
msgid "Would you like to download this Add-on?"
msgstr ""
-#empty strings from id 24102 to 24999
+msgctxt "#24102"
+msgid "Unable to load skin"
+msgstr ""
+
+msgctxt "#24103"
+msgid "Skin is missing some files"
+msgstr ""
+
+#empty strings from id 24104 to 24999
msgctxt "#25000"
msgid "Notifications"
View
@@ -1755,6 +1755,7 @@ void CApplication::LoadSkin(const SkinPtr& skin)
CLog::Log(LOGERROR, "home.xml doesn't exist in skin: %s, fallback to \"%s\" skin", skin->ID().c_str(), DEFAULT_SKIN);
g_guiSettings.SetString("lookandfeel.skin", DEFAULT_SKIN);
LoadSkin(DEFAULT_SKIN);
+ CGUIDialogKaiToast::QueueNotification(CGUIDialogKaiToast::Error, g_localizeStrings.Get(24102), g_localizeStrings.Get(24103));
return ;
}
}

0 comments on commit 40bb7a5

Please sign in to comment.