Skip to content

Commit

Permalink
Add IP connect dialog title to translation files
Browse files Browse the repository at this point in the history
  • Loading branch information
exelix11 committed May 11, 2024
1 parent 128c462 commit 801ef3b
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 10 deletions.
1 change: 1 addition & 0 deletions Client/Core/StringTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ internal class NetworkScanTable

public string ConnectByIPLabel = "This is the local IP address of your console, it should look like 192.168.X.Y. You can find it in the console settings or in the SysDVR-Settings homebrew.\nIf you can't connect make sure you enabled TCP bridge mode on the console.";
public string ConnectByIPButton = "Connect";
public string IpConnectDialogTitle = "Enter console IP address";

// This is shown only on PC devices
public string FirewallLabel = "Remember to allow SysDVR client in your firewall or else it won't be able to detect consoles. Some networks may block device discovery, in that case you will have to connect by IP.";
Expand Down
2 changes: 1 addition & 1 deletion Client/GUI/NetworkScanView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ internal class NetworkScanView : View
string? autoConnect;
string autoConnectGuiText;

Gui.Popup ipEnterPopup = new("Enter console IP address");
Gui.Popup ipEnterPopup = new(Program.Strings.NetworkScan.IpConnectDialogTitle);
Gui.Popup incompatiblePopup = new(Program.Strings.General.PopupErrorTitle);
Gui.CenterGroup popupBtnCenter = new();
Gui.CenterGroup popupTbCenter = new();
Expand Down
3 changes: 2 additions & 1 deletion Client/Platform/Resources/resources/strings/Italian.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@
"title": "Ricerca di console...",
"manualConnectLabel": "La console non viene rilevata ?",
"manualConnectButton": "Connetti con indirizzo IP",
"connectByIPLabel": "Inserisci l'indirizzo IP locale della console, in genere è del tipo 192.168.X.Y. Lo trovi nelle impostazioni di rete della console.\nSe la connessione fallisce assicurati che la console sia in modalità 'TCP bridge' tramite l'homebrew SysDVR-Settings.",
"connectByIPLabel": "Inserisci l'indirizzo IP locale della console, in genere è del tipo 192.168.X.Y. Lo trovi nelle impostazioni di rete.\nSe la connessione fallisce assicurati che la console sia in modalità 'TCP bridge' tramite l'homebrew SysDVR-Settings.",
"connectByIPButton": "Connetti",
"ipConnectDialogTitle": "Inserisci l'indirizzo IP della console",
"firewallLabel": "Ricorda di sbloccare SysDVR client nel firewall altrimenti non sarà possibile rilevare console nella rete locale. Alcune reti potrebbero bloccare la ricerca dei dispositivi, in questi casi si deve usare la connessione manuale."
},
"settings": {
Expand Down
1 change: 1 addition & 0 deletions Client/Platform/Resources/resources/strings/english.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@
"manualConnectButton": "Use IP address",
"connectByIPLabel": "This is the local IP address of your console, it should look like 192.168.X.Y. You can find it in the console settings or in the SysDVR-Settings homebrew.\nIf you can't connect make sure you enabled TCP bridge mode on the console.",
"connectByIPButton": "Connect",
"ipConnectDialogTitle": "Enter console IP address",
"firewallLabel": "Remember to allow SysDVR client in your firewall or else it won't be able to detect consoles. Some networks may block device discovery, in that case you will have to connect by IP."
},
"settings": {
Expand Down
1 change: 1 addition & 0 deletions Client/Platform/Resources/resources/strings/french.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
"manualConnectButton": "Utiliser l'adresse IP",
"connectByIPLabel": "Il s'agit de l'adresse IP locale de votre console, cela devrait ressemble à 192.168.X.Y. Vous pouvez la trouver dans les paramètres de la console, ou dans l'homebrew SysDVR-Settings.\nSi vous ne pouvez pas vous connecter, vérifier que vous avez activé le mode de pont TCP sur la console.",
"connectByIPButton": "Connexion",
"ipConnectDialogTitle": "Entrer l' adresse IP",
"firewallLabel": "Penser à autoriser SysDVR dans votre pare-feu, ou il ne parviendra pas à détecter de console. Certains réseaux peuvent bloquer la découverte de nouveaux appareils, dans ce cas vous devrez vous connecter via l'adresse IP."
},
"settings": {
Expand Down
1 change: 1 addition & 0 deletions Client/Platform/Resources/resources/strings/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"manualConnectButton": "使用 IP 地址",
"connectByIPLabel": "这是主机的本地 IP 地址,应类似于 192.168.X.Y。您可以在控制台设置或 SysDVR-Settings 自制软件中找到它。n如果无法连接,请确保在控制台上启用了 TCP 桥接模式.",
"connectByIPButton": "连接",
"ipConnectDialogTitle": "输入Switch的IP地址",
"firewallLabel": "请记住在防火墙中允许 SysDVR 客户端,否则它将无法检测到控制台。某些网络可能会阻止设备发现,在这种情况下,您必须通过 IP 进行连接."
},
"settings": {
Expand Down
17 changes: 9 additions & 8 deletions Client/Platform/Resources/resources/strings/zh-TW.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,15 @@
"errorMessage": "錯誤:",
"placeholderSerial": "(串行隱藏)"
},
"networkScan": {
"title": "搜尋網路設備...",
"manualConnectLabel": "找不到您的裝置",
"manualConnectButton": "使用 IP 位址",
"connectByIPLabel": "這是主機的本機IP 位址,應類似於192.168.X.Y。您可以在控制台設定或SysDVR-Settings 自製軟體中找到它。n如果無法連接,請確保在控制台上啟用了TCP 橋接模式.",
"connectByIPButton": "連線",
"firewallLabel": "請記住在防火牆中允許 SysDVR 用戶端,否則它將無法偵測到控制台。某些網路可能會阻止裝置發現,在這種情況下,您必須透過 IP 進行連線."
},
"networkScan": {
"title": "搜尋網路設備...",
"manualConnectLabel": "找不到您的裝置",
"manualConnectButton": "使用 IP 位址",
"connectByIPLabel": "這是主機的本機IP 位址,應類似於192.168.X.Y。您可以在控制台設定或SysDVR-Settings 自製軟體中找到它。n如果無法連接,請確保在控制台上啟用了TCP 橋接模式.",
"connectByIPButton": "連線",
"ipConnectDialogTitle": "輸入Switch的IP地址",
"firewallLabel": "請記住在防火牆中允許 SysDVR 用戶端,否則它將無法偵測到控制台。某些網路可能會阻止裝置發現,在這種情況下,您必須透過 IP 進行連線."
},
"settings": {
"heading": "這些設定會自動套用至目前會話,但您可以儲存它們,以便它們變成持久性",
"saveButton": "儲存變更",
Expand Down
3 changes: 3 additions & 0 deletions SysDVRConfig/prunefonts.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# This script prunes fonts to only include the characters needed by the translation + the set of base ascii characters
# This reduces the nro size from 16MB to 8MB since the chinese fonts take a lot of space

# Run this script every time the language files are updated
# As of now it is not automated in the build process and the pruned fonts are manually committed to the repo

import json
import os
from fontTools.ttLib import TTFont
Expand Down

0 comments on commit 801ef3b

Please sign in to comment.