Components localization

Posted by: mlemare on 10 September 2017, 11:47 am EST

  • Posted 10 September 2017, 11:47 am EST

    Hello world,

    I'm currently doing an analysis of ComponentOne ASP.NET Wijmo in order to know if it is adapted for the company I work for and for our project.

    In several component, there is words and sentences in English, as you can see on the attached file.
    (Sortings & filterings keywords, etc ...)

    Here is my question :
    Is it possible to have an access to a file where are located these words ?
    Our project would require a complete localization, and we want to translate everything on every components, especially grids & reports.

  • Replied 10 September 2017, 11:47 am EST

    Hi Maxime,

    According to the developer, You can change the language of filter option in C1Wijmo GridView control by the following steps :

    For example, if we want to change the language for French :

    1. Set the Culture="fr-FR" in the <%@ Page %> directive of your web page.

    2. Add the App_GlobalResources folder and add two new resources file in this folder (i.e Add App_GlobalResources folder).
    You have to give the two resource file named in below ways :
    First resource file named : (1) WijmoControls.resx
    Second resource file named : (2) (eg. if it is Germany you have to set the resource file named to"" )

    Note : These resources file can be added by right click on the "App_GlobalResources" folder and select "New Item..." in the context menu. Select the language that you are using in Installed Templates (eg. Visual C#), and select "Resource File" and give the resource file named as ' WijmoControls.resx ' and ' ' (eg. if the language is French )

    3. Open and for each filter specify its localized name.
    For example : In 'Name' column of file , enter ' C1Grid.Filters.BeginsWith '

    Note : The filter option enter in 'Name' column must be the same (English) name (eg. C1Grid.Filters.<EnglishFilterOperatorName> which is display in default Filter combobox in C1GridView (i.e. not localized FilterOperatorName)

    In 'Value' column of file, enter your localize name. Note: You only need to set "C1Grid.Filters" prefix for "Name" column in file and do not need to enter in "Value" column.

    4. For WijmoControls.resx file , you don't need to add anything in it, just leave it as an empty resx file.

    We have attached a "Sample_FilterOptionLocalize" which implement the above mention method. You can also download the attached "Sample_FilterOptionLocalize" from the following links :

    Note : The localized "French" language in the "Sample_FilterOptionLocalize" may not be translated correctly which is just used to show as an example only.

    Could you please download it and check it at your end. Hope it resolves your problem .

  • Replied 10 September 2017, 11:47 am EST

    For those who need to localize the FilterOperatorName of 2.0 C1GridView I offer this code:

    <script type="text/javascript">
    function OperadoresFiltro() {
    $("span.C1TextNode.c1gvfo_NJMA:contains('NoFilter')").text('No Filtrar');
    $("span.C1TextNode.c1gvfo_RB:contains('NotContain')").text('No Contenga');
    $("span.C1TextNode.c1gvfo_SB:contains('BeginsWith')").text('Comience con');
    $("span.C1TextNode.c1gvfo_TB:contains('EndsWith')").text('Termine con');
    $("span.C1TextNode.c1gvfo_VB:contains('NotEqual')").text('No Igual');
    $("span.C1TextNode.c1gvfo_RJMA:contains('NotIsEmpty')").text('No Vacío');
    $("span.C1TextNode.c1gvfo_YB:contains('GreaterOrEqual')").text('Mayor o Igual');
    $("span.C1TextNode.c1gvfo_ZB:contains('LessOrEqual')").text('Menor o Igual');
    $("span.C1TextNode.c1gvfo_RRMA:contains('IsNull')").text('Es nulo');
    $("span.C1TextNode.c1gvfo_RZMA:contains('NotIsNull')").text('No es nulo');
    $("a.C1Link.C1ClearButtonImage").attr('title', 'No Filtrar');

    add this property to the grid ClientOnSelectionChanged = "OperadoresFiltro"
  • Replied 10 September 2017, 11:47 am EST

    Hi Ashish
    i don't find the example file

    please attach it

    thanks very lot
  • Replied 10 September 2017, 11:47 am EST


    PFA the sample.

  • Replied 10 September 2017, 11:47 am EST


    Currently, it is not possible to localise the filter options in Wijmo Gridview.
    I have made an enhancement request for the same to the developer; however, I cannot commit as to when/if it would be taken into consideration.

  • Replied 10 September 2017, 11:47 am EST

    Thank you for your answer, Ashish.

    Our application would be translated in 14 languages, so that's a main topic for us.
    Indeed, it would be great to be able to translate everything.

    I guess this is not possible for all components, right ? I mean, not only the gridview ?

  • Replied 10 September 2017, 11:47 am EST

    Hello Maxime,

    We do have Culture properties in almost all the controls through which you can localise it to the desired language. You may check out other controls and if you face any problem then do let me know.

    In Gridview, the you may display the data in desired language by binding it but as of now, there is no property available to localise the filter options displayed in the filter dropdown.

  • Replied 10 September 2017, 11:47 am EST

    Thank's!!! :)
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels