mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-08-04 08:22:32 +00:00
Revert: translation for 'Trophy earned!'
This commit is contained in:
parent
40491b03f2
commit
a9a72d9d72
@ -118,7 +118,7 @@ void TrophyUI::Draw() {
|
|||||||
ImGui::Indent(60);
|
ImGui::Indent(60);
|
||||||
}
|
}
|
||||||
|
|
||||||
const std::string combinedString = tr("Trophy earned!").toStdString() + "\n" + trophy_name;
|
const std::string combinedString = "Trophy earned!\n%s" + trophy_name;
|
||||||
const float wrap_width =
|
const float wrap_width =
|
||||||
CalcWrapWidthForPos(GetCursorScreenPos(), (window_size.x - (60 * AdjustWidth)));
|
CalcWrapWidthForPos(GetCursorScreenPos(), (window_size.x - (60 * AdjustWidth)));
|
||||||
SetWindowFontScale(1.2 * AdjustHeight);
|
SetWindowFontScale(1.2 * AdjustHeight);
|
||||||
@ -135,7 +135,7 @@ void TrophyUI::Draw() {
|
|||||||
SetCursorPosY((window_size.y - text_height) * 0.5);
|
SetCursorPosY((window_size.y - text_height) * 0.5);
|
||||||
}
|
}
|
||||||
ImGui::PushTextWrapPos(window_size.x - (60 * AdjustWidth));
|
ImGui::PushTextWrapPos(window_size.x - (60 * AdjustWidth));
|
||||||
TextWrapped("%s", combinedString.c_str());
|
TextWrapped("Trophy earned!\n%s", trophy_name.c_str());
|
||||||
ImGui::SameLine(window_size.x - (60 * AdjustWidth));
|
ImGui::SameLine(window_size.x - (60 * AdjustWidth));
|
||||||
|
|
||||||
if (trophy_icon) {
|
if (trophy_icon) {
|
||||||
|
@ -13,12 +13,9 @@
|
|||||||
#include "imgui/imgui_layer.h"
|
#include "imgui/imgui_layer.h"
|
||||||
#include "imgui/imgui_texture.h"
|
#include "imgui/imgui_texture.h"
|
||||||
|
|
||||||
#include <QObject>
|
|
||||||
|
|
||||||
namespace Libraries::NpTrophy {
|
namespace Libraries::NpTrophy {
|
||||||
|
|
||||||
class TrophyUI final : public QObject, public ImGui::Layer {
|
class TrophyUI final : public ImGui::Layer {
|
||||||
Q_OBJECT
|
|
||||||
public:
|
public:
|
||||||
TrophyUI(const std::filesystem::path& trophyIconPath, const std::string& trophyName,
|
TrophyUI(const std::filesystem::path& trophyIconPath, const std::string& trophyName,
|
||||||
const std::string_view& rarity);
|
const std::string_view& rarity);
|
||||||
|
@ -887,13 +887,6 @@
|
|||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
|
||||||
<name>Libraries::NpTrophy::TrophyUI</name>
|
|
||||||
<message>
|
|
||||||
<source>Trophy earned!</source>
|
|
||||||
<translation>Trophy earned!</translation>
|
|
||||||
</message>
|
|
||||||
</context>
|
|
||||||
<context>
|
<context>
|
||||||
<name>MainWindow</name>
|
<name>MainWindow</name>
|
||||||
<message>
|
<message>
|
||||||
|
Loading…
Reference in New Issue
Block a user