diff options
-rw-r--r-- | apps/lang/english.lang | 14 | ||||
-rw-r--r-- | apps/plugins/properties.c | 6 |
2 files changed, 19 insertions, 1 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang index 2aa6480aa4..fce95165f0 100644 --- a/apps/lang/english.lang +++ b/apps/lang/english.lang | |||
@@ -15968,3 +15968,17 @@ | |||
15968 | *: "Album Artist" | 15968 | *: "Album Artist" |
15969 | </voice> | 15969 | </voice> |
15970 | </phrase> | 15970 | </phrase> |
15971 | <phrase> | ||
15972 | id: LANG_PROPERTIES_GENRE | ||
15973 | desc: in properties plugin | ||
15974 | user: core | ||
15975 | <source> | ||
15976 | *: "[Genre]" | ||
15977 | </source> | ||
15978 | <dest> | ||
15979 | *: "[Genre]" | ||
15980 | </dest> | ||
15981 | <voice> | ||
15982 | *: "Genre" | ||
15983 | </voice> | ||
15984 | </phrase> | ||
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c index 5e2ab5101c..f94b3934c3 100644 --- a/apps/plugins/properties.c +++ b/apps/plugins/properties.c | |||
@@ -36,6 +36,7 @@ char str_title[MAX_PATH]; | |||
36 | char str_artist[MAX_PATH]; | 36 | char str_artist[MAX_PATH]; |
37 | char str_albumartist[MAX_PATH]; | 37 | char str_albumartist[MAX_PATH]; |
38 | char str_album[MAX_PATH]; | 38 | char str_album[MAX_PATH]; |
39 | char str_genre[MAX_PATH]; | ||
39 | char str_duration[32]; | 40 | char str_duration[32]; |
40 | 41 | ||
41 | unsigned nseconds; | 42 | unsigned nseconds; |
@@ -56,6 +57,7 @@ static const unsigned char* const props_file[] = | |||
56 | ID2P(LANG_PROPERTIES_ALBUMARTIST), str_albumartist, | 57 | ID2P(LANG_PROPERTIES_ALBUMARTIST), str_albumartist, |
57 | ID2P(LANG_PROPERTIES_TITLE), str_title, | 58 | ID2P(LANG_PROPERTIES_TITLE), str_title, |
58 | ID2P(LANG_PROPERTIES_ALBUM), str_album, | 59 | ID2P(LANG_PROPERTIES_ALBUM), str_album, |
60 | ID2P(LANG_PROPERTIES_GENRE), str_genre, | ||
59 | ID2P(LANG_PROPERTIES_DURATION), str_duration, | 61 | ID2P(LANG_PROPERTIES_DURATION), str_duration, |
60 | }; | 62 | }; |
61 | static const unsigned char* const props_dir[] = | 63 | static const unsigned char* const props_dir[] = |
@@ -127,7 +129,9 @@ static bool file_properties(const char* selected_file) | |||
127 | "%s", id3.title ? id3.title : ""); | 129 | "%s", id3.title ? id3.title : ""); |
128 | rb->snprintf(str_album, sizeof str_album, | 130 | rb->snprintf(str_album, sizeof str_album, |
129 | "%s", id3.album ? id3.album : ""); | 131 | "%s", id3.album ? id3.album : ""); |
130 | num_properties += 4; | 132 | rb->snprintf(str_genre, sizeof str_genre, |
133 | "%s", id3.genre_string ? id3.genre_string : ""); | ||
134 | num_properties += 5; | ||
131 | 135 | ||
132 | if (dur > 0) | 136 | if (dur > 0) |
133 | { | 137 | { |