turquoiseowl/i18n — pull request #121 by ryan1234 (2014-01-09 00:14:45+00:00)
Title: Bug fix: First token on first page load for a language is not translated

When a page gets loaded and the HttpRuntime cache is empty, the LookupText function will populate it on a per language basis.

The first token for a language pays the price of inserting a translation into the cache, but it doesn't update the messages variable. It continues to be null on the first call to LookupText for a language.

I added one line to populate the messages variable _after_ the cache has been updated.

Kept noticing this bug when testing locally and hopefully this is an ok way to fix it.