Index: apps/lang/english.lang
===================================================================
--- apps/lang/english.lang (revision 15216)
+++ apps/lang/english.lang (working copy)
@@ -11417,3 +11417,74 @@
*: "Blank"
+
+ id: LANG_BOOKMARK_SYSTEM_FAILURE
+ desc: Indicates bookmark was not created
+ user:
+
+ *: "Bookmark System Failed!"
+
+
+ *: "Bookmark System Failed!"
+
+
+ *: "Bookmark System Failed!"
+
+
+
+ id: LANG_BOOKMARK_REAL_CREATE_FAILURE
+ desc: Indicates bookmark was not created
+ user:
+
+ *: "Bookmark Real Create Failed!"
+
+
+ *: "Bookmark Real Create Failed!"
+
+
+ *: "Bookmark Real Create Failed!"
+
+
+
+ id: LANG_BOOKMARK_NO_TRACK
+ desc: Indicates bookmark was not created
+ user:
+
+ *: "No Track Playing!"
+
+
+ *: "No Track Playing!"
+
+
+ *: "No Track Playing!"
+
+
+
+ id: LANG_BOOKMARK_BAD_INFO
+ desc: Indicates bookmark was not created
+ user:
+
+ *: "Bad Info Playing!"
+
+
+ *: "Bad Info Playing!"
+
+
+ *: "Bad Info Playing!"
+
+
+
+ id: LANG_BOOKMARK_PLAYLIST_MODIFIED
+ desc: Indicates bookmark was not created
+ user:
+
+ *: "Playlist Modified!"
+
+
+ *: "Playlist Modified!"
+
+
+ *: "Playlist Modified!"
+
+
+
Index: apps/bookmark.c
===================================================================
--- apps/bookmark.c (revision 15216)
+++ apps/bookmark.c (working copy)
@@ -222,17 +222,21 @@
bool success=false;
char* bookmark;
- if (!system_check())
+ if (!system_check()) {
+ gui_syncsplash(HZ, ID2P(LANG_BOOKMARK_SYSTEM_FAILURE));
return false; /* something didn't happen correctly, do nothing */
+ }
bookmark = create_bookmark();
- if (!bookmark)
- return false; /* something didn't happen correctly, do nothing */
+ if (!bookmark) {
+ gui_syncsplash(HZ, ID2P(LANG_BOOKMARK_REAL_CREATE_FAILURE));
+ return false; /* something didn't happen correctly, do nothing */
+ }
- if (global_settings.usemrb)
+ if (global_settings.usemrb) {
success = add_bookmark(RECENT_BOOKMARK_FILE, bookmark, true);
+ }
-
/* writing the bookmark */
if (create_bookmark_file)
{
@@ -1017,6 +1021,7 @@
if (!(audio_status() && audio_current_track()))
{
+ gui_syncsplash(HZ, ID2P(LANG_BOOKMARK_NO_TRACK));
/* no track playing */
return false;
}
@@ -1024,11 +1029,15 @@
/* Checking to see if playing a queued track */
if (playlist_get_resume_info(&resume_index) == -1)
{
+ gui_syncsplash(HZ, ID2P(LANG_BOOKMARK_BAD_INFO));
+
/* something bad happened while getting the queue information */
return false;
}
else if (playlist_modified(NULL))
{
+ gui_syncsplash(HZ, ID2P(LANG_BOOKMARK_PLAYLIST_MODIFIED));
+
/* can't bookmark while in the queue */
return false;
}