wizard finish confirmation translation
This commit is contained in:
parent
1a75de0183
commit
4d80591fbf
@ -46,4 +46,5 @@
|
|||||||
<string name="cpp_wizard_dragbutton_description">Drag button is an exclusive feature of Calculator++ which provides
|
<string name="cpp_wizard_dragbutton_description">Drag button is an exclusive feature of Calculator++ which provides
|
||||||
fast access to the secondary functions
|
fast access to the secondary functions
|
||||||
</string>
|
</string>
|
||||||
|
<string name="cpp_wizard_finish_confirmation">Do you really want to finish wizard?</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
@ -27,24 +27,24 @@ import android.app.Dialog;
|
|||||||
import android.content.DialogInterface;
|
import android.content.DialogInterface;
|
||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
import android.support.v4.app.DialogFragment;
|
import android.support.v4.app.DialogFragment;
|
||||||
|
import org.solovyev.android.calculator.R;
|
||||||
|
import org.solovyev.android.sherlock.AndroidSherlockUtils;
|
||||||
|
|
||||||
import javax.annotation.Nonnull;
|
import javax.annotation.Nonnull;
|
||||||
|
|
||||||
import org.solovyev.android.sherlock.AndroidSherlockUtils;
|
|
||||||
|
|
||||||
public class FinishWizardConfirmationDialog extends DialogFragment {
|
public class FinishWizardConfirmationDialog extends DialogFragment {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
public Dialog onCreateDialog(Bundle savedInstanceState) {
|
||||||
final AlertDialog.Builder b = new AlertDialog.Builder(getActivity());
|
final AlertDialog.Builder b = new AlertDialog.Builder(getActivity());
|
||||||
b.setMessage("Do you really want to finish wizard?");
|
b.setMessage(R.string.cpp_wizard_finish_confirmation);
|
||||||
b.setPositiveButton("Yes", new DialogInterface.OnClickListener() {
|
b.setPositiveButton(R.string.c_yes, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialogInterface, int i) {
|
public void onClick(DialogInterface dialogInterface, int i) {
|
||||||
((CalculatorWizardActivity) getActivity()).finishFlow(true);
|
((CalculatorWizardActivity) getActivity()).finishFlow(true);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
b.setNegativeButton("No", new DialogInterface.OnClickListener() {
|
b.setNegativeButton(R.string.c_no, new DialogInterface.OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(DialogInterface dialogInterface, int i) {
|
public void onClick(DialogInterface dialogInterface, int i) {
|
||||||
dismiss();
|
dismiss();
|
||||||
|
Loading…
Reference in New Issue
Block a user