• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

akintos/UnrealLocres: UE4 localization resource file tool

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

akintos/UnrealLocres

开源软件地址(OpenSource Url):

https://github.com/akintos/UnrealLocres

开源编程语言(OpenSource Language):

C# 100.0%

开源软件介绍(OpenSource Introduction):

UnrealLocres

UnrealEngine 4 TextLocalizationResource library and export/import tool built with C#.

Can read/write every locres version up to 3 (latest)

Download

Go to releases and download UnrealLocres.exe

Usage

UnrealLocres is a command line tool. You should use it in command line (cmd, powershell, etc.)

Export

usage: UnrealLocres.exe export locres_file_path [-f {csv,pot}] [-o output_path]

positional arguments:
  locres_file_path        Input locres file path

optional arguments:
  -f, --format {csv,pot}  Output file format (csv, pot)
  -o                      Output file path (default: {locres_file_path}.{format})

Export locres file. Default output format is csv. You should never change the key column.

Import

usage: UnrealLocres.exe import locres_file_path translation_file_path [-f {csv,pot}] [-o output_path]

positional arguments:
  locres_file_path        Input locres file path
  translation_file_path   Input translation file path

optional arguments:
  -f, --format {csv,pot}  Translation file format (csv, pot)
  -o                      Output locres file path (default: {locres_file_path}.new)

Import translation file into original locres file and create new translated locres file.

Merge

usage: UnrealLocres.exe merge target_locres_path source_locres_path [-o output_path]

positional arguments:
  target_locres_path      Merge target locres file path, the file you want to translate
  source_locres_path      Merge source locres file path, the file that has additional lines

optional arguments:
  -o                      Output locres file path (default: {target_locres_path}.new)

Merge two locres files into one, adding strings that are present in source but not in target file.

LocresLib

Sample usage

using LocresLib;

var locres = new LocresFile();

using (var file = File.OpenRead(inputPath))
{
    locres.Load(file);
}

foreach (var locresNamespace in locres)
{
    foreach (var stringEntry in locresNamespace)
    {
        string key = stringEntry.Key;
        string val = stringEntry.Value;

        // work with stringEntry
    }
}

using (var file = File.Create(outputPath))
{
    locres.Save(file, LocresVersion.Optimized);
}

UE4 Source code

This library is based on original UE4 open source code

TextKey.cpp

TextKey.h

TextLocalizationResourceVersion.h

TextLocalizationResource.h

TextLocalizationResource.cpp

Crc.h

Crc.cpp

CityHash.h

CityHash.cpp




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
ewine-project/UWB-localization发布时间:2022-08-16
下一篇:
taohan10200/IIM: PyTorch implementations of the paper: "Learning Independen ...发布时间:2022-08-16
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap