Skip to content

Commit

Permalink
fix L10n encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
dwing4g committed Jul 4, 2024
1 parent 03b3bca commit f128c5b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/lua/l10n.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ namespace
{
// Argument values
if (value.is<std::string>())
args.push_back(icu::Formattable(LuaUtil::cast<std::string>(value).c_str()));
args.push_back(icu::Formattable(icu::UnicodeString::fromUTF8(LuaUtil::cast<std::string>(value).c_str())));
// Note: While we pass all numbers as doubles, they still seem to be handled appropriately.
// Numbers can be forced to be integers using the argType number and argStyle integer
// E.g. {var, number, integer}
Expand Down
7 changes: 4 additions & 3 deletions readme-zh_CN.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
OpenMW原版官方网站: https://openmw.org/

■ 首次运行说明(必读)
1. 首先确保操作系统是 Windows 7 以上, 必须是 x64 版本, 不支持32位的 Windows.
1. 首先确保操作系统是 Windows 10(1809) 以上, 必须是 x64 版本, 不支持32位的 Windows.

2. 如果想快捷安装配置并尽快进入游戏, 可以把 OpenMW 文件夹放到原版游戏文件夹内, 跟原版游戏的 Data Files 文件夹并列存放.
然后运行 OpenMW 文件夹内的 reset_cfg 安装(重置)配置文件, 成功后运行 openmw 即可开始游戏, 无需再看下面的步骤.
Expand Down Expand Up @@ -40,11 +40,12 @@ OpenMW原版官方网站: https://openmw.org/
1. 需要准备 7z.exe, 安装 Python3, Git for Windows, Visual Studio 2022 (include CMake)
2. 在 Git Bash 下进入 openmw 根目录, 执行: CI/before_script.msvc.sh -k -p Win64 -v 2022
3. 用 Visual Studio 2022 打开 MSVC2022_64\OpenMW.sln 并执行编译
4. 如果需要编译 MyGUI, 需要先下载编译FreeType, 然后使用命令: cmake -DMYGUI_DONT_USE_OBSOLETE -DMYGUI_RENDERSYSTEM=1 -DFREETYPE_INCLUDE_DIRS=... -DFREETYPE_LIBRARY=...
4. 如果需要编译 MyGUI, 需要先下载编译FreeType, 然后使用命令: cmake -DMYGUI_DONT_USE_OBSOLETE=1 -DMYGUI_RENDERSYSTEM=1 -DFREETYPE_INCLUDE_DIRS=... -DFREETYPE_LIBRARY=...

■ 汉化版的ChangeLog:

● 2024-06-?? v11
● 2024-07-?? v11
1. openmw: 修正Lua脚本传入引擎L10n模块时当成本地编码加载的bug,Lua脚本字符串都应该用UTF-8编码

● 2024-05-31 v10
1. openmw: 窗口化可以显示输入法提示框
Expand Down

0 comments on commit f128c5b

Please sign in to comment.