今天我发现可以使用Qt分发的lconvert工具来完成,并且已经存在于我的系统中。所以我只需执行以下命令:lconvert -locations relative <file>.po -o <file>.ts 它还支持反向转换:lconvert <file>.ts -o <file>.po