I have to move to a Sanboxed Solution (365) and I have some localized resources in my webparts.
I have tried many different approches without success.
The Resource files cannot be stored in the HIVE in a sanboxed solution so they must be moved to the site collection somehow or inlcuded in the assembly.
I have tried to use this funcition below to retrieve the Resources but it didn't find any translation.
Public Shared Function getLocalizedValue(ByVal strInput As String, ByVal intLCID As Integer) As String ' Function to retreive specified Language Variation Value Dim strLocalizedValue As String = "" strLocalizedValue = Microsoft.SharePoint.Utilities.SPUtility.GetLocalizedString("$Resources: " & strInput, "Resources", CUInt(intLCID)) Return strLocalizedValue End Function
I have to files named Resources.en-US.resx and Resources.sv-SE.resx.
Please let me know how to be able to get the text localized to a label.
For example
lblSubscribe.Text = getText("Subscribe").ToString
Thanks!!!!