Stirling-PDF/scripts/replace_translation_line.sh

11 lines
243 B
Bash
Raw Permalink Normal View History

#!/bin/bash
translation_key="pdfToPDFA.credit"
old_value="qpdf"
new_value="liibreoffice"
for file in ../src/main/resources/messages_*.properties; do
sed -i "/^$translation_key=/s/$old_value/$new_value/" "$file"
echo "Updated $file"
done