Translate achievement stuff to Swedish

This commit is contained in:
Henrik Rydgård 2023-06-27 18:00:50 +02:00
parent d5b3c25bfb
commit 5f38883973
4 changed files with 36 additions and 4 deletions

View File

@ -216,7 +216,7 @@ void RetroAchievementsSettingsScreen::CreateSettingsTab(UI::ViewGroup *viewGroup
viewGroup->Add(new CheckBox(&g_Config.bAchievementsLogBadMemReads, ac->T("Log bad memory accesses")));
// Not yet fully implemented
// viewGroup->Add(new CheckBox(&g_Config.bAchievementsChallengeMode, ac->T("Challenge Mode")));
// viewGroup->Add(new CheckBox(&g_Config.bAchievementsChallengeMode, ac->T("Challenge Mode (no savestates)")));
// TODO: What are these for?
// viewGroup->Add(new CheckBox(&g_Config.bAchievementsTestMode, ac->T("Test Mode")));

View File

@ -35,6 +35,7 @@
#include "Common/TimeUtil.h"
#include "Common/Data/Text/I18n.h"
#include "Common/Serialize/Serializer.h"
#include "Common/StringUtils.h"
#include "Common/System/System.h"
#include "Common/Crypto/md5.h"
#include "Common/UI/IconCache.h"
@ -707,7 +708,7 @@ void Achievements::SetChallengeMode(bool enabled)
auto ac = GetI18NCategory(I18NCat::ACHIEVEMENTS);
auto di = GetI18NCategory(I18NCat::DIALOG);
OSDAddNotification(5.0f, std::string(ac->T("Challenge mode")) + ": " + di->T(enabled ? "Enabled" : "Disabled"), "", "");
OSDAddNotification(5.0f, std::string(ac->T("Challenge Mode")) + ": " + di->T(enabled ? "Enabled" : "Disabled"), "", "");
}
if (HasActiveGame() && !IsTestModeActive())
@ -1126,7 +1127,7 @@ void Achievements::DisplayMasteredNotification()
return;
// TODO: Translation?
std::string title = StringFromFormat(ac->T("Mastered %s"), s_game_title.c_str());
std::string title = ReplaceAll(ac->T("Mastered %1"), "%1", s_game_title.c_str());
std::string message = StringFromFormat(ac->T("%d achievements, %d points"), GetAchievementCount(), GetCurrentPointsForGame());
OSDAddNotification(20.0f, title, message, s_game_icon);
@ -1948,7 +1949,7 @@ void Achievements::SubmitLeaderboard(u32 leaderboard_id, int value)
if (!ChallengeModeActive())
{
WARN_LOG(ACHIEVEMENTS, "Skipping sending leaderboard %u result to server because Challenge mode is off.", leaderboard_id);
WARN_LOG(ACHIEVEMENTS, "Skipping sending leaderboard %u result to server because Challenge Mode is off.", leaderboard_id);
return;
}

View File

@ -31,6 +31,7 @@ Challenge Mode (no savestates) = Challenge Mode (no savestates)
Earned = You have earned %d of %d achievements, and %d of %d points
How to use RetroAchievements = How to use RetroAchievements
Leaderboard submission is enabled = Leaderboard submission is enabled
Leaderboards = Leaderboards
Links = Links
Local = Local
Locked achievements = Locked achievements
@ -41,6 +42,7 @@ RetroAchievements are not available for this game = RetroAchievements are not av
RetroAchievements website = RetroAchievements website
Rich Presence = Rich Presence
Sound Effects = Sound Effects
Statistics = Statistics
Submitted Score = Submitted Score
Submitted Score = Submitted score: %d (Best: %d)\nLeaderboard Position: %d of %d
Syncing achievements data... = Syncing achievements data...

View File

@ -1,3 +1,32 @@
[Achievements]
%d achievements, %d points = %d achievements, %d poäng
Account = Inloggning
Achievements = Achievements
Challenge Mode = Utmanings-läge
Challenge Mode (no savestates) = Utmanings-läge (inga sparade state)
Earned = Du har tjänat %d av %d achievements, och %d of %d poäng
How to use RetroAchievements = Hur man använder RetroAchievements
Leaderboard submission is enabled = Skickar in poäng till ledartabeller
Leaderboards = Leaderboards
Links = Links
Local = Lokal
Locked achievements = Låsta achievements
Log bad memory accesses = Logga felaktiga minnesåtkomster
Mastered %1 = Mästrade %1
Register on www.retroachievements.org = Registrera på www.retroachievements.org
RetroAchievements are not available for this game = RetroAchievements finns inte tillgängliga för detta spel
RetroAchievements website = RetroAchievements website
Rich Presence = Visa vad du spelar på websiten
Sound Effects = Ljudeffekter
Statistics = Statistik
Submitted Score = Inskickad poäng
Submitted Score = Inskickad poäng: %d (Best: %d)\nLedartabell-plats: %d of %d
Syncing achievements data... = Synkar achievementdata...
Test Mode = Test-läge
This game has no achievements = Detta spel har inga achievements
Unlocked achievements = Upplåsta achievements
Unofficial = Inofficiell
[Audio]
Alternate speed volume = Volym vid alternativ hastighet
Audio backend = Uppspelningsteknik (ändring kräver omstart!)