Globalize urls when adding them via wymeditor

When adding a link for a translated page via wymeditor, the link wasn't be localised.
This pull request localises URLs based on the locale of the translation.

Also updates the regex for switch_locale to match hyphenated language code, e.g. zh-CN or pt-BR