Move "reset to default" label to XML

This commit is contained in:
amevarashi 2022-04-24 20:23:05 +05:00
parent 99fc386e1a
commit 454f50c97c
3 changed files with 5 additions and 2 deletions

View File

@ -104,7 +104,8 @@
<EstimatedCumLifespan>Estimated sperm lifespan</EstimatedCumLifespan>
<EstimatedEggLifespan>Estimated egg lifespan</EstimatedEggLifespan>
<FertilityDesc>Chance of fertilization within an hour: {0}%&#10;The chance of pregnancy of fertilized egg.&#10;The white overlay is indicates fertilization chance of sperms in womb.</FertilityDesc>
<Button_ResetToDefault>Reset to default</Button_ResetToDefault>
<FloatMenu_CleanSelf>Vaginal washing</FloatMenu_CleanSelf>
<CustomHybrid_List_Title>Custom Hybrid Editor</CustomHybrid_List_Title>

View File

@ -448,7 +448,7 @@ namespace RJW_Menstruation
Widgets.EndScrollView();
listmain.CheckboxLabeled(Translations.Option8_Label, ref Configurations.Debug, Translations.Option8_Desc);
if (listmain.ButtonText("reset to default"))
if (listmain.ButtonText(Translations.Button_ResetToDefault))
{
Configurations.SettoDefault();

View File

@ -108,6 +108,8 @@ namespace RJW_Menstruation
public static readonly string Option32_Label = "Option32_Label".Translate();
public static readonly string Option32_Desc = "Option32_Desc".Translate();
public static readonly string Button_ResetToDefault = "Button_ResetToDefault".Translate();
public static readonly string EstimatedCumLifespan = "EstimatedCumLifespan".Translate();
public static readonly string EstimatedEggLifespan = "EstimatedEggLifespan".Translate();
public static string FertilityDesc(string value) => "FertilityDesc".Translate(value);