Skip to content

Commit

Permalink
Translated some error strings from Portuguese to English
Browse files Browse the repository at this point in the history
  • Loading branch information
johnhowe committed Mar 6, 2018
1 parent 48c3843 commit 6078545
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
});
}
Expand All @@ -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");
}
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public static BluetoothDeviceDecoratorNull getInstance() {

@Override
public String getName() {
return "Nenhum dispositivo encontrado.";
return "No device found";
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6078545

Please sign in to comment.