Add a string for the no file chosen label, shown on a file upload control when the user has not yet picked a file.
Requires external/webkit change. Change-Id: Idb1039a7c39b18249579794df523afb6144fba47
This commit is contained in:
@@ -846,6 +846,7 @@ class BrowserFrame extends Handler {
|
||||
private static final int FILE_UPLOAD_LABEL = 4;
|
||||
private static final int RESET_LABEL = 5;
|
||||
private static final int SUBMIT_LABEL = 6;
|
||||
private static final int FILE_UPLOAD_NO_FILE_CHOSEN = 7;
|
||||
|
||||
String getRawResFilename(int id) {
|
||||
int resid;
|
||||
@@ -875,6 +876,10 @@ class BrowserFrame extends Handler {
|
||||
return mContext.getResources().getString(
|
||||
com.android.internal.R.string.submit);
|
||||
|
||||
case FILE_UPLOAD_NO_FILE_CHOSEN:
|
||||
return mContext.getResources().getString(
|
||||
com.android.internal.R.string.no_file_chosen);
|
||||
|
||||
default:
|
||||
Log.e(LOGTAG, "getRawResFilename got incompatible resource ID");
|
||||
return "";
|
||||
|
||||
@@ -2267,6 +2267,8 @@
|
||||
<!-- Localized strings for WebView -->
|
||||
<!-- Label for button in a WebView that will open a chooser to choose a file to upload -->
|
||||
<string name="upload_file">Choose file</string>
|
||||
<!-- Label for the file upload control when no file has been chosen yet -->
|
||||
<string name="no_file_chosen">No file chosen</string>
|
||||
<!-- Label for <input type="reset"> button in html -->
|
||||
<string name="reset">Reset</string>
|
||||
<!-- Label for <input type="submit"> button in html -->
|
||||
|
||||
Reference in New Issue
Block a user