forked from len0rd/rockbox
Add "file size" to the track information screen of WPS.
Reuse "LANG_FILE_SIZE" from recording settings, with now a unified "LANG_FILESIZE" string. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28886 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
aac5916954
commit
5e1e05f616
3 changed files with 24 additions and 5 deletions
|
|
@ -5960,19 +5960,19 @@
|
||||||
</phrase>
|
</phrase>
|
||||||
<phrase>
|
<phrase>
|
||||||
id: LANG_REC_SIZE
|
id: LANG_REC_SIZE
|
||||||
desc: in record timesplit options
|
desc: deprecated
|
||||||
user: core
|
user: core
|
||||||
<source>
|
<source>
|
||||||
*: none
|
*: none
|
||||||
recording: "Filesize"
|
recording: ""
|
||||||
</source>
|
</source>
|
||||||
<dest>
|
<dest>
|
||||||
*: none
|
*: none
|
||||||
recording: "Filesize"
|
recording: ""
|
||||||
</dest>
|
</dest>
|
||||||
<voice>
|
<voice>
|
||||||
*: none
|
*: none
|
||||||
recording: "Filesize"
|
recording: ""
|
||||||
</voice>
|
</voice>
|
||||||
</phrase>
|
</phrase>
|
||||||
<phrase>
|
<phrase>
|
||||||
|
|
@ -12674,3 +12674,17 @@
|
||||||
radio: "Signal strength:"
|
radio: "Signal strength:"
|
||||||
</voice>
|
</voice>
|
||||||
</phrase>
|
</phrase>
|
||||||
|
<phrase>
|
||||||
|
id: LANG_FILESIZE
|
||||||
|
desc: in record timesplit options and in track information viewer
|
||||||
|
user: core
|
||||||
|
<source>
|
||||||
|
*: "Filesize"
|
||||||
|
</source>
|
||||||
|
<dest>
|
||||||
|
*: "Filesize"
|
||||||
|
</dest>
|
||||||
|
<voice>
|
||||||
|
*: "Filesize"
|
||||||
|
</voice>
|
||||||
|
</phrase>
|
||||||
|
|
|
||||||
|
|
@ -629,6 +629,7 @@ static const int id3_headers[]=
|
||||||
LANG_ID3_TRACK_GAIN,
|
LANG_ID3_TRACK_GAIN,
|
||||||
LANG_ID3_ALBUM_GAIN,
|
LANG_ID3_ALBUM_GAIN,
|
||||||
#endif
|
#endif
|
||||||
|
LANG_FILESIZE,
|
||||||
LANG_ID3_PATH,
|
LANG_ID3_PATH,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -739,6 +740,10 @@ static const char* id3_get_info(int selected_item, void* data,
|
||||||
case LANG_ID3_COMPOSER:
|
case LANG_ID3_COMPOSER:
|
||||||
val=id3->composer;
|
val=id3->composer;
|
||||||
break;
|
break;
|
||||||
|
case LANG_FILESIZE: /* not LANG_ID3_FILESIZE because the string is shared */
|
||||||
|
output_dyn_value(buffer, buffer_len, id3->filesize, byte_units, true);
|
||||||
|
val=buffer;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return val && *val ? val : NULL;
|
return val && *val ? val : NULL;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1139,7 +1139,7 @@ const struct settings_list settings[] = {
|
||||||
ID2P(LANG_START_NEW_FILE), ID2P(LANG_STOP_RECORDING),ID2P(LANG_STOP_RECORDING_AND_SHUTDOWN)),
|
ID2P(LANG_START_NEW_FILE), ID2P(LANG_STOP_RECORDING),ID2P(LANG_STOP_RECORDING_AND_SHUTDOWN)),
|
||||||
CHOICE_SETTING(F_RECSETTING, rec_split_method, LANG_SPLIT_MEASURE, 0,
|
CHOICE_SETTING(F_RECSETTING, rec_split_method, LANG_SPLIT_MEASURE, 0,
|
||||||
"rec split method", "Time,Filesize", NULL, 2,
|
"rec split method", "Time,Filesize", NULL, 2,
|
||||||
ID2P(LANG_TIME), ID2P(LANG_REC_SIZE)),
|
ID2P(LANG_TIME), ID2P(LANG_FILESIZE)),
|
||||||
{F_T_INT|F_RECSETTING, &global_settings.rec_source, LANG_RECORDING_SOURCE,
|
{F_T_INT|F_RECSETTING, &global_settings.rec_source, LANG_RECORDING_SOURCE,
|
||||||
INT(0), "rec source",
|
INT(0), "rec source",
|
||||||
&HAVE_MIC_REC_(",mic")
|
&HAVE_MIC_REC_(",mic")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue