Skip to content

Commit

Permalink
🌐 i18n for GT12
Browse files Browse the repository at this point in the history
  • Loading branch information
SydneyOwl committed Oct 20, 2024
1 parent c5a49fb commit 0a1f6f8
Show file tree
Hide file tree
Showing 23 changed files with 6,480 additions and 429 deletions.
17 changes: 13 additions & 4 deletions Constants/Gt12/CHAN_CHOICE.cs
Original file line number Diff line number Diff line change
@@ -1,22 +1,27 @@
using System.Collections.ObjectModel;
using SenhaixFreqWriter.Utils.Other;

namespace SenhaixFreqWriter.Constants.Gt12;

public class ChanChoice
{
public static ObservableCollection<string> Power = new()
{
"高", "中", "低"
Language.GetString("pwr_high"),
Language.GetString("pwr_mid"),
Language.GetString("pwr_low")
};

public static ObservableCollection<string> Bandwidth = new()
{
"宽", "窄"
Language.GetString("wide"),
Language.GetString("narrow")
};

public static ObservableCollection<string> Scanadd = new()
{
"删除", "添加"
Language.GetString("delete"),
Language.GetString("add")
};

public static ObservableCollection<string> SigSys = new()
Expand All @@ -31,7 +36,11 @@ public class ChanChoice

public static ObservableCollection<string> Pttid = new()
{
"无", "按下PTT", "松开PTT", "按下和松开PTT"
Language.GetString("none"),
Language.GetString("press_ptt"),
Language.GetString("release_ptt"),
Language.GetString("press_and_release_ptt"),
// "按下PTT", "松开PTT", "按下和松开PTT"
};

public static ObservableCollection<string> SigGrp = new()
Expand Down
59 changes: 39 additions & 20 deletions Constants/Gt12/FUNCTION_CHOICE.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.ObjectModel;
using SenhaixFreqWriter.Utils.Other;

namespace SenhaixFreqWriter.Constants.Gt12;

Expand All @@ -11,17 +12,18 @@ public class FunctionChoice

public static ObservableCollection<string> TxTimeout = new()
{
"关", "30s", "60s", "90s", "120s", "150s", "180s", "210s", "240s"
Language.GetString("off"), "30s", "60s", "90s", "120s", "150s", "180s", "210s", "240s"
};

public static ObservableCollection<string> SaveMode = new()
{
"关", "开"
Language.GetString("off"), Language.GetString("on")
};

public static ObservableCollection<string> Vox = new()
{
"高灵敏度", "中灵敏度", "低灵敏度"
Language.GetString("high_sensitivity"), Language.GetString("mid_sensitivity"), Language.GetString("low_sensitivity")
// "高灵敏度", "中灵敏度", "低灵敏度"
};

public static ObservableCollection<string> VoxDelay = new()
Expand All @@ -32,7 +34,7 @@ public class FunctionChoice

public static ObservableCollection<string> DoubleWait = new()
{
"关", "开"
Language.GetString("off"), Language.GetString("on")
};

public static ObservableCollection<string> Tone = new()
Expand All @@ -42,57 +44,63 @@ public class FunctionChoice

public static ObservableCollection<string> SideTone = new()
{
"关", "开"
Language.GetString("off"), Language.GetString("on")
};

public static ObservableCollection<string> TailClear = new()
{
"关", "开"
Language.GetString("off"), Language.GetString("on")
};

public static ObservableCollection<string> PowerOnDisplay = new()
{
"LOGO", "电池电压", "预设信息"
"LOGO", Language.GetString("bat_volt"), Language.GetString("default_msg"),
// "LOGO", "电池电压", "预设信息"
};

public static ObservableCollection<string> Beep = new()
{
"关", "BEEP 音", "语音", "全部"
Language.GetString("off"), Language.GetString("beep"), Language.GetString("voice"), Language.GetString("all"),
// "关", "BEEP 音", "语音", "全部"
};

public static ObservableCollection<string> Roger = new()
{
"关", "开"
Language.GetString("off"), Language.GetString("on")
};

public static ObservableCollection<string> MicGain = new()
{
"低增益", "中增益", "高增益"
Language.GetString("low_gain"), Language.GetString("mid_gain"), Language.GetString("high_gain")
// "低增益", "中增益", "高增益"
};

public static ObservableCollection<string> ScanMode = new()
{
"时间扫描", "载波扫描", "搜索扫描"
Language.GetString("time_scan"), Language.GetString("carrier_scan"), Language.GetString("search_scan")
// "时间扫描", "载波扫描", "搜索扫描"
};

public static ObservableCollection<string> Sos = new()
{
"现场报警", "发射报警音", "发射报警码"
Language.GetString("live_sos"), Language.GetString("send_sos_voice"), Language.GetString("send_sos_code")
// "现场报警", "发射报警音", "发射报警码"
};

public static ObservableCollection<string> KeyLock = new()
{
"关", "开"
Language.GetString("off"), Language.GetString("on")
};

public static ObservableCollection<string> Fm = new()
{
"允许", "禁止"
Language.GetString("allow"), Language.GetString("forbid")
// "允许", "禁止"
};

public static ObservableCollection<string> AutoLock = new()
{
"关", "10 s", "30 s", "1 min", "5 min", "10 min", "30 min"
Language.GetString("off"), "10 s", "30 s", "1 min", "5 min", "10 min", "30 min"
};

public static ObservableCollection<string> AutoQuit = new()
Expand All @@ -103,7 +111,7 @@ public class FunctionChoice

public static ObservableCollection<string> BackgroundLightTime = new()
{
"常开", "5 s", "10 s", "15 s", "20 s", "30 s", "1 min", "2 min", "3 min"
Language.GetString("normal_open"), "5 s", "10 s", "15 s", "20 s", "30 s", "1 min", "2 min", "3 min"
};

public static ObservableCollection<string> Bright = new()
Expand All @@ -119,17 +127,28 @@ public class FunctionChoice

public static ObservableCollection<string> DisplayType = new()
{
"信道名称", "频率", "信道号"
Language.GetString("chan_name"),Language.GetString("freq"),Language.GetString("chan_num")
// "信道名称", "频率", "信道号"
};

public static ObservableCollection<string> WorkMode = new()
{
"频率模式", "信道模式"
Language.GetString("freq_mode"), Language.GetString("chan_mode")
// "频率模式", "信道模式"
};

public static ObservableCollection<string> KeyFunc = new()
{
"收音机", "功率切换", "监听", "扫频", "报警", "天气预报", "扫描", "声控开关", "远程扫描亚音"
Language.GetString("fm"),
Language.GetString("switch_pwr"),
Language.GetString("listen"),
Language.GetString("scan_freq"),
Language.GetString("sos"),
Language.GetString("weather"),
Language.GetString("scan"),
Language.GetString("vox"),
Language.GetString("remote_tone_scan"),
// "收音机", "功率切换", "监听", "扫频", "报警", "天气预报", "扫描", "声控开关", "远程扫描亚音"
};

public static ObservableCollection<string> RptTailClear = new()
Expand All @@ -144,7 +163,7 @@ public class FunctionChoice

public static ObservableCollection<string> VoxSwitch = new()
{
"关", "开"
Language.GetString("off"), Language.GetString("on")
};

public static ObservableCollection<string> PowerUpDisplayTime = new()
Expand Down
19 changes: 14 additions & 5 deletions Constants/Gt12/VFO_CHOICE.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.ObjectModel;
using SenhaixFreqWriter.Utils.Other;

namespace SenhaixFreqWriter.Constants.Gt12;

Expand Down Expand Up @@ -37,12 +38,12 @@ public class VfoChoice

public static ObservableCollection<string> BusyLock = new()
{
"关", "开"
Language.GetString("off"), Language.GetString("on")
};

public static ObservableCollection<string> SigSys = new()
{
"无", "SDC", "DTMF"
Language.GetString("none"), "SDC", "DTMF"
};

public static ObservableCollection<string> Direction = new()
Expand All @@ -63,12 +64,16 @@ public class VfoChoice

public static ObservableCollection<string> Bandwidth = new()
{
"宽", "窄"
Language.GetString("wide"),
Language.GetString("narrow")
};

public static ObservableCollection<string> Power = new()
{
"高", "中", "低"
Language.GetString("pwr_high"),
Language.GetString("pwr_mid"),
Language.GetString("pwr_low")
// "高", "中", "低"
};

public static ObservableCollection<string> Sqmode = new()
Expand All @@ -78,6 +83,10 @@ public class VfoChoice

public static ObservableCollection<string> Pttid = new()
{
"无", "发射开始", "发射结束", "两者"
Language.GetString("none"),
Language.GetString("tx_start"),
Language.GetString("tx_end"),
Language.GetString("both"),
// "无", "发射开始", "发射结束", "两者"
};
}
24 changes: 19 additions & 5 deletions Constants/Shx8800Pro/CHAN_CHOICE.cs
Original file line number Diff line number Diff line change
@@ -1,32 +1,46 @@
using System.Collections.ObjectModel;
using SenhaixFreqWriter.Utils.Other;

namespace SenhaixFreqWriter.Constants.Shx8800Pro;

public class ChanChoice
{
public static ObservableCollection<string> Power = new()
{
"高", "中", "低"
// "高", "中", "低"
Language.GetString("pwr_high"),
Language.GetString("pwr_mid"),
Language.GetString("pwr_low")
};

public static ObservableCollection<string> Bandwidth = new()
{
"宽", "窄"
// "宽", "窄"
Language.GetString("wide"),
Language.GetString("narrow")
};

public static ObservableCollection<string> Scanadd = new()
{
"删除", "添加"
// "删除", "添加"
Language.GetString("delete"),
Language.GetString("add")
};

public static ObservableCollection<string> BusyLock = new()
{
"关", "开"
// "关", "开"
Language.GetString("off"),
Language.GetString("on")
};

public static ObservableCollection<string> Pttid = new()
{
"无", "按下PTT", "松开PTT", "按下和松开PTT"
// "无", "按下PTT", "松开PTT", "按下和松开PTT"
Language.GetString("none"),
Language.GetString("press_ptt"),
Language.GetString("release_ptt"),
Language.GetString("press_and_release_ptt"),
};

public static ObservableCollection<string> SigGrp = new()
Expand Down
7 changes: 6 additions & 1 deletion Constants/Shx8800Pro/DTMF_CHOICE.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.ObjectModel;
using SenhaixFreqWriter.Utils.Other;

namespace SenhaixFreqWriter.Constants.Shx8800Pro;

Expand All @@ -11,6 +12,10 @@ public class DtmfChoice

public static ObservableCollection<string> SendId = new()
{
"关", "按下PPT", "松开PPT", "两者"
// "关", "按下PPT", "松开PPT", "两者"
Language.GetString("off"),
Language.GetString("press_ptt"),
Language.GetString("release_ptt"),
Language.GetString("both"),
};
}
Loading

0 comments on commit 0a1f6f8

Please sign in to comment.