Localization not working out of the box for the ScheduleView

20 posts, 0 answers
  1. samy
    samy avatar
    25 posts
    Member since:
    Sep 2011

    Posted 05 Oct 2011 Link to this post

    From what i read on the forum, to localize your silverlight application in a different language, you just have to set the DefaultCulture property of the LocalizationManager before the InitializeComponent of your MainPage

    public partial class MainPage : UserControl
       {
           public MainPage()
           {
               LocalizationManager.DefaultCulture = new CultureInfo("es"); // hablamos español
     
               InitializeComponent();
           }
       }

    However, when i create a project from scratch with just one basic ScheduleView in the xaml, nothing is translated at all. Do i have to include resources satellite assemblies? If so, how do i include them in the correct resource directory (ie /bin/debug|Release/{culture}?
    Currently, the bin directory contains lots of languages directories and assemblies (including Telerik.Windows.Controls.resources.dll)
  2. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 06 Oct 2011 Link to this post

    Hi Samy,

    You should edit the .csproj of your Silverlight application and add this line into the PropertyGroup section:

    <SupportedCultures>en;es;</SupportedCultures>

    Check here for more information about localization of RadScheduleView.

    All the best,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. DevCraft banner
  4. samy
    samy avatar
    25 posts
    Member since:
    Sep 2011

    Posted 06 Oct 2011 Link to this post

    Your link is empty. Could you point me in the right direction? However if it's the official demo, the code is not complete and nowhere does it say that you have to fill the SupportedCultures. Where can i find more info about this behavior. And if i want to change the default values provided, what's the way to go?
  5. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 06 Oct 2011 Link to this post

    Hi Samy,

    I'm sorry for the wrong link. Please check it here.

    We cannot show this setting in the online demos as it's in the .csproj file, but it's explained in the help article about localization (actually that is the link I've tried to send). Also it's a general Silverlight setting which is needed when using .resx files.

    Please check Using Built-In Resources section of the article in order to localize the ScheduleView in Spanish.

    Hope this helps. If you any additional questions, contact us again.

    Greetings,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  6. samy
    samy avatar
    25 posts
    Member since:
    Sep 2011

    Posted 07 Oct 2011 Link to this post

    Thank you very much for the link.
    I don't understand something, though: it says on the page you sent me to that "Spanish, German, Italian, Turkish, Dutch" is supported for the ScheduleView, but the demo example shows more languages, for example french. What mecanism is used in the demo?
    What's more, you told me to edit my csproj to add my cultures to the SupportedCultures tag, but the documentation page tells me that this is for using the ResourceManager. I'd like to use the built-in resources, but jsut adding the recommended lines doesn't work

     
    public App()
      {
          System.Threading.Thread.CurrentThread.CurrentCulture =
    new System.Globalization.CultureInfo( "nl" );
          System.Threading.Thread.CurrentThread.CurrentUICulture =
    new System.Globalization.CultureInfo( "nl" );
          
    this.Startup += this.Application_Startup;
          
    this.Exit += this.Application_Exit;
          
    this.UnhandledException += this.Application_UnhandledException;
          InitializeComponent();
      }



  7. Pooja
    Pooja avatar
    55 posts
    Member since:
    Feb 2011

    Posted 10 Oct 2011 Link to this post

    Hi,
    I am facing a similar problem, I have set Time format of my machine to HH:mm i.e. 24 hour format. But the calendar view still shows time ruler as 12:00 AM to 12 PM. Do we need to do any other settings for this?
  8. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 11 Oct 2011 Link to this post

    Hi Samy,

    Into the help article Yana sent you French is not mentioned, because the article is outdated. We will fix it.

    In order to use the built in localization, you will have to edit your csproj to add cultures to the SupportedCultures tag. You can find working example attached.

    Pooja,

    TimeRulers are not affected by CurrentCulture of the application. You should bind the TimerulerMajorTickStringFormat property to the CurrentCulture.DateTimeFormat.ShortTimePattern of your application. You can also find an example attached.

    Hope this helps.

    Greetings,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  9. Pooja
    Pooja avatar
    55 posts
    Member since:
    Feb 2011

    Posted 12 Oct 2011 Link to this post

    Got it working by your suggested method.

    Thanks!
  10. samy
    samy avatar
    25 posts
    Member since:
    Sep 2011

    Posted 19 Oct 2011 Link to this post

    The method is still not working with the supported cultures provided in the csproj.

    I'm loading the Silverlight through an ascx hosted on a asp.net website. Should i check to see if the ressource assembly is missing (i guess everything is in Telerik.Windows.Controls.resources.dll in the fr folder)?

    For your information, every Telerik assembly i've referenced from the Silverlight project lives in a "library" folder (to help with version numbering). What i have in this library folder is limited to what i use:
    Telerik.Windows.Controls.dll
    Telerik.Windows.Controls.GridView.dll
    Telerik.Windows.Controls.Input.dll
    Telerik.Windows.Controls.Navigation.dll
    Telerik.Windows.Controls.ScheduleView.dll
    Telerik.Windows.Data.dll
    Telerik.Windows.Themes.Metro.dll

    in the output folder for my silverlight project, i don't see the Telerik.Windows.Controls.resources.dll. Why doesn't it get generated?

  11. samy
    samy avatar
    25 posts
    Member since:
    Sep 2011

    Posted 19 Oct 2011 Link to this post

    I added the resource dll to my library folder in the correct culture folder and got it working this way. Thank you
  12. Andreas
    Andreas avatar
    12 posts
    Member since:
    Jun 2012

    Posted 20 Jan 2012 Link to this post

    Hello

    I've notice that in the example project  "ScheduleViewLocalization.zip"  attached in a previous post 

    the Day, Week, Month View is still not translated. I have the same issue. Although everything is translated

    in the correct language they remain in English.

    Thanks 

  13. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 20 Jan 2012 Link to this post

    Hi Andreas,

    This sounds really strange. I just downloaded the sample project and it was fully localized in French. Do you have the RadControls for Silverlight installed on your computer or you use only some of the dlls?

    Regards,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  14. Andreas
    Andreas avatar
    12 posts
    Member since:
    Jun 2012

    Posted 20 Jan 2012 Link to this post

    Hello 

    Thanks, for the quick reply. I have them installed on my computer.

    This is what I get when i run the example project.

  15. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 23 Jan 2012 Link to this post

    Hi Andreas,

    I guess you copied your dlls from Telerik's installation folder to your project. You will have to copy the resoures folders (fr, tr, it, es, de, nl, sl) at the same place where are the Telerik's dlls you reference. You can see these folders at the image attached.

    Kind regards,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  16. Andreas
    Andreas avatar
    12 posts
    Member since:
    Jun 2012

    Posted 23 Jan 2012 Link to this post

    Hello Ivo

    I made some tests using other languages beside French. I've tried with Dutch, Deutsch and Greek. This issue appears also in Greek as shown in the attached picture. If I was missing any translation resource files the name of each day wouldn't remain in English too?

    Thanks

  17. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 23 Jan 2012 Link to this post

    Hi Andreas,

    RadScheduleView doesn't support Greek langugage at this moment. I guess you use old version of Telerik RadControls for Silverlight that doesn't support French language too. Could you please check if your version is Q2 2011 or above?

    Greetings,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  18. Andreas
    Andreas avatar
    12 posts
    Member since:
    Jun 2012

    Posted 26 Jan 2012 Link to this post

    Hello,

    Yes my version is Q1 2011. Can you please send me a sample project, how to  translate ScheduleView  manually?

    Thanks

  19. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 31 Jan 2012 Link to this post

    Hi,

    It seems there was a bug into the localization manager into the 2011 Q1 release and you won't be able to translate RadScheduleView manually. However you can find attached a resource dll that will translate everything in French. You have to place the "fr" folder into your binaries folder, as shown into the picture attached.

    Kind regards,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  20. Andreas
    Andreas avatar
    12 posts
    Member since:
    Jun 2012

    Posted 31 Jan 2012 Link to this post

    Hello,

    I would appreciate if you could send me a hot fix/minor release for the 2011 Q1 since RadScheduleView needs to be translated in other languages too.

    Thanks

  21. Ivo
    Admin
    Ivo avatar
    390 posts

    Posted 02 Feb 2012 Link to this post

    Hi,

    I think the best option into your case is to upgrade your controls to the latest official release, because we do not offer and support custom hotfixes. Currently the last official release is 2011 Q3 SP1.

    All the best,
    Ivo
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner