Improve locale directory detection
authorest31 <MTest31@outlook.com>
Tue, 8 Sep 2015 21:57:28 +0000 (23:57 +0200)
committerest31 <MTest31@outlook.com>
Thu, 10 Sep 2015 06:32:58 +0000 (08:32 +0200)
commit2a9da62b21b5c509496b8fd427f29dd650035fe6
tree39943b8d17a21c26feb73be138c6f0102db041d1
parent183d0d5633b94bfa831528cb637fdb29342676d4
Improve locale directory detection

Use in-place locale directory if that exists, and
static one (RUN_IN_PLACE or CUSTOM_LOCALEDIR) doesn't exist.
Report to errorstream if neither static nor in-place locale
dirs exist, and report successfully found paths to infostreem.

Fixes two bugs:

-> Regression of commit [1] where if we use RUN_IN_PLACE=false,
but don't make install, locales aren't found. One might
think this is no regression, as its no bug, but all other
paths (mainmenu, etc.) are detected properly.
-> Regression of commit [1] where locales don't work on windows.

References:
[1]: Commit 645e2086734e3d2d1ec95f50faa39f0f24304761 "Use CUSTOM_LOCALEDIR if specified" by @ShadowNinja
src/porting.cpp