veloren/assets/voxygen/i18n/zh-Hans/hud/chat.ftl
Xiretza 06111612a3 voxygen: better translation of buff-death messages
This removes interpolation of translated strings, which is bad practice
because it simply doesn't work in many languages.

Translation files were updated using the following fish script. Some
resulting translations are truly terrible, but they always have been -
now it's just a lot more obvious.

```
function getbuff --argument langfile buff
    grep hud-outcome-$buff $langfile | cut -d= -f2- | string trim
end

set buffs burning bleeding curse crippled frozen mysterious

function replacebuffs --argument langfile entity
	set slug 'hud-chat-died_of_'$entity'_buff_msg'
    for buff in $buffs[-1..1]
        set bstr (getbuff $langfile $buff)
        or continue
        sed -i -e '/'$slug'/{p; s/[^=]* = \(.*\)/ .'$buff' = \1/; s/{ \$died_of_buff }/'(string replace / '\\/' $bstr)'/}' $langfile
    end
    sed -i -E 's/('$slug' \=).*/\1/' $langfile
end

function dofile --argument langfile
    sed -i -e s/buff_nonexistent/nonexistent_buff/ $langfile
    for entity in pvp npc nonexistent
        replacebuffs $langfile $entity
    end
    sed -i -e s/nonexistent_buff/buff_nonexistent/ $langfile
    sed -i -e /hud-outcome-/d $langfile
    sed -i -e '/#.*outcomes/d' $langfile
end

for langfile in assets/voxygen/i18n/*/hud/chat.ftl
    echo doing $langfile
    dofile $langfile
end
```
2023-08-29 17:09:48 +00:00

48 lines
2.5 KiB
Plaintext

hud-chat-all = 全部
hud-chat-chat_tab_hover_tooltip = 右键单击设置
hud-chat-online_msg = [{ $name }] 上线了.
hud-chat-offline_msg = [{ $name }] 下线了.
hud-chat-default_death_msg = [{ $name }]死了
hud-chat-environmental_kill_msg = [{ $name }]死在{ $environment }了
hud-chat-fall_kill_msg = [{ $name }]因摔落伤害而死亡
hud-chat-suicide_msg = [{ $name }]因自伤而死亡
hud-chat-died_of_pvp_buff_msg =
.burning = [{ $victim }] 死于:燃烧 由于 [{ $attacker }]
.bleeding = [{ $victim }] 死于:流血 由于 [{ $attacker }]
.curse = [{ $victim }] 死于:诅咒 由于 [{ $attacker }]
.crippled = [{ $victim }] 死于:残废 由于 [{ $attacker }]
.frozen = [{ $victim }] 死于:冻结 由于 [{ $attacker }]
.mysterious = [{ $victim }] 死于:神秘(不明) 由于 [{ $attacker }]
hud-chat-pvp_melee_kill_msg = [{ $attacker }]击败了[{ $victim }]
hud-chat-pvp_ranged_kill_msg = [{ $attacker }]射杀了[{ $victim }]
hud-chat-pvp_explosion_kill_msg = [{ $attacker }]炸死了[{ $victim }]
hud-chat-pvp_energy_kill_msg = [{ $attacker }]用魔法击杀了[{ $victim }]
hud-chat-pvp_other_kill_msg = [{ $attacker }]杀死了[{ $victim }]
hud-chat-died_of_buff_nonexistent_msg =
.burning = [{ $victim }] 死于:燃烧
.bleeding = [{ $victim }] 死于:流血
.curse = [{ $victim }] 死于:诅咒
.crippled = [{ $victim }] 死于:残废
.frozen = [{ $victim }] 死于:冻结
.mysterious = [{ $victim }] 死于:神秘(不明)
hud-chat-died_of_npc_buff_msg =
.burning = [{ $victim }] 死于:燃烧 由于 { $attacker }
.bleeding = [{ $victim }] 死于:流血 由于 { $attacker }
.curse = [{ $victim }] 死于:诅咒 由于 { $attacker }
.crippled = [{ $victim }] 死于:残废 由于 { $attacker }
.frozen = [{ $victim }] 死于:冻结 由于 { $attacker }
.mysterious = [{ $victim }] 死于:神秘(不明) 由于 { $attacker }
hud-chat-npc_melee_kill_msg = { $attacker }击杀了[{ $victim }]
hud-chat-npc_ranged_kill_msg = { $attacker }射杀了[{ $victim }]
hud-chat-npc_explosion_kill_msg = { $attacker }炸死了[{ $victim }]
hud-chat-npc_energy_kill_msg = { $attacker }用魔法击杀了[{ $victim }]
hud-chat-npc_other_kill_msg = { $attacker }击杀了[{ $victim }]
hud-chat-loot_fail = 你的背包已满!
hud-chat-you = 你
hud-loot-pickup-msg = {$actor} 捡起了 { $amount ->
[one] { $item }
*[other] {$amount} x {$item}
}
hud-chat-goodbye = 再见!
hud-chat-connection_lost = 连接已断开. { $time }秒内将被踢出.