Externalize strings

This commit is contained in:
Moxie Marlinspike 2017-12-08 14:36:56 -08:00
parent 261d187567
commit 37092eee01
2 changed files with 4 additions and 3 deletions

View File

@ -1312,8 +1312,9 @@
<string name="ConversationListFragment_loading">Loading...</string>
<string name="CallNotificationBuilder_connecting">Connecting...</string>
<string name="Permissions_permission_required">Permission required</string>
<string name="Permissions_continue">Continue</string>
<string name="ConversationActivity_signal_needs_sms_permission_in_order_to_send_an_sms">Signal needs SMS permission in order to send an SMS, but it has been permanently denied. Please continue to app settings, select \"Permissions\" and enable \"SMS\".</string>
<string name="Permissions_continue">Continue</string>
<string name="Permissions_not_now">Not now</string>
<!-- EOF -->

View File

@ -155,8 +155,8 @@ public class Permissions {
@SuppressWarnings("ConstantConditions")
private void executePermissionsRequestWithRationale(PermissionsRequest request) {
RationaleDialog.createFor(permissionObject.getContext(), rationaleDialogMessage, rationalDialogHeader)
.setPositiveButton("Continue", (dialog, which) -> executePermissionsRequest(request))
.setNegativeButton("Not now", null)
.setPositiveButton(R.string.Permissions_continue, (dialog, which) -> executePermissionsRequest(request))
.setNegativeButton(R.string.Permissions_not_now, null)
.show()
.getWindow()
.setLayout((int)(permissionObject.getWindowWidth() * .75), ViewGroup.LayoutParams.WRAP_CONTENT);