Update translations from Transifex:

 - Arabic
 - Armenian
 - Basque
 - Belarusian
 - Bengali
 - British English
 - Catalan
 - Chinese (Simplified and Traditional)
 - Croatian
 - Czech
 - Dutch
 - French
 - Galician
 - German
 - Greek
 - Hebrew
 - Hungarian
 - Italian
 - Japanese
 - Korean
 - Malay
 - Polish
 - Portuguese (Brazil)
 - Romanian
 - Russian
 - Slovak
 - Slovenian
 - Spanish
 - Swedish
 - Tatar
 - Turkish
 - Ukrainian
 - Vietnamese
Add a Thai translation.

The composition of the translation team can be found on Transifex: https://www.transifex.com/organization/mpc-hc/team/3979/members/th_TH/.
Playlist: Ensure the "close" command is properly routed with all safety tests.
Update the solution for Visual Studio update 3.
Cosmetics: Remove some useless casts.
Use the proper format type specifier - part 2.
Manually sync the translations
Resources tab: The resource saved wasn't always matching the selection.
Rasterizer: Remove an unused function.
Subtitle rendering cache: Optimize the removal of old cached value.

Also make sure that Clear correctly release all memory immediately.
Subtitle renderer: Optimize the outline cache.

Use smart pointers to avoid copy.
Subtitle renderer: Optimize the overlay cache.

Use smart pointers to avoid copy.
Subtitle renderer: Optimize polygon parsing.
Subtitle renderer: Add a cache for polygons.

This helps a lot for subtitles which use drawing heavily.
Subtitle renderer: Avoid creating some temporary strings.
Subtitle renderer: Optimize slightly GetStyle and GetCharSet functions.
Rasterizer: Factorize some code.

Note that I had to template the new function and forcingly inline it to reduce the performance impact.
Subtitle renderer: Fix the overlap algorithm used to create the outlines.

As far as I can tell the visual impact was minor or even non-existent.
Subtitle renderer: Faster algorithm for the outline creation.

It can be around twice faster than the old algorithm when creating heavy outline. Overall the total rendering time can be reduced by nearly a quarter.

Thanks a lot to Silk for his input on the mathematical side of this commit.
Subtitle renderer: Move all cache instances in a structure for easier use.