mirror of
https://github.com/iSoron/uhabits.git
synced 2025-12-06 09:08:52 -06:00
Internationalize string
This commit is contained in:
@@ -7,6 +7,7 @@ import android.content.DialogInterface;
|
|||||||
import android.os.Bundle;
|
import android.os.Bundle;
|
||||||
|
|
||||||
import org.isoron.helpers.DateHelper;
|
import org.isoron.helpers.DateHelper;
|
||||||
|
import org.isoron.uhabits.R;
|
||||||
|
|
||||||
public class WeekdayPickerDialog extends DialogFragment
|
public class WeekdayPickerDialog extends DialogFragment
|
||||||
implements DialogInterface.OnMultiChoiceClickListener, DialogInterface.OnClickListener
|
implements DialogInterface.OnMultiChoiceClickListener, DialogInterface.OnClickListener
|
||||||
@@ -34,7 +35,7 @@ public class WeekdayPickerDialog extends DialogFragment
|
|||||||
public Dialog onCreateDialog(Bundle savedInstanceState)
|
public Dialog onCreateDialog(Bundle savedInstanceState)
|
||||||
{
|
{
|
||||||
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());
|
||||||
builder.setTitle("Select weekdays")
|
builder.setTitle(R.string.select_weekdays)
|
||||||
.setMultiChoiceItems(DateHelper.getLongDayNames(), selectedDays, this)
|
.setMultiChoiceItems(DateHelper.getLongDayNames(), selectedDays, this)
|
||||||
.setPositiveButton(android.R.string.yes, this)
|
.setPositiveButton(android.R.string.yes, this)
|
||||||
.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener()
|
.setNegativeButton(android.R.string.cancel, new DialogInterface.OnClickListener()
|
||||||
|
|||||||
Reference in New Issue
Block a user