From 60785452830f24edd543369ab943c626a474ed32 Mon Sep 17 00:00:00 2001 From: John Howe Date: Wed, 7 Mar 2018 12:26:34 +1300 Subject: [PATCH] Translated some error strings from Portuguese to English --- .../bluetoothclassiclibrary/BluetoothClassicService.java | 4 ++-- .../bluetoothclassiclibrary/BluetoothDeviceDecoratorNull.java | 2 +- .../bluetoothlowenergylibrary/BluetoothLeService.java | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothClassicService.java b/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothClassicService.java index 5558338..d75d244 100755 --- a/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothClassicService.java +++ b/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothClassicService.java @@ -184,7 +184,7 @@ private void connectionFailed() { runOnMainThread(new Runnable() { @Override public void run() { - onEventCallback.onToast("Não foi possível conectar ao dispositivo."); + onEventCallback.onToast("Could not connect to device"); } }); } @@ -201,7 +201,7 @@ private void connectionLost() { runOnMainThread(new Runnable() { @Override public void run() { - onEventCallback.onToast("Conexão perdida com o dispositivo."); + onEventCallback.onToast("Connection lost"); } }); } diff --git a/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothDeviceDecoratorNull.java b/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothDeviceDecoratorNull.java index 3ae5a09..813c4f3 100755 --- a/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothDeviceDecoratorNull.java +++ b/BluetoothClassicLibrary/src/main/java/com/github/douglasjunior/bluetoothclassiclibrary/BluetoothDeviceDecoratorNull.java @@ -41,7 +41,7 @@ public static BluetoothDeviceDecoratorNull getInstance() { @Override public String getName() { - return "Nenhum dispositivo encontrado."; + return "No device found"; } @Override diff --git a/BluetoothLowEnergyLibrary/src/main/java/com/github/douglasjunior/bluetoothlowenergylibrary/BluetoothLeService.java b/BluetoothLowEnergyLibrary/src/main/java/com/github/douglasjunior/bluetoothlowenergylibrary/BluetoothLeService.java index e73c65b..9b50752 100644 --- a/BluetoothLowEnergyLibrary/src/main/java/com/github/douglasjunior/bluetoothlowenergylibrary/BluetoothLeService.java +++ b/BluetoothLowEnergyLibrary/src/main/java/com/github/douglasjunior/bluetoothlowenergylibrary/BluetoothLeService.java @@ -142,9 +142,9 @@ public void onConnectionStateChange(final BluetoothGatt gatt, int status, final if (status != BluetoothGatt.GATT_SUCCESS || newState == BluetoothProfile.STATE_DISCONNECTED) { gatt.close(); if (mStatus == BluetoothStatus.NONE || mStatus == BluetoothStatus.CONNECTING) - makeToast("Não foi possível conectar ao dispositivo"); + makeToast("Unable to connect to device"); else if (mStatus == BluetoothStatus.CONNECTED) - makeToast("Conexão perdida com o dispositivo"); + makeToast("Connection lost"); updateState(BluetoothStatus.NONE); } else { if (newState == BluetoothProfile.STATE_CONNECTED) {