wizard finish confirmation translation

This commit is contained in:
Sergey Solovyev 2013-10-06 12:57:24 +04:00
parent 1a75de0183
commit 4d80591fbf
2 changed files with 6 additions and 5 deletions

View File

@ -46,4 +46,5 @@
<string name="cpp_wizard_dragbutton_description">Drag button is an exclusive feature of Calculator++ which provides
fast access to the secondary functions
</string>
<string name="cpp_wizard_finish_confirmation">Do you really want to finish wizard?</string>
</resources>

View File

@ -27,24 +27,24 @@ import android.app.Dialog;
import android.content.DialogInterface;
import android.os.Bundle;
import android.support.v4.app.DialogFragment;
import org.solovyev.android.calculator.R;
import org.solovyev.android.sherlock.AndroidSherlockUtils;
import javax.annotation.Nonnull;
import org.solovyev.android.sherlock.AndroidSherlockUtils;
public class FinishWizardConfirmationDialog extends DialogFragment {
@Override
public Dialog onCreateDialog(Bundle savedInstanceState) {
final AlertDialog.Builder b = new AlertDialog.Builder(getActivity());
b.setMessage("Do you really want to finish wizard?");
b.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
b.setMessage(R.string.cpp_wizard_finish_confirmation);
b.setPositiveButton(R.string.c_yes, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
((CalculatorWizardActivity) getActivity()).finishFlow(true);
}
});
b.setNegativeButton("No", new DialogInterface.OnClickListener() {
b.setNegativeButton(R.string.c_no, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialogInterface, int i) {
dismiss();