1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-12-23 19:31:30 +00:00

Externalize string

This commit is contained in:
Felix Ableitner 2018-02-08 23:41:18 +09:00
parent e2659f8480
commit 8a0b010773
2 changed files with 2 additions and 1 deletions

View file

@ -359,7 +359,7 @@ public class MainActivity extends StateDialogActivity
Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND); Intent shareIntent = new Intent(android.content.Intent.ACTION_SEND);
shareIntent.setType("text/plain"); shareIntent.setType("text/plain");
shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, deviceId); shareIntent.putExtra(android.content.Intent.EXTRA_TEXT, deviceId);
startActivity(Intent.createChooser(shareIntent, "Share device ID with")); startActivity(Intent.createChooser(shareIntent, getString(R.string.share_device_id_chooser)));
} }
@Override @Override

View file

@ -626,5 +626,6 @@ Please report any problems you encounter via Github.</string>
<string name="could_not_access_deviceid">Could not access device ID.</string> <string name="could_not_access_deviceid">Could not access device ID.</string>
<string name="browse">Browse</string> <string name="browse">Browse</string>
<string name="no_sub_folder_is_selected">No sub folder is selected</string> <string name="no_sub_folder_is_selected">No sub folder is selected</string>
<string name="share_device_id_chooser">Share device ID with</string>
</resources> </resources>