Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
515
LANGUAGE
posted

I can change the language of windows filter or any windows / tooltip ?

The properyt Language of the xamGrid is ignored ! Why ?

Parents
  • 8607
    Offline posted

    Hello AMUS,

    What language are you looking for?  We currently have localized our product to Japanese (complete) and German (end user strings only).  We have a separate installer for Japanese, which will include satellite assemblies providing localized controls.  The German satellite assemblies are included in our English installer.  The German translations should appear if you are running the application on a German operating system.

    In my experience, only WPF controls need to have the Language property of the application or control changed.  This shouldn't be the case in Silverlight.

    For other languages, you have 2 options.

    1. You can download our source code from "My Keys and Downloads" on the main web site.  You'd be looking for .resx (resource) files for the control you would like to localize.  You can rebuild that assembly's project and use your localized version of our assembly.  This would be the easier way if you plan to localize many parts of the control.

    2. You can view the APIs and override the default English strings in the code behind.

    If you have questions on how to do this, please ask.

     

    Elizabeth Albert

    Localization Engineer

Reply Children
  • 8607
    Verified Answer
    Offline posted in reply to Beggiato

    Hello AMUS,

    Please refer to the following sample's XAML code (click on the < /> tab to the right).

    http://labs.infragistics.com/silverlight/lobsamples/2010.3/#/Samples/Grid/KeyFeature/GridFormattingRowSummaries

    Setting the display text can be done in XAML (which I find easier) like this:

                <ig:SummaryColumnSettings>
                   <ig:SummaryColumnSettings.SummaryOperands>
                      <ig:MaximumSummaryOperand FormatString="{}{0:d}" />
                      <ig:MinimumSummaryOperand FormatString="{}{0:d}" />
                      <ig:CountSummaryOperand RowDisplayLabel="Alternate COUNT Text" SelectionDisplayLabel="Alternate COUNT Text" />
                   </ig:SummaryColumnSettings.SummaryOperands>
                </ig:SummaryColumnSettings>

    To do it in VB, please refer to this topic in the online help.  Instead of setting IsApplied, you would set RowDisplayLabel and SelectionDisplayLabel.

    Imports Infragistics.Controls.Grids

    Dim DisplaySummary As Column = Me.MyDataGrid.Columns.

      DataColumns("ProductName")

    DisplaySummary.SummaryColumnSettings.SummaryOperands(2).

      RowDisplayLabel = "Alternate COUNT Text"

    DisplaySummary.SummaryColumnSettings.SummaryOperands(2).

      SelectionDisplayLabel = "Alternate COUNT Text"

     

    You can also set the filter operand text this way on the xamGrid.FilteringSettings object.

     

    As for the resource files, they would be in English.  You can download them with our source code from "My Keys and Downloads" with your Infragistics account (go to infragistics.com > My IG > My Keys and Downloads).  I'm not sure if it's available as a trial customer.  In general, you could copy the resource file, rename it to [Name].it.resx, and then translate it.  Rebuilding the assembly should create a version of the control which uses English by default, and Italian when running on an Italian operating system.


    Let me know if this is helpful.

     

    Elizabeth Albert
    Localization Engineer