implements locales system + error handling on Market module

Add locale + new error handling for Market

Fix locales path ( broken after change of folder naming: local -> locale)
For one line logical statements, you might want to use ternary to improve readability.
```
market_cart_error: cart_error != "" ? cart_error : this.getErrorString(mod.error),
```