summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/lang/english.lang14
-rw-r--r--apps/plugins/properties.c6
2 files changed, 19 insertions, 1 deletions
diff --git a/apps/lang/english.lang b/apps/lang/english.lang
index 66ca47b176..2083faf890 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -16024,3 +16024,17 @@
16024 *: "Year" 16024 *: "Year"
16025 </voice> 16025 </voice>
16026</phrase> 16026</phrase>
16027<phrase>
16028 id: LANG_PROPERTIES_TRACKNUM
16029 desc: in properties plugin
16030 user: core
16031 <source>
16032 *: "[Tracknum]"
16033 </source>
16034 <dest>
16035 *: "[Tracknum]"
16036 </dest>
16037 <voice>
16038 *: "Track number"
16039 </voice>
16040</phrase>
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index 620c08a332..b3955a286a 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -40,6 +40,7 @@ char str_album[MAX_PATH];
40char str_genre[MAX_PATH]; 40char str_genre[MAX_PATH];
41char str_comment[MAX_PATH]; 41char str_comment[MAX_PATH];
42char str_year[MAX_PATH]; 42char str_year[MAX_PATH];
43char str_tracknum[MAX_PATH];
43char str_duration[32]; 44char str_duration[32];
44 45
45unsigned nseconds; 46unsigned nseconds;
@@ -64,6 +65,7 @@ static const unsigned char* const props_file[] =
64 ID2P(LANG_PROPERTIES_GENRE), str_genre, 65 ID2P(LANG_PROPERTIES_GENRE), str_genre,
65 ID2P(LANG_PROPERTIES_COMMENT), str_comment, 66 ID2P(LANG_PROPERTIES_COMMENT), str_comment,
66 ID2P(LANG_PROPERTIES_YEAR), str_year, 67 ID2P(LANG_PROPERTIES_YEAR), str_year,
68 ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum,
67 ID2P(LANG_PROPERTIES_DURATION), str_duration, 69 ID2P(LANG_PROPERTIES_DURATION), str_duration,
68}; 70};
69static const unsigned char* const props_dir[] = 71static const unsigned char* const props_dir[] =
@@ -143,7 +145,9 @@ static bool file_properties(const char* selected_file)
143 "%s", id3.comment ? id3.comment : ""); 145 "%s", id3.comment ? id3.comment : "");
144 rb->snprintf(str_year, sizeof str_year, 146 rb->snprintf(str_year, sizeof str_year,
145 "%s", id3.year_string ? id3.year_string : ""); 147 "%s", id3.year_string ? id3.year_string : "");
146 num_properties += 8; 148 rb->snprintf(str_tracknum, sizeof str_tracknum,
149 "%s", id3.track_string ? id3.track_string : "");
150 num_properties += 9;
147 151
148 if (dur > 0) 152 if (dur > 0)
149 { 153 {