Sync patch r14241 from main trunk.
Get the language string before use it to avoid reuse freed buffer.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/branches/UDK2010.SR1@14248 6f19259b-4bc3-4df7-8a09-765794883524