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

infiniteflight/infiniteflight-localization: This repository is for translating t ...

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

开源软件名称(OpenSource Name):

infiniteflight/infiniteflight-localization

开源软件地址(OpenSource Url):

https://github.com/infiniteflight/infiniteflight-localization

开源编程语言(OpenSource Language):


开源软件介绍(OpenSource Introduction):

Infinite Flight Localization

This repository is for translating the Infinite Flight app into other languages. Contributors must sign the CLA and contribute via Pull Requests.

Supported languages

The base language of the app is English. Infinite Flight will provide all the base strings inside the strings/AppResources.resx file. We have added additional translations for:

  • Spanish
  • French

If you are interested in contributing a language, please create an Issue first so you can be assigned by Infinite Flight staff to make sure this isn't already being contributed.

Adding support for a new language

To begin translating Infinite Flight into a new language, create a new file called strings/AppResources.[code].resx. This code should be the two-digit ISO-639-1 language code, which you can reference from here.

Once you have edited this, you can add translations using the same code inside ServerMessages and Tips.

How to edit

Localization string files are in resx format, which is a version of XML designated for localizing app strings. This means you can edit these files inside a text editor or using a specialist editor.

Recommended: ResxResourceManager

This is only supported on Windows

ResxResourceManager allows you to easily see all missing translations from the base English version. You can show the original English version in a column for easy editing, or import/export to a spreadsheet.

Download: https://github.com/dotnet/ResXResourceManager/releases

ResX Editor for VSCode

Download: https://marketplace.visualstudio.com/items?itemName=DominicVonk.vscode-resx-editor

Edit the source

Each .resx file is an XML file and can be edited inside a text editor.

ServerMessages and Tips are json files and can be edited in any text editor. VSCode is an example of this.

Formatting and Verbiage

  • Use commonly known aviation terms where possible. Infinite Flight aims to be accessible without requiring technical language to be learned.

  • Text strings with values such as {0} and {1} represent variables which are replaced at runtime in the simulator. The comments should explain what these variables represent, but please ask if you are unsure.

  • Translated text should be equal or shorter in length to the English equivalent whenever possible to ensure it will fit in the UI. Please state in the Pull Request if this isn't possible.

  • For ServerMessages, it is important to state the following in the welcomeMessages:

    Communications with ATC and other pilots is done in English (the official language of aviation)

Getting started with GitHub

If you are new to GitHub and don't know where to start, go here. You should then create a GitHub account if you haven't already, and fork this repository to contribute.

Pull Request Reviews

Before a new language is added into Infinite Flight, the PR should be reviewed by another speaker of this language to ensure the content is correct.




鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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