Fixing some bugs with localization

Signed-off-by: Alexander Book <redchrome@gmx.de>