Skip to content

Commit

Permalink
some text translate Bitcoin Wallet #6421
Browse files Browse the repository at this point in the history
  • Loading branch information
gianelo committed Aug 16, 2016
1 parent fc6b04a commit edf1a0f
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public void onClick(View v) {
errorConnectingFermatNetworkDialog.dismiss();
try {
if (getFermatNetworkStatus() == NetworkStatus.DISCONNECTED) {
Toast.makeText(getActivity(), "Wait a minute please, trying to reconnect...", Toast.LENGTH_SHORT).show();
Toast.makeText(getActivity(), getResources().getString(R.string.error_connecting_to_fermat_network), Toast.LENGTH_SHORT).show();
getActivity().onBackPressed();
}
} catch (CantGetCommunicationNetworkStatusException e) {
Expand Down Expand Up @@ -692,10 +692,10 @@ private void sendRequest() {
else
onBack(Activities.CWP_WALLET_RUNTIME_WALLET_BASIC_WALLET_BITDUBAI_VERSION_1_PAYMENT_REQUEST.getCode());
}else {
Toast.makeText(getActivity(), "Invalid Amount, must be greater than " + bitcoinConverter.getSathoshisFromMBTC(String.valueOf(BitcoinNetworkConfiguration.MIN_ALLOWED_SATOSHIS_ON_SEND)) + " BTC.", Toast.LENGTH_LONG).show();
Toast.makeText(getActivity(),getResources().getString(R.string.error_msg_invalid_amount) + bitcoinConverter.getSathoshisFromMBTC(String.valueOf(BitcoinNetworkConfiguration.MIN_ALLOWED_SATOSHIS_ON_SEND)) + " BTC.", Toast.LENGTH_LONG).show();
}
} else {
showMessage(getActivity(), "Invalid Request Amount");
showMessage(getActivity(), getResources().getString(R.string.error_msg_invalid_amount));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ public void onActivityCreated(Bundle savedInstanceState) {
super.onActivityCreated(savedInstanceState);
lstPaymentRequest = new ArrayList<PaymentRequest>();
} catch (Exception e){
makeText(getActivity(), "Oooops! recovering from system error", Toast.LENGTH_SHORT).show();
makeText(getActivity(), getResources().getString(R.string.system_error), Toast.LENGTH_SHORT).show();
appSession.getErrorManager().reportUnexpectedUIException(UISource.VIEW, UnexpectedUIExceptionSeverity.CRASH, e);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public void run() {
});
thread.start();

Toast.makeText(getActivity(), "Report Sent", Toast.LENGTH_SHORT).show();
Toast.makeText(getActivity(),getResources().getString(R.string.msg_report_send), Toast.LENGTH_SHORT).show();
messageEdit.getText().clear();
} catch (Exception e) {
errorManager.reportUnexpectedUIException(UISource.ACTIVITY, UnexpectedUIExceptionSeverity.CRASH, e);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@
<string name="error_msg_mnemonic_text">Error al obtener el texto mnemonico</string>
<string name="error_msg_no_address">No se tiene una direccion para inviar\nPor favor, espere un rato</string>
<string name="error_msg_trying_to_reconnect">Por favor espere un momento, intentando reconectar...</string>
<string name="msg_report_send">Reporte enviado</string>
<string name="error_std_message">Ha habido un error. Por favor intente de nuevo</string>
<string name="request_sent">Solicitud enviada</string>
<string name="success_msg_address_copied_clipboard">Direccion copiada al portapapeles</string>
Expand Down Expand Up @@ -198,4 +199,17 @@
<string name="title_section7">Vouchers</string>
<string name="title_section8">Tarjetas de regalo</string>
<string name="title_section9">Clones</string>




<!--Generic messages -->
<!-- Amounts Messages-->
<string name="invalid_amount_limit">Monto invalido, debe ser mayor que </string>
<!--System Error-->
<string name="system_error">Oooops! Error del sistema</string>
<!--Fragments-->
<!--Request Form Fragment-->
<string name="error_connecting_to_fermat_network">Espere un momento por favor, restableciendo conexion...</string>
<string name="invalid_request_amount">Monto para solicitud de pago invalida</string>
</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -306,5 +306,16 @@
<!--&lt;!&ndash; dialog_blockchain_download.xml&ndash;&gt;-->
<!--<string name="advertisement_text">Advertisement!</string>-->
<!--<string name="the_process_of_downloading_text">The process of downloading blocks \nfrom the Blockchain is in progress.\n As this occurs, the action bar is shown in red.</string>-->


<!--Generic messages -->
<string name="msg_report_send">Report sent</string>
<!--System Error-->
<string name="system_error">Oooops! recovering from system error</string>
<!--Fragments-->
<!--Request Form Fragment-->
<string name="error_connecting_to_fermat_network">Wait a minute please, trying to reconnect...</string>


</resources>

0 comments on commit edf1a0f

Please sign in to comment.