Question Polish language for WinSnap 6.0.8

kacper6768

Great
BANNED
Mar 5, 2023
107
3
85
WinSnap 6.0.8 does not have a Polish language version of the interface.
xml files are responsible for the language.
The xml files are in different languages, but English is missing, from another target language, I would like to translate it with a translator so that I don't have to translate it manually, but when I pasted the contents of the xml file in the google translator, it replaced the commas with spaces and other important words that it should not have translated.
However, the _Translation.txt file contains English.

WinSnap\lang\
_Translation.txt
Bulgarian.xml
Chinese (Simplified).xml
Chinese (Traditional).xml
Danish.xml
Dutch.xml
French.xml
German.xml
Hungarian.xml
Italian.xml
Japanese.xml
Korean.xml
Portuguese (Brazil).xml
Romanian.xml
Russian.xml
Slovenian.xml
spanish.xml
swedish.xml
Turkish.xml
Ukrainian.xml

How can xml file pass through translator?
lang.zip
https://www.filesharesite.com/files/202305/168485048391F3A4A57F7C1D7421B4F002590A6A87.html
 
Have you tried to ask the creator of the software?

I'd imagine the software creator will be very happy if you'd contribute with another translation. As a bonus you may get your name (alias?) included in the about-screen :D
 

kacper6768

Great
BANNED
Mar 5, 2023
107
3
85
4 hours ago, C2dan88 said:


You cannot paste xml into google translate, it is expecting plain words not code/markup languages.




Could code this programmically, The simplest way to extract the english words from the xml is regex,

Using regex101.com.

Copy contents of _Translation.txt into Test string box

Set the function to List.

Set Replacement field as

$1:$2\n





Use this regex to extract all the words from value or caption attributes in the xml

(?:id=\"?(\d+)\"(?:.*?))?(?:value|caption)=\"([^"]+)\"





Should be able to copy the contents of the list text box into google translate to mass translate all the words to Polish.

Save _translation.txt as polish.txt. Tediously replace the English words with the translation matching the id value.
👍
🤣

sshot-111111111111111111111111.png


I managed to extract the whole words, but on this page you can't paste them in place of the original ones and I don't want to laboriously replace each word in the text file, I just want to pass the text file through the translator in a few seconds.