Philip Durbin propose
here next idea:
"Hmm, maybe someone could write a script to do a "sort" and then "diff" between the keys in Bundle.properties between releases. So translators would know which keys were added or removed. Of course, this wouldn't report on changes made to the value of a key, to improve the wording or add or remove dynamic elements (i.e. {0}, {1}, etc.). So maybe the values should be "diffed" as well? I don't know. I haven't had any coffee yet. :) "
It is not exactly the same , but in linux, I use:
_________________________
#!/bin/bash
initVersion=v4.9.1 # any version
endVersion=v4.9.2 # any version
tempDir=diffBundles
onlyLabels=true # diff labels or translations
mkdir $tempDir
wget
https://raw.githubusercontent.com/IQSS/dataverse/"$initVersion"/src/main/java/Bundle.properties -O $tempDir/Bundle_$initVersion
wget
https://raw.githubusercontent.com/IQSS/dataverse/"$endVersion"/src/main/java/Bundle.properties -O $tempDir/Bundle_$endVersion
if [[ $onlyLabelss -eq true ]]; then
sort $tempDir/Bundle_$initVersion | uniq | grep "=" | grep -v "^#" | cut -d "=" -f 1 > $tempDir/Bundle_sorted_$initVersion
sort $tempDir/Bundle_$endVersion | uniq | grep "=" | grep -v "^#" | cut -d "=" -f 1 > $tempDir/Bundle_sorted_$endVersion
else
sort $tempDir/Bundle_$initVersion | uniq | grep "=" | grep -v "^#" > $tempDir/Bundle_sorted_$initVersion
sort $tempDir/Bundle_$endVersion | uniq | grep "=" | grep -v "^#" > $tempDir/Bundle_sorted_$endVersion
fi
diff $tempDir/Bundle_sorted_$initVersion $tempDir/Bundle_sorted_$endVersion
_________________________