Skip to content
Open
Show file tree
Hide file tree
Changes from 6 commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
d06afec
feat: support skse translation (#309)
Sieluna Dec 14, 2024
3cb34cb
fix: reorder loading order and improve utils
Sieluna Dec 14, 2024
92928ed
refactor: test more translations
Sieluna Dec 15, 2024
9e8d93f
style: 🎨 apply clang-format changes
Sieluna Dec 15, 2024
529e197
refactor: modified general setting
Sieluna Dec 15, 2024
d7ab57b
Merge branch 'localization' of https://github.com/Sieluna/skyrim-comm…
Sieluna Dec 15, 2024
27dee83
refactor: improve translation by Pentalimbed's advice
Sieluna Dec 15, 2024
aaa5ec2
refactor: small fix and more translations
Sieluna Dec 16, 2024
bdee7ad
feat: create font subset feature
Sieluna Dec 17, 2024
e939838
style: 🎨 apply clang-format changes
Sieluna Dec 17, 2024
8ac690a
feat: dynamic resolve args and better ci
Sieluna Dec 17, 2024
95f0f2c
style: 🎨 apply clang-format changes
Sieluna Dec 17, 2024
5c0aa19
fix: disable few configs and make more translations
Sieluna Dec 17, 2024
c292a71
fix: force build all latin
Sieluna Dec 17, 2024
4915cc8
fix: improve styles and fix string format
Sieluna Dec 18, 2024
5cbdfe9
fix: improve and add missing translations
Sieluna Dec 18, 2024
9a3a116
fix: improve japanese translations
Sieluna Dec 18, 2024
696b6a5
chore: test working-tree-encoding
Sieluna Dec 18, 2024
67b15ad
chore: bake utf8
Sieluna Dec 18, 2024
68827d5
fix: fix typos
Sieluna Dec 18, 2024
835afe2
feat: wip dynamic load font
Sieluna Dec 25, 2024
2abc221
fix: fix few mistakes
Sieluna Dec 25, 2024
ab30724
refactor: load font good
Sieluna Dec 25, 2024
861923e
style: 🎨 apply clang-format changes
Sieluna Dec 25, 2024
509a9ce
refactor: move warning closer to input
Sieluna Dec 25, 2024
e9136b8
style: 🎨 apply clang-format changes
Sieluna Dec 25, 2024
20f8d4d
ci: prepare translation json
Sieluna Dec 25, 2024
74e51e7
ci: wip loaklise integrate
Sieluna Dec 25, 2024
b79d59a
fix: fix a mistake
Sieluna Dec 25, 2024
aa21c67
ci: save cache in branch
Sieluna Dec 25, 2024
9dac59b
fix: try allow pr
Sieluna Dec 25, 2024
95c9f32
ci: force lokalise not create pr
Sieluna Dec 25, 2024
a51ca43
fix: incorrect iso mapping
Sieluna Dec 25, 2024
7e1151e
fix: bad fix
Sieluna Dec 25, 2024
74a5553
fix: none translates path
Sieluna Dec 26, 2024
3526de2
ci: wip drop the fucking action
Sieluna Dec 26, 2024
da69a4d
ci: use esm
Sieluna Dec 26, 2024
4234b04
ci: es module fix
Sieluna Dec 26, 2024
5c09b42
fix: number parse issue
Sieluna Dec 26, 2024
9f7984e
revert: address the issue
Sieluna Dec 26, 2024
2118b5e
fix: to executable
Sieluna Dec 26, 2024
31b82c4
ci: use relative path
Sieluna Dec 26, 2024
7de7b32
Merge remote-tracking branch 'upstream/dev' into localization
Sieluna Jul 14, 2025
60058b8
fix: few small fix
Sieluna Jul 14, 2025
bba85aa
chore: check translation failure
alandtse Jul 20, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ build/
bin/
dist/
.vs*/
.idea/
CMakeUserPresets.json
shadertoolsconfig.json
.vscode
Binary file not shown.
Binary file not shown.
205 changes: 92 additions & 113 deletions src/Menu.cpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Menu.h
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class Menu
bool inTestMode = false; // Whether we're in test mode
bool usingTestConfig = false; // Whether we're using the test config

std::chrono::steady_clock::time_point lastTestSwitch = high_resolution_clock::now(); // Time of last test switch
steady_clock::time_point lastTestSwitch = high_resolution_clock::now(); // Time of last test switch

Menu() = default;
void SetupImGuiStyle() const;
Expand Down
1 change: 1 addition & 0 deletions src/Util.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@
#include "Utils/Game.h"
#include "Utils/GameSetting.h"
#include "Utils/Serialize.h"
#include "Utils/Translate.h"
#include "Utils/UI.h"
#include "Utils/WinApi.h"
17 changes: 17 additions & 0 deletions src/Utils/Translate.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#include "Translate.h"

#include "SKSE/Translation.h"

namespace Util
{
std::string Translate(const std::string& key)
{
std::string buffer;

if (SKSE::Translation::Translate(key, buffer)) {
return buffer;
}

return key;
}
}
16 changes: 16 additions & 0 deletions src/Utils/Translate.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#pragma once

#include <fmt/core.h>
#include <string>

namespace Util
{
std::string Translate(const std::string& key);

template <typename... Args>
std::string Translate(const std::string& key, Args&&... args)
{
const auto translation = Translate(key);
return fmt::format(fmt::runtime(translation), std::forward<Args>(args)...);
}
}
2 changes: 2 additions & 0 deletions src/XSEPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,8 @@ void MessageHandler(SKSE::MessagingInterface::Message* message)
shaderCache.WriteDiskCacheInfo();
}

SKSE::Translation::ParseTranslation("CommunityShaders");

if (!REL::Module::IsVR()) {
RE::GetINISetting("bEnableImprovedSnow:Display")->data.b = false;
RE::GetINISetting("bIBLFEnable:Display")->data.b = false;
Expand Down
Loading