This is a migrated thread and some comments may be shown as answers.

App_GlobalResources problem after publish.

3 Answers 322 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Allin
Top achievements
Rank 1
Allin asked on 12 Feb 2013, 07:19 PM
Hi,

l tried to translate RadGrid, RadFilter, Web.ReportViewer in french, i follow instruction read on this forum to create RadFilter.Main.fr-CA.resx into App_GlobalResources directory of my website and i set the localizationPath to this directory, That's work fine with VS when i run in debug, but after publish no text appear at all for my grid at runtime, no tooltip nothing.

Copy to outpool directory = Copy Always.

Thank you.



3 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 15 Feb 2013, 12:41 PM
Hello Allin,

Can you please verify that you are following the exact steps provided in the following topic:
http://www.telerik.com/help/aspnet-ajax/grid-localization-global-resources.html

You can also check out this forum thread:
http://www.telerik.com/community/forums/aspnet-ajax/grid/probleme-with-culture.aspx

Please ensure that you have correctly set the Culture and LocalizationPath properties of the grid:
<telerik:RadGrid ... LocalizationPath="App_GlobalResources/">

If the problem remains, provide us the exact steps to reproduce the issue or open a support ticket to send us a sample runnable application demonstrating the erratic behavior. Thus, we will be able to further analyze the problem and provide a proper solution.

Regards,
Eyup
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Hans
Top achievements
Rank 1
answered on 15 Feb 2013, 04:11 PM
Hi Eyup,

I follow this steps, the only difference that's i set this properties on Control_Init(radFilter or radGrid) event, it's a problem to do like this?

Exemple : I call this sub on radFilter.Init to Set CurrentUICulture used for logged user:
Public Shared Sub SetCulture(filter As Telerik.Web.UI.RadFilter)
    Dim culture As CultureInfo = Global.System.Globalization.CultureInfo.CurrentUICulture
    filter.LocalizationPath = "App_GlobalResources"
    filter.Culture = culture
End Sub
What value must to set for Build Action and Copy to output directory for all .resx files into App_GlobalResources? I tried different value with same result at publish. It's probably the source of this problem, but i don't found the good setting for now.

ty


0
Allin
Top achievements
Rank 1
answered on 15 Feb 2013, 05:02 PM
Solved! I set Build Action to Content and Copy to Output directory to Do not Copy and all work fine now.
Tags
Grid
Asked by
Allin
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Hans
Top achievements
Rank 1
Allin
Top achievements
Rank 1
Share this question
or