1
0
Fork 0
mirror of https://github.com/geometer/FBReaderJ.git synced 2025-10-04 02:09:35 +02:00

take button texts from the standard location

This commit is contained in:
Nikolay Pultsin 2014-04-15 04:11:44 +01:00
parent b074fde582
commit d62229d619
2 changed files with 3 additions and 4 deletions

View file

@ -47,10 +47,11 @@ abstract class FileChooserPreference extends Preference {
@Override
protected void onClick() {
final ZLResource resource = ZLResource.resource("dialog").getResource("fileChooser");
final ZLResource buttonResource = ZLResource.resource("dialog").getResource("button");
final HashMap<String,String> textResources = new HashMap<String,String>();
textResources.put("root", resource.getResource("root").getValue());
textResources.put("ok", resource.getResource("ok").getValue());
textResources.put("cancel", resource.getResource("cancel").getValue());
textResources.put("ok", buttonResource.getResource("ok").getValue());
textResources.put("cancel", buttonResource.getResource("cancel").getValue());
textResources.put("newFolder", resource.getResource("newFolder").getValue());
textResources.put("folderName", resource.getResource("folderName").getValue());
textResources.put("chooseFolder", resource.getResource("chooseFolder").getValue());