opencl: set locale to "C" during initialization. fixes #9467
(cherry picked from commit 092e3cc6b758be46409726dfc1b357e414ccbddb)
Updated da translation by Thomas Pryds
Updated ja translation by a3novy
Fix removing of empty film rolls

(cherry picked from commit 8b0c7f2a4b32a14ac0ad5cb15eaa797920a275f2)
Updated Ukrainian translation by Nazarii Vitak
First part of Russian translation update for 1.2.2
noise profile: nikon d60 by TCJ
(cherry picked from commit b0d882d9e6425954d497f55358abbad5acd7130f)
Fix potential segfault due to a race condition

... or something like that
(cherry picked from commit 45882506be48ffe54444afa7746d84fd3a7c3ac4)
Add two more forgotten free()s
(cherry picked from commit d10fb0185c891980ff909517f3dfd57f9b62a5eb)
adobe_coeffs: new matrices from dcraw 9.19
(cherry picked from commit b7babf831759479907ef31b4b7a2a2ed70a81ad0)
opencl: make a few numerical constants more well-behaving on Mac OpenCL

seems that the OSX opencl compiler (Apple's own, not the NVIDIA or AMD one) has
an issue with certain valid but uncommon float constants like "1.f".
(cherry picked from commit 444fd4ad756870b5617b0591266c06d8016ba0ca)
opencl: do not use NVIDIA sm20 extensions with Mac OpenCL

the OSX opencl compiler does not understand inline asm instructions.
therefore we need to treat all NVIDIA GPUs on Macs as if they have no
atomic_add_f32 and use emulation code instead.
(cherry picked from commit 957f2225aa6859fc2d73eeb706ea5f1f7c56cdc2)
imageio_rawspeed(#9477): better (lack of) CFA detection (think sRAW/Linear DNG)
(cherry picked from commit a74a6476955c4405b46d30e2fa0644252ef79c2d)
(cherry picked from commit 418f5f3a3f5c0fa3add610513976719c228fba00)
imageio_rawspeed: remove redundant flags code for non-cfa raws
(cherry picked from commit 5e4f4c95e894e20e9968f5a1f27eee42b6aaf394)
(cherry picked from commit 17460c61d83b7f9835c66e238e83aec01340229e)
cacorrect: don't accidentally run on non-RAWs
(cherry picked from commit 4dd3a37c67f671c4a141988555a57bf57ad78357)
(cherry picked from commit 48da6a773b7bb41d78d60915d748cc6781e8eb2e)
colormatrices: sony nex-7 enhanced matrix thanks to Thorsten Bronger
(cherry picked from commit d6492524145541d1db406f2ed79d1b12c087fa55)
(cherry picked from commit 8cd9e3999e3519e9fc6894198819ef6e3c152f1c)
lens: sanitize after parenthesis
(cherry picked from commit 066175d148d3e452a21ea7af05d9945a6eba5ab5)
(cherry picked from commit a80b65afeb97dbfb329ed40f4c7d5cccfb07177f)
lens: guard against mishaps
(cherry picked from commit b572435bf91e75c0262a83163ced99c72d4fd7f0)
(cherry picked from commit 2ffe294914d6dc2db55866f3cb2c88c713cdfdbf)
opencl: workaround for compiler bug in Apple opencl implementation

Apple's implementation fails during init of private filter array. we use global
of a 2D filter array, initialized from host instead. slightly slows down processing on very
fast devices (HD7950) but speeds up processing on some others (GTS450)
(cherry picked from commit 9e4ed3b4e6b81f922fd444facbdafdfc45b619af)
opencl: make all numerical float constants well-behaving; fixes #9478

the ability to properly parse valid float constants has been taken away
from recent OpenCL compilers for whatever reason. so we need a workaround.
(cherry picked from commit 1c6d71d56dfebc072075550cb19a038d557bda0a)