There is a library for cropping images. She has a code like:

@Override public void onPicModeSelected(String mode) { String action = mode.equalsIgnoreCase(Constants.PicModes.CAMERA) ? Constants.IntentExtras.ACTION_CAMERA : Constants.IntentExtras.ACTION_GALLERY; actionProfilePic(action); } 

The user builds a dialog with a choice: Take a picture or Select from the Gallery.

This text (the one that is highlighted in the Dialogue) is written here in this class:

 public class Constants { public interface IntentExtras { String ACTION_CAMERA = "action-camera"; String ACTION_GALLERY = "action-gallery"; String IMAGE_PATH = "image-path"; } public interface PicModes { String CAMERA = "Сфотографировать"; String GALLERY = "Выбрать из Галереи"; } 

}

I am now translating the application into English, so I would like to translate these 2 Strings into English, if installed by the user.

How to do it?

  • Do you have the opportunity to change the source code of the library? - Alexander Lomovskiy
  • I dont know. As such, these are simply imported classes. Perhaps you can change something in onPicModeSelected? - user207840

0