Merge branch 'main' into V2

This commit is contained in:
Anthony Stirling
2025-07-16 21:25:37 +01:00
1172 changed files with 3359 additions and 1254 deletions

View File

@@ -9,7 +9,7 @@ import java.util.*;
public class PropSync {
public static void main(String[] args) throws IOException {
File folder = new File("C:\\Users\\systo\\git\\Stirling-PDF\\src\\main\\resources");
File folder = new File("C:\\Users\\systo\\git\\Stirling-PDF\\app\\core\\src\\main\\resources");
File[] files = folder.listFiles((dir, name) -> name.matches("messages_.*\\.properties"));
List<String> enLines = Files.readAllLines(Paths.get(folder + "\\messages_en_GB.properties"), StandardCharsets.UTF_8);

View File

@@ -207,7 +207,7 @@ def compare_files(
if __name__ == "__main__":
directory = os.path.join(os.getcwd(), "stirling-pdf", "src", "main", "resources")
directory = os.path.join(os.getcwd(), "app", "core", "src", "main", "resources")
messages_file_paths = glob.glob(os.path.join(directory, "messages_*.properties"))
reference_file = os.path.join(directory, "messages_en_GB.properties")

View File

@@ -529,7 +529,6 @@ ignore = [
[ja_JP]
ignore = [
'lang.jav',
'language.direction',
]

View File

@@ -20,7 +20,7 @@ if [[ "$INSTALL_BOOK_AND_ADVANCED_HTML_OPS" == "true" && "$FAT_DOCKER" != "true"
fi
if [[ "$FAT_DOCKER" != "true" ]]; then
/scripts/download-security-jar.sh
/scripts/download-security-jar.sh
fi
if [[ -n "$LANGS" ]]; then

View File

@@ -33,4 +33,4 @@ mkdir -p /tmp/stirling-pdf || true
chown -R stirlingpdfuser:stirlingpdfgroup /tmp/stirling-pdf || true
chmod -R 755 /tmp/stirling-pdf || true
/scripts/init-without-ocr.sh "$@"
/scripts/init-without-ocr.sh "$@"

View File

@@ -8,7 +8,7 @@ fi
key_to_remove="$1"
for file in ../src/main/resources/messages_*.properties; do
for file in ../app/core/src/main/resources/messages_*.properties; do
# If the key ends with a dot, remove all keys starting with it
if [[ "$key_to_remove" == *. ]]; then
sed -i "/^${key_to_remove//./\\.}/d" "$file"
@@ -17,4 +17,4 @@ for file in ../src/main/resources/messages_*.properties; do
sed -i "/^${key_to_remove//./\\.}=/d" "$file"
fi
echo "Updated $file"
done
done

View File

@@ -4,7 +4,7 @@ translation_key="pdfToPDFA.credit"
old_value="qpdf"
new_value="liibreoffice"
for file in ../src/main/resources/messages_*.properties; do
for file in ../app/core/src/main/resources/messages_*.properties; do
sed -i "/^$translation_key=/s/$old_value/$new_value/" "$file"
echo "Updated $file"
done