diff --git a/maker.py b/maker.py index 592a31e..0e90cbc 100644 --- a/maker.py +++ b/maker.py @@ -9,7 +9,7 @@ import subprocess from urllib import request, parse, error from time import strftime, localtime -target_version = "3.2.3" +target_version = "3.5.0" language = "zh" cwd = sys.path[0] src = f"{cwd + os.sep}src{os.sep}" diff --git a/maker.rb b/maker.rb old mode 100644 new mode 100755 index 0c1ecdf..75cc815 --- a/maker.rb +++ b/maker.rb @@ -12,9 +12,9 @@ Zip.setup do |c| c.force_entry_names_encoding = 'UTF-8' end -task = ARGV build_version = ENV["TRAVIS_BUILD_NUMBER"] log_url = ENV["TRAVIS_JOB_WEB_URL"] +target_version = "3.5.0" #language = "zh" pwd = Dir.pwd Dir.mkdir("dist") unless Dir.exist?("dist") @@ -30,7 +30,7 @@ def make_release() lrelease = `where lrelease`.split[0] else # "other" - quit() + exit(1) end translated_count = 0 total_count = 0 @@ -68,7 +68,7 @@ def send_progress(done, total) percentage = Rational(done*100,total).round(2).to_f info = "当前进度:\n#{done}/#{total}\n#{percentage}%\n".freeze puts info - telegram_push(info) + telegram_push(info) unless ARGV[0] == "debug" end def telegram_push(string) @@ -83,9 +83,8 @@ end def make_package(zipfile_name, build_version=nil, log_url=nil) File.open('dist/package.ini', 'w') do |file| - default_target_version = '3.2.3' package_info = [ - "Name = TeamSpeak 3 简体中文汉化包 目标软件版本: #{default_target_version}", + "Name = TeamSpeak 3 简体中文汉化包 目标软件版本: #{target_version}", "Type = Translation", "Author = 寂听 & EdisonJwa", "Version = travis-dev-build##{build_version}", @@ -104,5 +103,15 @@ def make_package(zipfile_name, build_version=nil, log_url=nil) end end +def debug() + case RUBY_PLATFORM + when /ix/i, /ux/i, /gnu/i, /bsd/i + FileUtils.cp Dir.glob("dist/*.qm"), "#{Dir.home}/.ts3client/translations", :verbose => true + else + exit + end +end + make_release() -make_package(package_name) +make_package(package_name) unless ARGV[0] == "debug" +debug() if ARGV[0] == "debug" diff --git a/src/lagos_zh.ts b/src/lagos_zh.ts index 12f7e69..47b1acd 100644 --- a/src/lagos_zh.ts +++ b/src/lagos_zh.ts @@ -17,12 +17,16 @@ For support please visit our <a href="http://forum.teamspeak.com">forum</a> - 如需技术支援,请访问 <a href="http://forum.teamspeak.com">官方论坛</a> (英语) + 如需技术支持,请访问 <a href="http://forum.teamspeak.com">官方论坛</a> (英语) + + + For support please visit our <a href="http://community.teamspeak.com">forum</a> + 如需技术支持,请访问 <a href="http://community.teamspeak.com">官方论坛</a> (英语) PLACEHOLDER Translators can add their names, copyright notice or links here. If the text stays "PLACEHOLDER", the label will be hidden. - <b>简体中文化 By:</b> <a href="https://github.com/jitingcn">寂听</a> & <a href="https://www.wevg.org/">EdisonJwa</a><br>如有任何疑问,欢迎到<a href="https://github.com/jitingcn/TS3-Translation_zh-CN">GitHub项目主页</a>提出建议或修改意见。<br>感谢所有提供帮助的同学 + <b>简体中文化 由:</b> <a href="https://github.com/jitingcn">寂听</a> & <a href="https://www.wevg.org/">EdisonJwa</a><br>如有任何疑问,欢迎到<a href="https://github.com/jitingcn/TS3-Translation_zh-CN">GitHub项目主页</a>提出建议或修改意见。<br>感谢所有提供帮助的同学 Copyright @@ -716,6 +720,10 @@ Inserting a modified copy instead. Connect on Startup 启动时连接此服务器 + + Enable myTeamSpeak features + 启用 myTeamSpeak 功能 + Sending your myTeamSpeak ID grants you access to features like Twitch integration and other services 发送 myTeamSpeak ID 获取 Twitch 集成和其他服务 @@ -872,11 +880,11 @@ servers will not be cleared. <p><strong>Push-To-Talk</strong> will only enable your microphone when your assigned hotkey is pressed and deactivate the microphone when your assigned hotkey is released. Click on the &quot;No Hotkey Assigned&quot; button if you are configuring Push-To-Talk for the first time.</p> - <p><strong>按键讲话</strong> 仅在按下指定的按键时启用麦克风,并在释放指定的热键时停用麦克风。如果您是第一次配置按键通话,请点击 &quot;未分配快捷键&quot; 按钮配置快捷键。</p> + <p><strong>按键通话</strong> 仅在按下指定的按键时启用麦克风,并在释放指定的热键时停用麦克风。如果您是第一次配置按键通话,请点击 &quot;未分配快捷键&quot; 按钮配置快捷键。</p> <p>With <strong>Continuous Transmission</strong> voice data is constantly transmitted. It is recommended to use Push-To-Talk or Voice Activation Detection instead to lower bandwidth usage.</p> - <p><strong>持续传输</strong> 保持语音数据不断传输。 建议使用 &quot;按键讲话&quot; 或 &quot;自动语音检测&quot; 来降低带宽使用率。</p> + <p><strong>持续传输</strong> 保持语音数据不断传输。 建议使用 &quot;按键通话&quot; 或 &quot;自动语音检测&quot; 来降低带宽使用率。</p> <p><strong>Voice Activation Detection</strong> automatically detects your voice the moment you begin speaking (as well as when you stop speaking) and will enable or disable your microphone accordingly. This facilitates hands-free communication through TeamSpeak.</p><p>This method is not recommended in noisy environments since background noise may mistakenly be detected and transmitted to other users.</p> @@ -4653,6 +4661,10 @@ You need to improve your identity security level.</span> Online since 在线时间 + + Badge Showcase + 徽章柜 + Client requested talk power at <strong>%1</strong>. 用户在 <strong>%1</strong> 请求语音权限. @@ -5164,6 +5176,10 @@ Current: %1 Visit the TeamSpeak webpage at www.TeamSpeak.com 访问 TeamSpeak 官网: www.TeamSpeak.com + + Visit TeamSpeak Community Forum + 访问 TeamSpeak 社区论坛 + &myTeamSpeak Account &myTeamSpeak账号 网站 @@ -7199,7 +7215,7 @@ Would you like to create an invitation instead? Automatically use best mode - 自动使用最佳模式 + 自动使用最合适的模式 Default @@ -12030,6 +12046,10 @@ Useful for servers with a lot of channels and clients. Capture Device: 音频输入设备: + + Activation + 激活 + Push-To-Talk 按键通话 @@ -12040,20 +12060,40 @@ Useful for servers with a lot of channels and clients. Voice Activation Detection - 语音感应激活 + 语音检测 + + + Voice Activity Detection + 语音检测 + + + Mode + 模式 <a href="jumpTo:Hotkeys"><span style=" text-decoration: none;">Set more hotkeys</span></a> <a href="jumpTo:Hotkeys"><span style=" text-decoration: none;">设置更多快捷键</span></a> + + Digital Signal Processing + 数字信号处理 + + + Typing attenuation + 抑制键盘声 + <p><strong>Echo Reduction</strong> reduces the volume of currently talking clients while you talk, and thereby reduces the echoing effect.</p> <p><strong>回声抑制</strong>在您说话时减少当前通话中的用户的音量,从而减少回音效果。</p> - &Echo reduction + &Echo reduction 回声抑制(&E) + + &Echo reduction (Ducking) + 回声抑制[闪避] (&E) + <p><strong>Echo Cancellation</strong> tries to subtract any audio that was played back from the captured signal, reducing the echoing effect at the cost of additional CPU cycles.</p> <p><strong>回声消除</strong>尝试从捕获的音频中移除播放的任何音频,以更高的的CPU使用率为代价降低回声影响。</p> @@ -12086,6 +12126,10 @@ Useful for servers with a lot of channels and clients. Echo &reduction reduces playback by: 回声抑制功能降低的音频回放音量(&R): + + Reduce playback volume by: + 降低回放音量: + dB 分贝(dB) @@ -13591,7 +13635,7 @@ Please contact the plugin author. Your requested nickname - 你请求使用的昵称 + 请求使用的昵称 Nickname, Hostname or IP of the TeamSpeak 3 server, @@ -13665,6 +13709,14 @@ Once used, the privilege key will become invalid. One-Time &Privilege Key: 一次性权限密钥(&P): + + Enable myTeamSpeak features + 启用 myTeamSpeak 功能 + + + Enables myTeamSpeak features likes badges, integeration of external accounts and more + 启用 myTeamSpeak 提供的功能,如徽章,外部账户连接等 + &Playback Profile: 输出配置(&P): @@ -13958,6 +14010,10 @@ Once used, the privilege key will become invalid. Always set clients 3D positions when available 始终在可用时安排用户的3D空间位置 + + Automatic voice volume leveling + 自动调节音量水平 + Own client plays mic clicks 在自己的客户端播放麦克风开关声 @@ -13966,6 +14022,10 @@ Once used, the privilege key will become invalid. Other clients play mic clicks 在其他用户的客户端播放麦克风开关声 + + Comfort noise + 舒适噪音 + securitySetupDialog