Skip to content

Commit 999fe47

Browse files
authored
Apply fixes
1 parent 66de3d3 commit 999fe47

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

src/dialog_dummy_video.cpp

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -68,18 +68,18 @@ struct ResolutionShortcut {
6868
};
6969

7070
static ResolutionShortcut resolutions[] = {
71-
{_(L"640\u00D7480 (SD fullscreen)"), 640, 480}, // U+00D7 multiplication sign
72-
{_(L"704\u00D7480 (SD anamorphic)"), 704, 480},
73-
{_(L"640\u00D7360 (SD widescreen)"), 640, 360},
74-
{_(L"704\u00D7396 (SD widescreen)"), 704, 396},
75-
{_(L"640\u00D7352 (SD widescreen MOD16)"), 640, 352},
76-
{_(L"704\u00D7400 (SD widescreen MOD16)"), 704, 400},
77-
{_(L"1024\u00D7576 (SuperPAL widescreen)"), 1024, 576},
78-
{_(L"1280\u00D7720 (HD 720p)"), 1280, 720},
79-
{_(L"1920\u00D71080 (FHD 1080p)"), 1920, 1080},
80-
{_(L"2560\u00D71440 (QHD 1440p)"), 2560, 1440},
81-
{_(L"3840\u00D72160 (4K UHD 2160p)"), 3840, 2160},
82-
{_(L"1080\u00D71920 (FHD vertical)"), 1080, 1920},
71+
{wxGetTranslation(L"640\u00D7480 (SD fullscreen)"), 640, 480}, // U+00D7 multiplication sign
72+
{wxGetTranslation(L"704\u00D7480 (SD anamorphic)"), 704, 480},
73+
{wxGetTranslation(L"640\u00D7360 (SD widescreen)"), 640, 360},
74+
{wxGetTranslation(L"704\u00D7396 (SD widescreen)"), 704, 396},
75+
{wxGetTranslation(L"640\u00D7352 (SD widescreen MOD16)"), 640, 352},
76+
{wxGetTranslation(L"704\u00D7400 (SD widescreen MOD16)"), 704, 400},
77+
{wxGetTranslation(L"1024\u00D7576 (SuperPAL widescreen)"), 1024, 576},
78+
{wxGetTranslation(L"1280\u00D7720 (HD 720p)"), 1280, 720},
79+
{wxGetTranslation(L"1920\u00D71080 (FHD 1080p)"), 1920, 1080},
80+
{wxGetTranslation(L"2560\u00D71440 (QHD 1440p)"), 2560, 1440},
81+
{wxGetTranslation(L"3840\u00D72160 (4K UHD 2160p)"), 3840, 2160},
82+
{wxGetTranslation(L"1080\u00D71920 (FHD vertical)"), 1080, 1920},
8383
};
8484

8585
wxSpinCtrl *spin_ctrl(wxWindow *parent, int min, int max, int *value) {
@@ -92,7 +92,7 @@ wxComboBox *resolution_shortcuts(wxWindow *parent, int width, int height) {
9292
wxComboBox *ctrl = new wxComboBox(parent, -1, "", wxDefaultPosition, wxDefaultSize, 0, nullptr, wxCB_READONLY);
9393

9494
for (auto const& res : resolutions) {
95-
ctrl->Append(_(res.name));
95+
ctrl->Append(wxGetTranslation(res.name));
9696
if (res.width == width && res.height == height)
9797
ctrl->SetSelection(ctrl->GetCount() - 1);
9898
}

src/project.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ bool Project::DoLoadSubtitles(agi::fs::path const& path, std::string encoding, P
108108
}
109109
catch (agi::fs::FileNotFound const&) {
110110
config::mru->Remove("Subtitle", path);
111-
ShowError(path.string() + _(" not found."));
111+
ShowError(fmt_tl("%s not found.", path.string()));
112112
return false;
113113
}
114114

@@ -127,7 +127,7 @@ bool Project::DoLoadSubtitles(agi::fs::path const& path, std::string encoding, P
127127
catch (agi::UserCancelException const&) { return false; }
128128
catch (agi::fs::FileNotFound const&) {
129129
config::mru->Remove("Subtitle", path);
130-
ShowError(path.string() + _(" not found."));
130+
ShowError(fmt_tl("%s not found.", path.string()));
131131
return false;
132132
}
133133
catch (agi::Exception const& e) {

src/video_provider_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
#include <libaegisub/log.h>
2626
#include <libaegisub/string.h>
2727

28-
#include "wx/translation.h"
28+
#include "<wx/translation.h>"
2929

3030
std::unique_ptr<VideoProvider> CreateDummyVideoProvider(agi::fs::path const&, std::string_view, agi::BackgroundRunner *);
3131
std::unique_ptr<VideoProvider> CreateYUV4MPEGVideoProvider(agi::fs::path const&, std::string_view, agi::BackgroundRunner *);

0 commit comments

Comments
 (0)