Refactored shopping cart code and added translations

- Moved some table generation code into method
- Properly localized shopping cart
- Streamlined sidebar