Use WP functions instead

- It is better to use the WordPress functions. I tested it and it works. `current_theme` has been deprecated since version 3.4 so that is why I added a simple check before updating it.
- Add text domain to header. It was somehow removed in the previous PR.