Actually this is a double question,
1
I'm trying to get the right variation from the following code:
SPUtility.GetLocalizedString("$Resources:MyDefaultResourceFileName,MyWantedValueKey", "MyDefaultResourceFileName", SpContext.CurrentWeb.Language)
like that I'm always getting the value from the default resource file, but if I change the language on the SPWeb, for instance en-en, I'm not getting the key value from the MyDefaultResourceFileName.en-en.resx
solution: follow this link and use this code for retrieve the values from right resource file:
SPUtility.GetLocalizedString("$Resources:MyWantedValueKey", "MyDefaultResourceFileName", (uint)Thread.CurrentThread.CurrentUICulture.LCID)
but if is deployed as AppGlobalResource, check this link and use:
HttpContext.GetGlobalResourceObject("MyResourceFile", "MyKey")
2
And the second one more simple, how I get those same values in .aspx files?
solution: helpful link
<%$Resources:FileName,Key%>
spregards!