Beispiel #1
0
 private void AddStrings(RateMeDialogStrings rateMeDialogStrings)
 {
     _localizedStringsRepository.AddString(_titleTextKey, rateMeDialogStrings.TitleText);
     _localizedStringsRepository.AddString(_messageTextKey, rateMeDialogStrings.MessageText);
     _localizedStringsRepository.AddString(_rateItButtonTextKey, rateMeDialogStrings.RateItButtonText);
     _localizedStringsRepository.AddString(_notNowButtonTextKey, rateMeDialogStrings.NotNowButtonText);
 }
Beispiel #2
0
        public GameStringsLoader(ILocalizedStringsRepository localizedStringsRepository, CultureInfo cultureInfo)
        {
            if (cultureInfo.TwoLetterISOLanguageName == "it")
            {
                localizedStringsRepository.AddString(YellowColorKey, "Giallo");
                localizedStringsRepository.AddString(RedColorKey, "Rosso");
                localizedStringsRepository.AddString(GreenColorKey, "Verde");
                localizedStringsRepository.AddString(BlueColorKey, "Blu");
                localizedStringsRepository.AddString(OrangeColorKey, "Arancione");
                localizedStringsRepository.AddString(GrayColorKey, "Grigio");
                localizedStringsRepository.AddString(WhiteColorKey, "Bianco");
                localizedStringsRepository.AddString(VioletColorKey, "Viola");
                localizedStringsRepository.AddString(LightBlueColorKey, "Azzurro");

                localizedStringsRepository.AddString(SecondaryLanguageYellowColorKey, "Yellow");
                localizedStringsRepository.AddString(SecondaryLanguageRedColorKey, "Red");
                localizedStringsRepository.AddString(SecondaryLanguageGreenColorKey, "Green");
                localizedStringsRepository.AddString(SecondaryLanguageBlueColorKey, "Blue");
                localizedStringsRepository.AddString(SecondaryLanguageOrangeColorKey, "Orange");
                localizedStringsRepository.AddString(SecondaryLanguageGrayColorKey, "Gray");
                localizedStringsRepository.AddString(SecondaryLanguageWhiteColorKey, "White");
                localizedStringsRepository.AddString(SecondaryLanguageVioletColorKey, "Violet");
                localizedStringsRepository.AddString(SecondaryLanguageLightBlueColorKey, "Light blue");

                localizedStringsRepository.AddString(PlayStringKey, "Gioca");
                localizedStringsRepository.AddString(AboutStringKey, "About");
                localizedStringsRepository.AddString(PlayAgainStringKey, "Gioca ancora");
                localizedStringsRepository.AddString(ExitStringKey, "Esci");
                localizedStringsRepository.AddString(ScoreStringKey, "Punti");
                localizedStringsRepository.AddString(GlobalRankStringKey, "Pos. globale");
                localizedStringsRepository.AddString(GlobalRankLoadingStringKey, "Caricamento classifica...");
                localizedStringsRepository.AddString(GlobalRankCurrentlyUnavailableKey, "Classifica non disponibile");
            }
            else
            {
                localizedStringsRepository.AddString(YellowColorKey, "Yellow");
                localizedStringsRepository.AddString(RedColorKey, "Red");
                localizedStringsRepository.AddString(GreenColorKey, "Green");
                localizedStringsRepository.AddString(BlueColorKey, "Blue");
                localizedStringsRepository.AddString(OrangeColorKey, "Orange");
                localizedStringsRepository.AddString(GrayColorKey, "Gray");
                localizedStringsRepository.AddString(WhiteColorKey, "White");
                localizedStringsRepository.AddString(VioletColorKey, "Violet");
                localizedStringsRepository.AddString(LightBlueColorKey, "Light blue");

                localizedStringsRepository.AddString(SecondaryLanguageYellowColorKey, "Yellow");
                localizedStringsRepository.AddString(SecondaryLanguageRedColorKey, "Red");
                localizedStringsRepository.AddString(SecondaryLanguageGreenColorKey, "Green");
                localizedStringsRepository.AddString(SecondaryLanguageBlueColorKey, "Blue");
                localizedStringsRepository.AddString(SecondaryLanguageOrangeColorKey, "Orange");
                localizedStringsRepository.AddString(SecondaryLanguageGrayColorKey, "Gray");
                localizedStringsRepository.AddString(SecondaryLanguageWhiteColorKey, "White");
                localizedStringsRepository.AddString(SecondaryLanguageVioletColorKey, "Violet");
                localizedStringsRepository.AddString(SecondaryLanguageLightBlueColorKey, "Light blue");

                localizedStringsRepository.AddString(PlayStringKey, "Play");
                localizedStringsRepository.AddString(AboutStringKey, "About");
                localizedStringsRepository.AddString(PlayAgainStringKey, "Play again");
                localizedStringsRepository.AddString(ExitStringKey, "Exit");
                localizedStringsRepository.AddString(ScoreStringKey, "Score");
                localizedStringsRepository.AddString(GlobalRankStringKey, "Global rank");
                localizedStringsRepository.AddString(GlobalRankLoadingStringKey, "Loading leaderboard...");
                localizedStringsRepository.AddString(GlobalRankCurrentlyUnavailableKey, "Leaderboard not available");
            }
        }
        public GameStringsLoader(ILocalizedStringsRepository localizedStringsRepository, CultureInfo cultureInfo)
        {
            if (cultureInfo.TwoLetterISOLanguageName == "it")
            {
                localizedStringsRepository.AddString(PlayButtonString, "gioca");
                localizedStringsRepository.AddString(ScoreButtonString, "punteggi");
                localizedStringsRepository.AddString(FartButtonString, "scoreggia");

                localizedStringsRepository.AddString(ScorePageTitleString, "Punteggi");
                localizedStringsRepository.AddString(BestNumberOfMetersScoreKey, "Maggior numero di metri percorsi: ");
                localizedStringsRepository.AddString(BestVegetablesEatenScoreKey, "Maggior numero di verdure mangiate: ");
                localizedStringsRepository.AddString(BestFartsScoreKey, "Maggior numero di scoregge: ");

                localizedStringsRepository.AddString(MetriTimeString, " metri");
                localizedStringsRepository.AddString(NumberOfMetersString, "Numero di metri: ");
                localizedStringsRepository.AddString(NumberOfVegetablesEaten, "Numero di verdure mangiate: ");
                localizedStringsRepository.AddString(NumbersOfFartsString, "Numero di scoregge flatulate: ");

                localizedStringsRepository.AddString(BeanPowerupText, "SEDERE IN TEMPESTA!");
                localizedStringsRepository.AddString(BroccoloPowerupText, "CAVALCA LA CACCA!");
            }
            else
            {
                localizedStringsRepository.AddString(PlayButtonString, "play");
                localizedStringsRepository.AddString(ScoreButtonString, "score");
                localizedStringsRepository.AddString(FartButtonString, "fart");

                localizedStringsRepository.AddString(ScorePageTitleString, "Score");
                localizedStringsRepository.AddString(BestNumberOfMetersScoreKey, "Highest number of meters: ");
                localizedStringsRepository.AddString(BestVegetablesEatenScoreKey, "Highest number of vegetables eaten: ");
                localizedStringsRepository.AddString(BestFartsScoreKey, "Highest number of farts: ");

                localizedStringsRepository.AddString(MetriTimeString, " meters");
                localizedStringsRepository.AddString(NumberOfMetersString, "Number of meters: ");
                localizedStringsRepository.AddString(NumberOfVegetablesEaten, "Number of vegetables eaten: ");
                localizedStringsRepository.AddString(NumbersOfFartsString, "Number of farts farted: ");

                localizedStringsRepository.AddString(BeanPowerupText, "ASS STORM!");
                localizedStringsRepository.AddString(BroccoloPowerupText, "RIDING ON A POO!");
            }
        }