refinery/refinerycms — pull request #2533 by DanBrooker (2014-01-26 01:06:55+00:00)
Title: 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