Page 1 of 1

[Bug] Translation Tool doesn't save new lines

Posted: Thu Aug 29, 2019 7:36 pm
by BigMike
Translations wich contain multiple lines are saved in one single line in translation tool.

For example in the translation for the new sanitize plugin, string id snt.sanitize.warning.
The text contains a list with various lines. After closing the translation window, the new lines are removed.

Re: [Bug] Translation Tool doesn't save new lines

Posted: Thu Aug 29, 2019 9:04 pm
by Daniel - PDF-XChange
Hello Bigmike,

Thank you for the report here, I have let the Dev team know so they can look into this as soon as possible.

Kind regards,

Re: [Bug] Translation Tool doesn't save new lines

Posted: Sat Aug 31, 2019 9:58 am
by siSINka
After saving in Localizer (do not translate this string!) open SanitizePlugin.xx-XX.xcl file in any text editor (Notepad++, maybe Notepad) and copy there exactly this:

Code: Select all

<text id="sanitize.warning">Sanitize Document will remove hidden data and metadata so any sensitive information will not be published with your PDF. The operation will remove:&#x0A; • Metadata&#x0A; • Invisble text and images&#x0A; • Overlapping objects&#x0A; • Form and comment datas&#x0A; • Embedded content and files&#x0A; • Hidden layers&#x0A; • Hidden data and comments&#x0A; • Unreferenced data</text>
and then translate only texts.

Tested in Czech version, OK

Re: [Bug] Translation Tool doesn't save new lines

Posted: Sat Aug 31, 2019 10:23 am
by BigMike
Actually, if I translate the string and then afterwards add "normal" newlines in Notepad++, the newlines are shown in Localization tool. But editing the localization file with different tools is an ugly workaround.

Re: [Bug] Translation Tool doesn't save new lines

Posted: Sat Aug 31, 2019 10:31 am
by siSINka
See in PDF-X Change Editor:
sanitize.png
Czech "SanitizePlugin.cs-CZ.xcl" file:

Code: Select all

<?xml version="1.0" encoding="utf-8" ?>
	<Localization>
		<Version date="20190820173142">2.00.00</Version>		
		<Author>siSINka</Author>
		<Copyright>...</Copyright>		
		<Product id="PDFXEditor"/>
		<Language eName="Czech (Czech Republic)" lName="čeština" code="cs-CZ" R2L="false"/>
		<Module name="SanitizePlugin" namespace="snt" version="5.5.312"/>
		<Strings>
			<text id="sanitize.warning">Příkaz Sanitace dokumentu odstraní skrytá data a metadata, takže žádné citlivé údaje nebudou ve Vašem PDF dokumentu uloženy. Tato operace odstraní:&#x0A; • Metadata&#x0A; • Neviditelný text a obrázky&#x0A; • Překrývající se objekty&#x0A; • Data formulářů a komentáře&#x0A; • Vložený obsah a soubory&#x0A; • Skryté vrstvy&#x0A; • Skrytá data a komentáře&#x0A; • Nereferenční data</text>
      <text id="opt.donotshow">Tuto zprávu již nezobrazovat</text>
      <text id="rbar.sanitize">Sanitace dokumentu</text>
      <text id="rbar.sanitize.tip">Odstraní citlivé informace jako jsou metadata, formulářová data, neviditelný obsah...</text>
      <text id="saveDlg.caption">Uložit sanitovaný dokument</text>
      <text id="sanitizeDoc.progr">Probíhá sanitace dokumentu...</text>
      <text id="sanitizeSave.progr">Ukládání sanitovaného dokumentu...</text>
      <text id="sanitizePage.progr">Zpracování strany %1</text>
      <text id="obscured.content.chk">Nalezen zakrytý nebo neviditelný obsah</text>
      <text id="layers.chk">Stránka obsahuje vrstvy</text>
      <text id="hiddenText.chk">Stránka obsahuje skrytý text</text>
      <text id="overlapping.obj.chk">Stránka obsahuje překrývající se objekty</text>
    </Strings>
	</Localization>
SanitizePlugin.cs-CZ.7z

Re: [Bug] Translation Tool doesn't save new lines

Posted: Sat Aug 31, 2019 10:36 am
by siSINka
I did not use PDF Localizer to translate this module...
I found the right structure of this language file in "Localize.dat" (this is zip.archive), in file "Modules\SanitizePlugin_str.xml"

Re: [Bug] Translation Tool doesn't save new lines

Posted: Mon Sep 02, 2019 7:47 am
by Will - Tracker Supp
Thanks guys - The dev. team are aware and working toward a fix.

Cheers,

Re: [Bug] Translation Tool doesn't save new lines

Posted: Tue Jul 16, 2024 7:55 am
by james89
It seems that the translation tool is currently saving translations with multiple lines as a single line. For instance, the string ID snt.sanitize.warning in the new sanitize plugin originally contains a multi-line list. However, when you close the translation window, the new lines are removed.

Re: [Bug] Translation Tool doesn't save new lines

Posted: Tue Jul 16, 2024 11:00 am
by Stefan - PDF-XChange
Hello james89,

Were there any special symbols? Maybe there were initially slashes for new lines that when you did the translation are not there?
Have you made sure you have downloaded the latest localization tool and which language are you looking at translation into?

Kind regards,
Stefan