Certain string i18n are not sufficient for localization

Author: yfdyh000Created Jul 21, 2022Updated Aug 6, 2026

Prerequisites

  • Can you reproduce?
  • Are you running the latest version of SoftEtherVPN?

SoftEther version: 4.39 Component: Client Operating system: N/A Architecture: N/A

Description

The STATUS_2 通过代理服务器 %S 连接到 VPN Server "%S"... in https://github.com/SoftEtherVPN/SoftEtherVPN/blob/d854fd6baf5ef213560a398c2f863d75e484308e/src/bin/hamcore/strtable_cn.stb#L415, and the STATUS_2 通過代理伺服器 %S 連接到 VPN Server "%S"... in https://github.dev/SoftEtherVPN/SoftEtherVPN/blob/d854fd6baf5ef213560a398c2f863d75e484308e/src/bin/hamcore/strtable_tw.stb#L419 These translations is incorrect, they say through Proxy Server %S Connecting to VPN Server "%S"...

The STATUS_2 Connecting to VPN Server "%S" via Proxy Server %S... in https://github.dev/SoftEtherVPN/SoftEtherVPN/blob/d854fd6baf5ef213560a398c2f863d75e484308e/src/bin/hamcore/strtable_en.stb#L414. UniFormat(tmp, sizeof(tmp), _UU("STATUS_2"), in.TargetHostname, in.Hostname); Although the translations could be corrected, it revealed that the string did not allow the translator to adjust the parameter order.

Expected behavior: Named or numbered parameter entity.

Actual behavior: Depends on the position of the parameter in translation.

Steps to reproduce

  1. Enable proxy server in settings.
  2. Connect to a VPN server.

Source: SoftEtherVPN/SoftEtherVPN