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 d73f555ebb..b795762828 100644
--- a/apps/lang/english.lang
+++ b/apps/lang/english.lang
@@ -16052,3 +16052,17 @@
16052 *: "Disc number" 16052 *: "Disc number"
16053 </voice> 16053 </voice>
16054</phrase> 16054</phrase>
16055<phrase>
16056 id: LANG_PROPERTIES_FREQUENCY
16057 desc: in properties plugin
16058 user: core
16059 <source>
16060 *: "[Frequency]"
16061 </source>
16062 <dest>
16063 *: "[Frequency]"
16064 </dest>
16065 <voice>
16066 *: "Frequency"
16067 </voice>
16068</phrase>
diff --git a/apps/plugins/properties.c b/apps/plugins/properties.c
index e2c83217a4..12ea25f0c0 100644
--- a/apps/plugins/properties.c
+++ b/apps/plugins/properties.c
@@ -43,6 +43,7 @@ char str_year[MAX_PATH];
43char str_discnum[MAX_PATH]; 43char str_discnum[MAX_PATH];
44char str_tracknum[MAX_PATH]; 44char str_tracknum[MAX_PATH];
45char str_duration[32]; 45char str_duration[32];
46char str_frequency[32];
46 47
47unsigned nseconds; 48unsigned nseconds;
48unsigned long nsize; 49unsigned long nsize;
@@ -69,6 +70,7 @@ static const unsigned char* const props_file[] =
69 ID2P(LANG_PROPERTIES_DISCNUM), str_discnum, 70 ID2P(LANG_PROPERTIES_DISCNUM), str_discnum,
70 ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum, 71 ID2P(LANG_PROPERTIES_TRACKNUM), str_tracknum,
71 ID2P(LANG_PROPERTIES_DURATION), str_duration, 72 ID2P(LANG_PROPERTIES_DURATION), str_duration,
73 ID2P(LANG_PROPERTIES_FREQUENCY), str_frequency,
72}; 74};
73static const unsigned char* const props_dir[] = 75static const unsigned char* const props_dir[] =
74{ 76{
@@ -151,7 +153,9 @@ static bool file_properties(const char* selected_file)
151 "%s", id3.disc_string ? id3.disc_string : ""); 153 "%s", id3.disc_string ? id3.disc_string : "");
152 rb->snprintf(str_tracknum, sizeof str_tracknum, 154 rb->snprintf(str_tracknum, sizeof str_tracknum,
153 "%s", id3.track_string ? id3.track_string : ""); 155 "%s", id3.track_string ? id3.track_string : "");
154 num_properties += 10; 156 rb->snprintf(str_frequency, sizeof str_frequency,
157 "%ld Hz", id3.frequency ? : 0);
158 num_properties += 11;
155 159
156 if (dur > 0) 160 if (dur > 0)
157 { 161 {