mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-09-21 20:06:40 +00:00
Remove internationalization of log messages
As log messages aren't supposed to be translatable, this removes the internationalization of all log messages, which had it enabled. Patch by: @Dunedan Accepted by: @Itms Differential Revision: https://code.wildfiregames.com/D5314 This was SVN commit r28179.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2023 Wildfire Games.
|
||||
/* Copyright (C) 2024 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -658,39 +658,39 @@ InReaction CCameraController::HandleEvent(const SDL_Event_* ev)
|
||||
else if (hotkey == "camera.scroll.speed.increase")
|
||||
{
|
||||
m_ViewScrollSpeed *= m_ViewScrollSpeedModifier;
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Scroll speed increased to %.1f"), m_ViewScrollSpeed);
|
||||
LOGMESSAGERENDER("Scroll speed increased to %.1f", m_ViewScrollSpeed);
|
||||
return IN_HANDLED;
|
||||
}
|
||||
else if (hotkey == "camera.scroll.speed.decrease")
|
||||
{
|
||||
m_ViewScrollSpeed /= m_ViewScrollSpeedModifier;
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Scroll speed decreased to %.1f"), m_ViewScrollSpeed);
|
||||
LOGMESSAGERENDER("Scroll speed decreased to %.1f", m_ViewScrollSpeed);
|
||||
return IN_HANDLED;
|
||||
}
|
||||
else if (hotkey == "camera.rotate.speed.increase")
|
||||
{
|
||||
m_ViewRotateXSpeed *= m_ViewRotateSpeedModifier;
|
||||
m_ViewRotateYSpeed *= m_ViewRotateSpeedModifier;
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Rotate speed increased to X=%.3f, Y=%.3f"), m_ViewRotateXSpeed, m_ViewRotateYSpeed);
|
||||
LOGMESSAGERENDER("Rotate speed increased to X=%.3f, Y=%.3f", m_ViewRotateXSpeed, m_ViewRotateYSpeed);
|
||||
return IN_HANDLED;
|
||||
}
|
||||
else if (hotkey == "camera.rotate.speed.decrease")
|
||||
{
|
||||
m_ViewRotateXSpeed /= m_ViewRotateSpeedModifier;
|
||||
m_ViewRotateYSpeed /= m_ViewRotateSpeedModifier;
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Rotate speed decreased to X=%.3f, Y=%.3f"), m_ViewRotateXSpeed, m_ViewRotateYSpeed);
|
||||
LOGMESSAGERENDER("Rotate speed decreased to X=%.3f, Y=%.3f", m_ViewRotateXSpeed, m_ViewRotateYSpeed);
|
||||
return IN_HANDLED;
|
||||
}
|
||||
else if (hotkey == "camera.zoom.speed.increase")
|
||||
{
|
||||
m_ViewZoomSpeed *= m_ViewZoomSpeedModifier;
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Zoom speed increased to %.1f"), m_ViewZoomSpeed);
|
||||
LOGMESSAGERENDER("Zoom speed increased to %.1f", m_ViewZoomSpeed);
|
||||
return IN_HANDLED;
|
||||
}
|
||||
else if (hotkey == "camera.zoom.speed.decrease")
|
||||
{
|
||||
m_ViewZoomSpeed /= m_ViewZoomSpeedModifier;
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Zoom speed decreased to %.1f"), m_ViewZoomSpeed);
|
||||
LOGMESSAGERENDER("Zoom speed decreased to %.1f", m_ViewZoomSpeed);
|
||||
return IN_HANDLED;
|
||||
}
|
||||
return IN_PASS;
|
||||
|
||||
+2
-5
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2022 Wildfire Games.
|
||||
/* Copyright (C) 2024 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -89,10 +89,7 @@ bool LoadModJSON(const PIVFS& vfs, OsPath modsPath, OsPath mod, std::string& tex
|
||||
else
|
||||
{
|
||||
// Print a warning - we'll keep trying, which could have adverse effects.
|
||||
if (L10n::IsInitialised())
|
||||
LOGWARNING(g_L10n.Translate("Could not write external mod.json for zipped mod '%s'. The mod should be reinstalled."), mod.string8());
|
||||
else
|
||||
LOGWARNING("Could not write external mod.json for zipped mod '%s'. The mod should be reinstalled.", mod.string8());
|
||||
LOGWARNING("Could not write external mod.json for zipped mod '%s'. The mod should be reinstalled.", mod.string8());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright (C) 2021 Wildfire Games.
|
||||
/* Copyright (C) 2024 Wildfire Games.
|
||||
* This file is part of 0 A.D.
|
||||
*
|
||||
* 0 A.D. is free software: you can redistribute it and/or modify
|
||||
@@ -139,7 +139,7 @@ Status SavedGames::Save(const CStrW& name, const CStrW& description, CSimulation
|
||||
|
||||
OsPath realPath;
|
||||
WARN_RETURN_STATUS_IF_ERR(g_VFS->GetRealPath(filename, realPath));
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Saved game to '%s'"), realPath.string8());
|
||||
LOGMESSAGERENDER("Saved game to '%s'", realPath.string8());
|
||||
debug_printf("Saved game to '%s'\n", realPath.string8().c_str());
|
||||
|
||||
return INFO::OK;
|
||||
|
||||
@@ -684,7 +684,7 @@ void CRenderer::RenderScreenShot(const bool needsPresent)
|
||||
OsPath realPath;
|
||||
g_VFS->GetRealPath(filename, realPath);
|
||||
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Screenshot written to '%s'"), realPath.string8());
|
||||
LOGMESSAGERENDER("Screenshot written to '%s'", realPath.string8());
|
||||
|
||||
debug_printf(
|
||||
CStr(g_L10n.Translate("Screenshot written to '%s'") + "\n").c_str(),
|
||||
@@ -810,7 +810,7 @@ void CRenderer::RenderBigScreenShot(const bool needsPresent)
|
||||
OsPath realPath;
|
||||
g_VFS->GetRealPath(filename, realPath);
|
||||
|
||||
LOGMESSAGERENDER(g_L10n.Translate("Screenshot written to '%s'"), realPath.string8());
|
||||
LOGMESSAGERENDER("Screenshot written to '%s'", realPath.string8());
|
||||
|
||||
debug_printf(
|
||||
CStr(g_L10n.Translate("Screenshot written to '%s'") + "\n").c_str(),
|
||||
|
||||
Reference in New Issue
Block a user