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:
Mustapha Senhaji 2010-12-24 03:31:40 +00:00
parent aac5916954
commit 5e1e05f616
3 changed files with 24 additions and 5 deletions

View file

@ -5960,19 +5960,19 @@
</phrase>
<phrase>
id: LANG_REC_SIZE
desc: in record timesplit options
desc: deprecated
user: core
<source>
*: none
recording: "Filesize"
recording: ""
</source>
<dest>
*: none
recording: "Filesize"
recording: ""
</dest>
<voice>
*: none
recording: "Filesize"
recording: ""
</voice>
</phrase>
<phrase>
@ -12674,3 +12674,17 @@
radio: "Signal strength:"
</voice>
</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>

View file

@ -629,6 +629,7 @@ static const int id3_headers[]=
LANG_ID3_TRACK_GAIN,
LANG_ID3_ALBUM_GAIN,
#endif
LANG_FILESIZE,
LANG_ID3_PATH,
};
@ -739,6 +740,10 @@ static const char* id3_get_info(int selected_item, void* data,
case LANG_ID3_COMPOSER:
val=id3->composer;
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;
}

View file

@ -1139,7 +1139,7 @@ const struct settings_list settings[] = {
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,
"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,
INT(0), "rec source",
&HAVE_MIC_REC_(",mic")