ComponentOne DataGrid for WPF and Silverlight
In This Topic
    Step 2 of 3: Adding a Resource File
    In This Topic

    In this step, you'll begin by adding a resource file to your application. Note that if you choose, you can add multiple resources files to your project.

    1.        In the Solution Explorer, right-click the C1DataGridLocalization project and choose Add | New Folder.

    2.        Name the folder you just created "Resources".

    3.        Right-click the Resources folder, and in the context menu select Add | New Item.

    4.        In the Add New Item dialog box, select Resources File in the templates pane, name the file "C1.Silverlight.DataGrid.resx", and click Add to add the file to your project.

    5.        If the resource file did not automatically open, double-click the file name in the Solution Explorer.

    6.        In the C1.Silverlight.DataGrid.es.resx file, add the following Names and Values:

     

    Name Value
    AddNewRow Click here to add a new row
    CheckBoxFilter_Checked Checked:
    ComboBoxFilter_SelectAll Select All
    DateTimeFilter_End End
    DateTimeFilter_Start Start
    EmptyGroupPanel Drag a column here to group by that column
    Filter_Clear Clear
    Filter_Filter Filter
    NumericFilter_And And
    NumericFilter_GreaterOrEquals Greater/Equals
    NumericFilter_Greater Greater
    NumericFilter_Less Less
    NumericFilter_LessOrEquals Less/Equals
    NumericFilter_NotEquals Not Equals
    NumericFilter_Or Or
    TextFilter_Contains Contains
    TextFilter_StartsWith Starts With
    TextFilter_Equals Equals
    TextFilter_NotEquals Not Equals

     

    1.        Save and close the resource file.

    2.        Right-click the Resources folder, and in the context menu select Add | New Item.

    3.        In the Add New Item dialog box, select Resources File in the templates pane, name the file "C1.Silverlight.DataGrid.es.resx", and click Add to add the file to your project.

    This file will localize the application to Spanish. For information on file naming, see Adding Resource Files.

    4.        If the resource file did not automatically open, double-click the file name in the Solution Explorer.

    5.        In the C1.Silverlight.DataGrid.es.resx file, add the following Names and Values to add Spanish localization:

    Name Value
    AddNewRow Cliquee aquí para agregar un nuevo renglón
    CheckBoxFilter_Checked Seleccionado:
    ComboBoxFilter_SelectAll Seleccionar todo
    DateTimeFilter_End Fin
    DateTimeFilter_Start Inicio
    EmptyGroupPanel Arrastre una columna aquí para agrupar
    Filter_Clear Borrar
    Filter_Filter Filtrar
    NumericFilter_And Y
    NumericFilter_Equals Igual
    NumericFilter_GreaterOrEquals Mayor o igual
    NumericFilter_Greater Mayor
    NumericFilter_Less Menor
    NumericFilter_LessOrEquals Menor o igual
    NumericFilter_NotEquals Diferente
    NumericFilter_Or O
    TextFilter_Contains Contiene
    TextFilter_StartsWith Empieza con
    TextFilter_Equals Igual
    TextFilter_NotEquals Diferente

    1.        Save and close the resource file.

     What You've Accomplished

    In this step you added a new resource file to your application. In the next step you'll add the file's culture to the project's supported cultures, and then set that culture to be the current culture.