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.
[Bug] Translation Tool doesn't save new lines
Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Ivan - Tracker Software, Tracker Supp-Stefan
-
- User
- Posts: 307
- Joined: Wed Nov 07, 2007 10:07 am
-
- Site Admin
- Posts: 8624
- Joined: Wed Jan 03, 2018 6:52 pm
Re: [Bug] Translation Tool doesn't save new lines
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,
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,
Dan McIntyre - Support Technician
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
Tracker Software Products (Canada) LTD
+++++++++++++++++++++++++++++++++++
Our Web site domain and email address has changed as of 26/10/2023.
https://www.pdf-xchange.com
Support@pdf-xchange.com
-
- User
- Posts: 40
- Joined: Sun Apr 07, 2019 11:55 am
- Location: Czech Republic
Re: [Bug] Translation Tool doesn't save new lines
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:
and then translate only texts.
Tested in Czech version, OK
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:
 • Metadata
 • Invisble text and images
 • Overlapping objects
 • Form and comment datas
 • Embedded content and files
 • Hidden layers
 • Hidden data and comments
 • Unreferenced data</text>
Tested in Czech version, OK
-
- User
- Posts: 307
- Joined: Wed Nov 07, 2007 10:07 am
Re: [Bug] Translation Tool doesn't save new lines
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.
-
- User
- Posts: 40
- Joined: Sun Apr 07, 2019 11:55 am
- Location: Czech Republic
Re: [Bug] Translation Tool doesn't save new lines
See in PDF-X Change Editor:
Czech "SanitizePlugin.cs-CZ.xcl" file:
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í:
 • Metadata
 • Neviditelný text a obrázky
 • Překrývající se objekty
 • Data formulářů a komentáře
 • Vložený obsah a soubory
 • Skryté vrstvy
 • Skrytá data a komentáře
 • 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>
You do not have the required permissions to view the files attached to this post.
-
- User
- Posts: 40
- Joined: Sun Apr 07, 2019 11:55 am
- Location: Czech Republic
Re: [Bug] Translation Tool doesn't save new lines
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"
I found the right structure of this language file in "Localize.dat" (this is zip.archive), in file "Modules\SanitizePlugin_str.xml"
-
- Site Admin
- Posts: 6815
- Joined: Mon Oct 15, 2012 9:21 pm
- Location: London, UK
Re: [Bug] Translation Tool doesn't save new lines
Thanks guys - The dev. team are aware and working toward a fix.
Cheers,
Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com
Thank you.
Best regards
Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com