Столкнулся со странным поведением Традоса 2009 (SP3 и SP1) при переводе ресурсов игры, насыщенных специфическими тегами, командами скриптов и т.д. Файл с ресурсами открывается простым переименовыванием в txt, собственно, именно в таком формате мы и планировали вести перевод, отфильтровав и оставив непереведёнными технические строки.
Пример текста (всего около 1,8Мб)
- Код: Выделить всё
function Dialogue_vignette_loremaster()
{
//Header
$DLG_header_parts_count = 53;
$DLG_header_cond_count = 0;
$DLG_header_def_link = 100;
$DLG_header_def_speaker = "Feng";
$DLG_header_def_portrait = "feng";
//Part 100
$DLG_npc_text_100 = "In a world on its way downhill, the future lies in preserving the pre-war knowledge. An increasing number of people see their salvation in the ashes of the past and the market is becoming saturated with icons and objects from the old empire, most without any real value. Loremasters, the self proclaimed experts on the antiquity, are at the front line of this trade, digging through ruins, copying ancient manuscripts, often without understanding them, and appraising anything old, always on the lookout for something of real worth.<nl><nl>As a child, you loved listening to stories about the old days, filled with gods fighting alongside men, power-wielding magi - more demigods than human, and monsters conjured by the cowardly Qantari. So when an opportunity presented itself, you signed up as an apprentice to a local loremaster named Feng. <nl><nl>Feng came to Teron with a caravan two decades ago. Nobody knew where he came from or why, but he had the bitterness of a man soured by the memory of the life he lost. He was well versed in languages and the antiquities, but the town already had a loremaster. Fortunately for Feng, the loremaster fell sick and passed away, despite the best efforts of the local alchemist who was quite puzzled by the symptoms. Feng became the new loremaster and even earned the favor of Lord Antidas after discovering several Daratan relics.";
$DLG_speaker_100 = "none";
$DLG_portrait_100 = "none";
$DLG_part_script_100 = "useCameraBookmark(NPC_Feng_cam_01); aod.pc_background_loremaster = true; aod.global_teron_vignette = true; aod.pc_member_none = true; aod.npc_feng_met = true; aod.exploration_locationSign_Feng = true; ";
$DLG_answ_count_100 = 1;
$DLG_answ_text_100_0 = "Talk to Feng. ";
$DLG_answ_defLink_100_0 = "66";
$DLG_answ_onAppear_100_0 = "";
$DLG_answ_onClickCount_100_0 = 0;
И так далее. Я был уверен, что такой комбайн, как Традос более чем способен справиться с таким текстом. Однако, после форматирования в .sdlxliff Традос видит всего 10 сегментов, перенося в переведённое те части, что идут после служебного тега <nl><nl>. Ерунда какая-то. Вот скриншот
Ладно. Я залез в свойства импортируемых файлов и выставил символы, которыми должен начинаться и заканчиваться переводимый текст сегментов. После форматирования файла в свой формат, Традос нашёл почти все строки, а не десять, но выдал для перевода что-то ещё более сумасшедшее. А именно: все, что в переводимом сегменте должно идти после первой запятой(!), переносится в переведённое(!), после второй - вообще игнорируется. Строки без запятых Традос исключил, хотя в заданной фильтрации запятые никак не фигурировали...
Вот скриншот.
Как понимаете, любое предварительное изменение исходного текста - не вариант, т.к. собьёт хитрую систему внутренних скриптовых команд, там важная каждая кавычка и запятая.
Deja Vu, кстати, воспринимает текст без проблем со всеми его тэгами и запятыми, но функционала Deja Vu недостаточно.
Я новичок в этом классе программ... может, посоветуете другую, способную не трогать все эти теги, а работать только с текстом?