Changed a few words to pull from SDV translation files instead of having users provide the translations.
This commit is contained in:
parent
059b2d57be
commit
e7e1ff2de5
|
@ -140,12 +140,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "Dear @,^ Happy birthday kiddo. It's been a little quiet around here on your birthday since you aren't around, but your mother and I know that you are making both your grandpa and us proud. We both know that living on your own can be tough but we believe in you one hundred percent, just keep following your dreams.^ Love, Dad ^ P.S. Here's some spending money to help you out on the farm. Good luck! %item money 5000 5001 %%",
|
||||
["Happy Birthday: Star Message"] = "It's your birthday today! Happy birthday!",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "It's @'s birthday! Happy birthday to them!",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] ="Season",
|
||||
["Birthday"]="Birthday",
|
||||
["Date"]="Date"
|
||||
|
||||
},
|
||||
|
@ -155,12 +150,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "",
|
||||
["Happy Birthday: Star Message"] = "",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.ru] = new Dictionary<string, string>()
|
||||
|
@ -169,12 +159,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "ƒорогой @,^ — днем рождени¤, мой ребенок. «десь немного тихо в твой день рождени¤ с тех пор, как ты уехал на ферму, но тво¤ мать и ¤ знаем, что ты со своим дедушкой делаешь нас гордыми. ћы оба знаем, что жить на ферме может быть трудно, но мы верим в теб¤ на все 100%, просто продолжай следовать своим мечтам.^ — любовью папа ^ P.S. “ут есть немного денег, которые помогут тебе на ферме. ”дачи! %item money 5000 5001%%",
|
||||
["Happy Birthday: Star Message"] = "Ёто твой день рождени¤! — днем рождени¤!",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "Ёто твой день рождени¤! ѕоздравл¤ю с этим!",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.zh] = new Dictionary<string, string>()
|
||||
|
@ -183,12 +168,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "亲爱的@,^ 生日快乐孩子。你生日的这天没有你,我们这儿还挺寂寞的,但我和你妈妈都知道你让我们和你爷爷感到骄傲。我们知道你一个人生活可能会很艰难,但我们百分百相信你能做到,所以继续追求你的梦想吧。^ 爱你的,爸爸 ^ 附言:这是能在农场上帮到你的一些零用钱。祝你好运! %item money 5000 5001 %%",
|
||||
["Happy Birthday: Star Message"] = "今天是你的生日!生日快乐!",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.pt] = new Dictionary<string, string>()
|
||||
|
@ -197,12 +177,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "",
|
||||
["Happy Birthday: Star Message"] = "",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.es] = new Dictionary<string, string>()
|
||||
|
@ -211,12 +186,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "",
|
||||
["Happy Birthday: Star Message"] = "",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.de] = new Dictionary<string, string>()
|
||||
|
@ -225,12 +195,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "",
|
||||
["Happy Birthday: Star Message"] = "",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.th] = new Dictionary<string, string>()
|
||||
|
@ -239,12 +204,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "",
|
||||
["Happy Birthday: Star Message"] = "",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.fr] = new Dictionary<string, string>()
|
||||
|
@ -253,12 +213,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "",
|
||||
["Happy Birthday: Star Message"] = "",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.ko] = new Dictionary<string, string>()
|
||||
|
@ -267,12 +222,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "",
|
||||
["Happy Birthday: Star Message"] = "",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.it] = new Dictionary<string, string>()
|
||||
|
@ -281,12 +231,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "",
|
||||
["Happy Birthday: Star Message"] = "",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.tr] = new Dictionary<string, string>()
|
||||
|
@ -295,12 +240,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "",
|
||||
["Happy Birthday: Star Message"] = "",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
[StardewValley.LocalizedContentManager.LanguageCode.hu] = new Dictionary<string, string>()
|
||||
|
@ -309,12 +249,7 @@ namespace Omegasis.HappyBirthday
|
|||
["Mail:birthdayDad"] = "",
|
||||
["Happy Birthday: Star Message"] = "",
|
||||
["Happy Birthday: Farmhand Birthday Message"] = "",
|
||||
["Spring"] = "Spring",
|
||||
["Summer"] = "Summer",
|
||||
["Fall"] = "Fall",
|
||||
["Winter"] = "Winter",
|
||||
["Season"] = "Season",
|
||||
["Birthday"] = "Birthday",
|
||||
["Date"] = "Date"
|
||||
},
|
||||
};
|
||||
|
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "",
|
||||
"Mail:birthdayDad": "",
|
||||
"Happy Birthday: Star Message": "",
|
||||
"Happy Birthday: Farmhand Birthday Message": ""
|
||||
"Happy Birthday: Farmhand Birthday Message": "",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "Dear @,^ Happy birthday sweetheart. It's been amazing watching you grow into the kind, hard working person that I've always dreamed that you would become. I hope you continue to make many more fond memories with the ones you love. ^ Love, Mom ^ P.S. Here's a little something that I made for you. %item object 221 1 %%",
|
||||
"Mail:birthdayDad": "Dear @,^ Happy birthday kiddo. It's been a little quiet around here on your birthday since you aren't around, but your mother and I know that you are making both your grandpa and us proud. We both know that living on your own can be tough but we believe in you one hundred percent, just keep following your dreams.^ Love, Dad ^ P.S. Here's some spending money to help you out on the farm. Good luck! %item money 5000 5001 %%",
|
||||
"Happy Birthday: Star Message": "It's your birthday today! Happy birthday!",
|
||||
"Happy Birthday: Farmhand Birthday Message": "It's @'s birthday! Happy birthday to them!"
|
||||
"Happy Birthday: Farmhand Birthday Message": "It's @'s birthday! Happy birthday to them!",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "",
|
||||
"Mail:birthdayDad": "",
|
||||
"Happy Birthday: Star Message": "",
|
||||
"Happy Birthday: Farmhand Birthday Message": ""
|
||||
"Happy Birthday: Farmhand Birthday Message": "",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "",
|
||||
"Mail:birthdayDad": "",
|
||||
"Happy Birthday: Star Message": "",
|
||||
"Happy Birthday: Farmhand Birthday Message": ""
|
||||
"Happy Birthday: Farmhand Birthday Message": "",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "",
|
||||
"Mail:birthdayDad": "",
|
||||
"Happy Birthday: Star Message": "",
|
||||
"Happy Birthday: Farmhand Birthday Message": ""
|
||||
"Happy Birthday: Farmhand Birthday Message": "",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "",
|
||||
"Mail:birthdayDad": "",
|
||||
"Happy Birthday: Star Message": "",
|
||||
"Happy Birthday: Farmhand Birthday Message": ""
|
||||
"Happy Birthday: Farmhand Birthday Message": "",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "",
|
||||
"Mail:birthdayDad": "",
|
||||
"Happy Birthday: Star Message": "",
|
||||
"Happy Birthday: Farmhand Birthday Message": ""
|
||||
"Happy Birthday: Farmhand Birthday Message": "",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "",
|
||||
"Mail:birthdayDad": "",
|
||||
"Happy Birthday: Star Message": "",
|
||||
"Happy Birthday: Farmhand Birthday Message": ""
|
||||
"Happy Birthday: Farmhand Birthday Message": "",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "",
|
||||
"Mail:birthdayDad": "",
|
||||
"Happy Birthday: Star Message": "",
|
||||
"Happy Birthday: Farmhand Birthday Message": ""
|
||||
"Happy Birthday: Farmhand Birthday Message": "",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "ƒорогой @,^ — днем рождени¤, мо¤ радость. Ёто были замечательные моменты, когда ты выростал в доброго, трудолюбивого человека. я надеюсь, в твоей жизни будет куча превосходных моментов. ^ — любовью, мама ^ P.S. «десь находить небольшой подарок, который ¤ сделала дл¤ теб¤. %item object 221 1 %%",
|
||||
"Mail:birthdayDad": "ƒорогой @,^ — днем рождени¤, мой ребенок. «десь немного тихо в твой день рождени¤ с тех пор, как ты уехал на ферму, но тво¤ мать и ¤ знаем, что ты со своим дедушкой делаешь нас гордыми. ћы оба знаем, что жить на ферме может быть трудно, но мы верим в теб¤ на все 100%, просто продолжай следовать своим мечтам.^ — любовью папа ^ P.S. “ут есть немного денег, которые помогут тебе на ферме. ”дачи! %item money 5000 5001%%",
|
||||
"Happy Birthday: Star Message": "Ёто твой день рождени¤! — днем рождени¤!",
|
||||
"Happy Birthday: Farmhand Birthday Message": "Ёто твой день рождени¤! ѕоздравл¤ю с этим!"
|
||||
"Happy Birthday: Farmhand Birthday Message": "Ёто твой день рождени¤! ѕоздравл¤ю с этим!",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "",
|
||||
"Mail:birthdayDad": "",
|
||||
"Happy Birthday: Star Message": "",
|
||||
"Happy Birthday: Farmhand Birthday Message": ""
|
||||
"Happy Birthday: Farmhand Birthday Message": "",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -2,5 +2,7 @@
|
|||
"Mail:birthdayMom": "亲爱的@,^ 生日快乐宝贝。看着你成长成为一个善良努力的人,就如我一直梦想着你成为的样子,我感到十分欣喜。我希望你能继续跟你爱的人制造更多美好的回忆。 ^ 爱你的,妈妈 ^ 附言:这是我给你做的一点小礼物。 %item object 221 1 %%",
|
||||
"Mail:birthdayDad": "亲爱的@,^ 生日快乐孩子。你生日的这天没有你,我们这儿还挺寂寞的,但我和你妈妈都知道你让我们和你爷爷感到骄傲。我们知道你一个人生活可能会很艰难,但我们百分百相信你能做到,所以继续追求你的梦想吧。^ 爱你的,爸爸 ^ 附言:这是能在农场上帮到你的一些零用钱。祝你好运! %item money 5000 5001 %%",
|
||||
"Happy Birthday: Star Message": "今天是你的生日!生日快乐!",
|
||||
"Happy Birthday: Farmhand Birthday Message": ""
|
||||
"Happy Birthday: Farmhand Birthday Message": "",
|
||||
"Season": "Season",
|
||||
"Date": "Date"
|
||||
}
|
|
@ -1,5 +1,6 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using StardewValley;
|
||||
|
||||
|
@ -206,6 +207,31 @@ namespace Omegasis.HappyBirthday.Framework
|
|||
|
||||
public string getTranslatedString(string Key)
|
||||
{
|
||||
|
||||
if (Key.Equals("Birthday"))
|
||||
{
|
||||
return Game1.content.LoadString("Strings\\UI:Billboard_Birthday");
|
||||
}
|
||||
if (Key.Equals("Spring"))
|
||||
{
|
||||
string file= Path.Combine("Strings", "StringsFromCSFiles");
|
||||
return HappyBirthday.Config.translationInfo.LoadStringFromXNBFile(file, "Utility.cs.5680", HappyBirthday.Config.translationInfo.CurrentTranslation);
|
||||
}
|
||||
if (Key.Equals("Summer"))
|
||||
{
|
||||
string file = Path.Combine("Strings", "StringsFromCSFiles");
|
||||
return HappyBirthday.Config.translationInfo.LoadStringFromXNBFile(file, "Utility.cs.5681", HappyBirthday.Config.translationInfo.CurrentTranslation);
|
||||
}
|
||||
if (Key.Equals("Fall"))
|
||||
{
|
||||
string file = Path.Combine("Strings", "StringsFromCSFiles");
|
||||
return HappyBirthday.Config.translationInfo.LoadStringFromXNBFile(file, "Utility.cs.5682", HappyBirthday.Config.translationInfo.CurrentTranslation);
|
||||
}
|
||||
if (Key.Equals("Winter"))
|
||||
{
|
||||
string file = Path.Combine("Strings", "StringsFromCSFiles");
|
||||
return HappyBirthday.Config.translationInfo.LoadStringFromXNBFile(file, "Utility.cs.5683", HappyBirthday.Config.translationInfo.CurrentTranslation);
|
||||
}
|
||||
try
|
||||
{
|
||||
return HappyBirthday.Instance.messages.translatedStrings[this.getCurrrentLanguageCode()][Key];
|
||||
|
|
Loading…
Reference in New Issue