Merge branch 'dev' of https://github.com/Beep6581/RawTherapee into dev
This commit is contained in:
commit
db65d11aa1
@ -15,7 +15,6 @@
|
||||
#
|
||||
# Locale files are generated automatically:
|
||||
# - English (UK)
|
||||
# - Polish (Latin Characters)
|
||||
|
||||
tmp=temp_file
|
||||
if [[ -w $tmp ]]; then
|
||||
@ -30,14 +29,22 @@ abort () {
|
||||
|
||||
trap 'abort' HUP INT QUIT ABRT TERM
|
||||
|
||||
|
||||
cd "rtdata/languages" || { printf "%s\n" "You must run this script from the root of the project."; exit 1; }
|
||||
# Build array of all interface translation files, or use user-specified ones only
|
||||
unset langFiles
|
||||
|
||||
if [[ $# = 0 ]]; then
|
||||
while read -r; do
|
||||
langFiles+=("$REPLY")
|
||||
done < <(find . -not -iname "default" -not -iname "LICENSE" -not -iname "README" -not -iname "*.sh" -not -iname ".*" -not -iname "$tmp" -not -iname "English (UK)" -not -iname "Polish (Latin Characters)" | sort)
|
||||
done < <(find . -not -iname "default" \
|
||||
-not -iname "LICENSE" \
|
||||
-not -iname "README" \
|
||||
-not -iname "*.sh" \
|
||||
-not -iname ".*" \
|
||||
-not -iname "$tmp" \
|
||||
-not -iname "English (UK)" \
|
||||
-not -iname "Polish (Latin Characters)" \
|
||||
| sort)
|
||||
else
|
||||
langFiles=("$@")
|
||||
for langFile in "${langFiles[@]}"; do
|
||||
@ -117,8 +124,10 @@ case "${langFiles[@]}" in
|
||||
sed 'y/ĄĆĘŁŃÓŚŹŻąćęłńóśźż/ACELNOSZZacelnoszz/' < Polish > "Polish (Latin Characters)"
|
||||
;;&
|
||||
esac
|
||||
|
||||
ttot2="$(date +%s)"
|
||||
ttot=$((ttot2-ttot1))
|
||||
tsec=$((ttot%60))
|
||||
tmin=$((ttot/60))
|
||||
|
||||
printf "%s\n" "Finished updating ${#langFiles[@]} files." "Total time: ${tmin}m ${tsec}s"
|
||||
|
Loading…
x
Reference in New Issue
Block a user