Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

langfiles: Update Steam Deck Compatibility localisation strings #887

Merged
merged 16 commits into from
Aug 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
21 changes: 20 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,23 @@ To update a translation, open the translation file and start updating the string

To start writing a new translation, it is recommended to use `english.txt` as your base as this is the most up-to-date translation available. Duplicate this file and start translating the strings. As there are hundreds of strings you don't have to update all of them, but **don't** remove the strings you cannot or have not translated. If you run into this, just leave the string untranslated.

In future, you are always welcome to come back and improve your translation. More and more strings will be added as SteamTinkerLaunch grows, and translations can quickly become outdated. Don't be afraid to keep an eye on the repository and submit PRs to update the translation strings, even if it's only one or two lines each time.
In future, you are always welcome to come back and improve your translation. More and more strings will be added as SteamTinkerLaunch grows, and translations can quickly become outdated. Don't be afraid to keep an eye on the repository and submit PRs to update the translation strings, even if it's only one or two lines each time.

### Using Steam Client Strings
Some strings in use by SteamTinkerLaunch are taken from other sources, including the Steam Client. SteamDatabase is a useful resource that contains frequently-updated information extracted from the Steam Client itself including [localisation information](https://github.com/SteamDatabase/SteamTracking/tree/master/ClientExtracted/steamui/localization). By checking the `shared_<langname>.json` files you can see the strings in use by the Steam Client.

These JSON files use a different format to what is used by SteamTinkerLaunch's language files, so to bridge the gap, a Python snippet is provided below to convert strings copied and pasted from the SteamDatabase JSON files mentioned above, to the format used by SteamTinkerLaunch's language files. Simply paste the strings into a file called `strings.txt` in the same directory as the Python script file, and it will print out the converted strings. These can then be used to overwrite any existing strings with these keys.

```python
# Might be more appropriate to rewrite this in Bash at some point, huh?
with open('strings.txt') as instrings:
for s in instrings:
keyval_split = s.split(':')

string_key = keyval_split[0].strip()
string_val = keyval_split[1].strip()[:-1]

formatted_string_key = string_key.replace('"', '').upper()

print(f'{formatted_string_key}={string_val}')
```
42 changes: 21 additions & 21 deletions lang/chinese.txt
Original file line number Diff line number Diff line change
Expand Up @@ -966,39 +966,39 @@ STEAMDECKCOMPAT_PLAYABLE="可游玩"
STEAMDECKCOMPAT_UNSUPPORTED="不支持"
STEAMDECKCOMPAT_UNKNOWN="不明"
STEAMDECKVERIFIED_TESTRESULT_DEFAULTCONTROLLERCONFIGFULLYFUNCTIONAL="在使用默认的控制器配置时,所有的功能都可以访问。"
STEAMDECKVERIFIED_TESTRESULT_CONTROLLERGLYPHSMATCHDECKDEVICE="这个游戏显示了 Steam Deck 的控制器图标"
STEAMDECKVERIFIED_TESTRESULT_CONTROLLERGLYPHSMATCHDECKDEVICE="这个游戏显示了 Steam Deck 的控制器图标"
STEAMDECKVERIFIED_TESTRESULT_DEFAULTCONFIGURATIONISPERFORMANT="这款游戏的默认图形配置在 Steam Deck 上表现良好。"
STEAMDECKVERIFIED_TESTRESULT_INTERFACETEXTISLEGIBLE="游戏中的UI文字在 Steam Deck 上清晰可辨"
STEAMDECKVERIFIED_TESTRESULT_INTERFACETEXTISLEGIBLE="游戏中的UI文字在 Steam Deck 上清晰可辨"
STEAMDECKVERIFIED_TESTRESULT_DEFAULTCONTROLLERCONFIGNOTFULLYFUNCTIONAL="在使用默认的控制器配置时,一些功能无法访问,需要使用触摸屏或虚拟键盘,或社区配置。"
STEAMDECKVERIFIED_TESTRESULT_CONTROLLERGLYPHSDONOTMATCHDECKDEVICE="这个游戏有时会显示鼠标、键盘或非 Steam-Deck 控制器的图标"
STEAMDECKVERIFIED_TESTRESULT_CONTROLLERGLYPHSDONOTMATCHDECKDEVICE="这个游戏有时会显示鼠标、键盘或非 Steam-Deck 控制器的图标"
STEAMDECKVERIFIED_TESTRESULT_DEFAULTCONFIGURATIONISNOTPERFORMANT="这款游戏需要手动配置图形设置,以便在 Steam Deck 上表现良好。"
STEAMDECKVERIFIED_TESTRESULT_TEXTINPUTDOESNOTAUTOMATICALLYINVOKESKEYBOARD="输入一些文字需要手动调用屏幕键盘"
STEAMDECKVERIFIED_TESTRESULT_INTERFACETEXTISNOTLEGIBLE="一些游戏中的文字很小,可能难以阅读"
STEAMDECKVERIFIED_TESTRESULT_TEXTINPUTDOESNOTAUTOMATICALLYINVOKESKEYBOARD="输入一些文字需要手动调用屏幕键盘"
STEAMDECKVERIFIED_TESTRESULT_INTERFACETEXTISNOTLEGIBLE="一些游戏中的文字很小,可能难以阅读"
STEAMDECKVERIFIED_TESTRESULT_NATIVERESOLUTIONNOTSUPPORTED="这款游戏不支持 Steam Deck 的原始显示分辨率,可能会出现性能下降的情况。"
STEAMDECKVERIFIED_TESTRESULT_NATIVERESOLUTIONNOTDEFAULT="这款游戏支持 Steam Deck 的原生显示分辨率,但并不默认设置,可能需要你手动配置显示分辨率。"
STEAMDECKVERIFIED_TESTRESULT_DISPLAYOUTPUTHASNONBLOCKINGISSUES="这款游戏在 Steam Deck 上有轻微的图形/显示问题"
STEAMDECKVERIFIED_TESTRESULT_AUDIOOUTPUTHASNONBLOCKINGISSUES="这款游戏在 Steam Deck 上有轻微的音频问题"
STEAMDECKVERIFIED_TESTRESULT_DEVICECOMPATIBILITYWARNINGSSHOWN="这个游戏在 Steam Deck 上运行时显示兼容性警告,但运行正常"
STEAMDECKVERIFIED_TESTRESULT_LAUNCHERINTERACTIONISSUES="这个游戏的启动器/设置工具可能需要触摸屏或虚拟键盘,或者有难以阅读的文本"
STEAMDECKVERIFIED_TESTRESULT_VIDEOPLAYBACKHASNONBLOCKINGISSUES="游戏中的一些电影内容可能丢失"
STEAMDECKVERIFIED_TESTRESULT_DISPLAYOUTPUTHASNONBLOCKINGISSUES="这款游戏在 Steam Deck 上有轻微的图形/显示问题"
STEAMDECKVERIFIED_TESTRESULT_AUDIOOUTPUTHASNONBLOCKINGISSUES="这款游戏在 Steam Deck 上有轻微的音频问题"
STEAMDECKVERIFIED_TESTRESULT_DEVICECOMPATIBILITYWARNINGSSHOWN="这个游戏在 Steam Deck 上运行时显示兼容性警告,但运行正常"
STEAMDECKVERIFIED_TESTRESULT_LAUNCHERINTERACTIONISSUES="这个游戏的启动器/设置工具可能需要触摸屏或虚拟键盘,或者有难以阅读的文本"
STEAMDECKVERIFIED_TESTRESULT_VIDEOPLAYBACKHASNONBLOCKINGISSUES="游戏中的一些电影内容可能丢失"
STEAMDECKVERIFIED_TESTRESULT_GAMEORLAUNCHERDOESNTEXITCLEANLY="这款游戏不能干净地退出,可能需要你通过 Steam 覆盖层手动退出。"
STEAMDECKVERIFIED_TESTRESULT_AUXFUNCTIONALITYNOTACCESSIBLE_MAPEDITOR="一些辅助功能在 Steam Deck 上无法访问:地图编辑器"
STEAMDECKVERIFIED_TESTRESULT_MULTIWINDOWAPPAUTOMATICALLYSETSFOCUS="这个游戏使用了多个窗口,可能需要你通过 Steam 覆盖层手动调焦相应的窗口"
STEAMDECKVERIFIED_TESTRESULT_DISPLAYOUTPUTNOTCORRECTLYSCALED="This game is incorrectly scaled on Steam Deck and may require you to configure the display resolution manually"
STEAMDECKVERIFIED_TESTRESULT_RESUMEFROMSLEEPNOTFUNCTIONAL="This game may experience temporary issues after sleeping on Steam Deck"
STEAMDECKVERIFIED_TESTRESULT_GAMEPADNOTENABLEDBYDEFAULT="This game requires manually enabling controller support using in-game settings"
STEAMDECKVERIFIED_TESTRESULT_AUXFUNCTIONALITYNOTACCESSIBLE_MAPEDITOR="一些辅助功能在 Steam Deck 上无法访问:地图编辑器"
STEAMDECKVERIFIED_TESTRESULT_MULTIWINDOWAPPAUTOMATICALLYSETSFOCUS="这个游戏使用了多个窗口,可能需要你通过 Steam 覆盖层手动调焦相应的窗口"
STEAMDECKVERIFIED_TESTRESULT_DISPLAYOUTPUTNOTCORRECTLYSCALED="This game is incorrectly scaled on Steam Deck and may require you to configure the display resolution manually."
STEAMDECKVERIFIED_TESTRESULT_RESUMEFROMSLEEPNOTFUNCTIONAL="This game may experience temporary issues after sleeping on Steam Deck."
STEAMDECKVERIFIED_TESTRESULT_GAMEPADNOTENABLEDBYDEFAULT="This game requires manually enabling controller support using in-game settings."
STEAMDECKVERIFIED_TESTRESULT_STEAMOSDOESNOTSUPPORT="Valve 公司仍努力在 Steam Deck 上增加对这款游戏的支持。"
STEAMDECKVERIFIED_TESTRESULT_STEAMOSDOESNOTSUPPORT_VR="Steam Deck 不支持 VR 游戏"
STEAMDECKVERIFIED_TESTRESULT_STEAMOSDOESNOTSUPPORT_VR="Steam Deck 不支持 VR 游戏"
STEAMDECKVERIFIED_TESTRESULT_STEAMOSDOESNOTSUPPORT_SOFTWARE="这是一个软件,在 Steam Deck 上不支持。"
STEAMDECKVERIFIED_TESTRESULT_STEAMOSDOESNOTSUPPORT_RETIRED="这款游戏已经退役或不再处于可玩状态,不受 Steam Deck 支持。"
STEAMDECKVERIFIED_TESTRESULT_UNSUPPORTEDANTICHEAT_OTHER="由于使用了不支持的反作弊器,该游戏在 Steam Deck 上不支持。"
STEAMDECKVERIFIED_TESTRESULT_UNSUPPORTEDANTICHEATCONFIGURATION="这款游戏的反作弊功能没有被配置为支持 Steam Deck"
STEAMDECKVERIFIED_TESTRESULT_UNSUPPORTEDGRAPHICSPERFORMANCE="这款游戏的图形设置无法配置为在 Steam Deck 上运行良好。"
STEAMDECKVERIFIED_TESTRESULT_FIRSTTIMESETUPREQUIRESACTIVEINTERNETCONNECTION="这个游戏的首次设置需要一个正常的互联网连接"
STEAMDECKVERIFIED_TESTRESULT_SINGLEPLAYERGAMEPLAYREQUIRESACTIVEINTERNETCONNECTION="单人游戏需要一个正常的互联网连接"
STEAMDECKVERIFIED_TESTRESULT_CROSSPLATFORMCLOUDSAVESNOTSUPPORTED="本游戏不支持跨平台保存游戏"
STEAMDECKVERIFIED_TESTRESULT_EXTERNALCONTROLLERSNOTSUPPORTEDPRIMARYPLAYER="这款游戏并不默认在 Steam Deck 上使用外部蓝牙/USB 控制器,可能需要通过快速访问菜单手动切换活动控制器"
STEAMDECKVERIFIED_TESTRESULT_EXTERNALCONTROLLERSNOTSUPPORTEDLOCALMULTIPLAYER="这款游戏不支持 Steam Deck 上的外部蓝牙/USB 控制器进行本地多人游戏"
STEAMDECKVERIFIED_TESTRESULT_FIRSTTIMESETUPREQUIRESACTIVEINTERNETCONNECTION="这个游戏的首次设置需要一个正常的互联网连接"
STEAMDECKVERIFIED_TESTRESULT_SINGLEPLAYERGAMEPLAYREQUIRESACTIVEINTERNETCONNECTION="单人游戏需要一个正常的互联网连接"
STEAMDECKVERIFIED_TESTRESULT_CROSSPLATFORMCLOUDSAVESNOTSUPPORTED="本游戏不支持跨平台保存游戏"
STEAMDECKVERIFIED_TESTRESULT_EXTERNALCONTROLLERSNOTSUPPORTEDPRIMARYPLAYER="这款游戏并不默认在 Steam Deck 上使用外部蓝牙/USB 控制器,可能需要通过快速访问菜单手动切换活动控制器"
STEAMDECKVERIFIED_TESTRESULT_EXTERNALCONTROLLERSNOTSUPPORTEDLOCALMULTIPLAYER="这款游戏不支持 Steam Deck 上的外部蓝牙/USB 控制器进行本地多人游戏"
STEAMDECKVERIFIED_TESTRESULT_SIMULTANEOUSINPUTGYROTRACKPADFRIENDLY="这款游戏支持在鼠标模式下使用陀螺仪/触控板进行视角控制,并使用游戏板控制移动。"
GUI_SDCR="Steam Deck 兼容性"
STEAMDECKVERIFIED_CUSTOMRESULT_DEVPOST="开发商提供了有关本游戏的Steam Deck支持的额外信息: XXX"
Expand Down
Loading