Re-write PDFSaM 2 language in global configuration file

For a fresh PDFSaM installation you can rewrite global configuration to use another language in program.
To do it so use awk.exe utility to replace some lines content in configuration file:

In directory where awk.exe is having a good time create a little batch script.
For example for Brazilian Portuguese use code pt_BR
type "C:\Program Files\PDF Split And Merge Basic\pdfsam-config.xml" |^
"%~dp0awk.exe" "{sub(/i18n value.*\\\"/,"""i18n value=\\\"pt_BR\\\"""");print}" > "%temp%\pdfsam-config.xml"
move /Y "%temp%\pdfsam-config.xml" "C:\Program Files\PDF Split And Merge Basic\"
For Russian use ru
For French use fr
For Polish use pl
For German use de

If the user have already launched the PDFSaM then you have to manually delete %userprofile%\.pdfsam directory.

No comments: