Language settings - Again

Jul 4, 2014 at 3:32 PM
Edited Jul 4, 2014 at 3:33 PM
Hello,

I would like to ask how to set the correct langugage for a grid (in filter type for example).

I use gridmvc.lang.fr.js in my js lib
AND GridMvc.resources.dll (fr folder) in my BIN folder. (https://dl.dropboxusercontent.com/u/64699266/libraries.zip)

in my Grid :

@Html.Grid(Preparation).Named("PreparationsGrid").SetLanguage("fr").Columns(col => ....

Anything to add ?

Thanks for your responses

Pat

I have already read this thread :
http://gridmvc.codeplex.com/discussions/545422
Coordinator
Jul 28, 2014 at 3:53 AM
Hi,

Reference gridmvc.lang.fr.js to the page
Add sattelite libraries to the BIN folder
Specify language obviously using SetLanguage (optionally)

That's all
Aug 8, 2014 at 11:30 PM
Hello,

Does not GridMVC support for Turkish language?
I couldn't see 'tr' folder in libraries.zip.

Can i customise to Turkish, posible?

Thanks.
Sep 10, 2014 at 4:24 AM
Edited Sep 10, 2014 at 4:25 AM
/***
* Grid.Mvc Turkish language (tr-TR) http://gridmvc.codeplex.com/
*/
window.GridMvc = window.GridMvc || {};
window.GridMvc.lang = window.GridMvc.lang || {};
GridMvc.lang.tr = {
    filterTypeLabel: "Tip: ",
    filterValueLabel: "Değer:",
    applyFilterButtonText: "Uygula",
    filterSelectTypes: {
        Equals: "Eşit",
        StartsWith: "ile Başlayan",
        Contains: "İçeren",
        EndsWith: "ile Biten",
        GreaterThan: "den Büyük",
        LessThan: "den Küçük"
    },
    code: 'tr',
    boolTrueLabel: "Tamam",
    boolFalseLabel: "Hayır",
    clearFilterLabel: "Temizle"
};
save "gridmvc.lang.tr.js"
and use
@model IEnumerable<TT.Models.Employee>
@using GridMvc.Html

<h1>Grid</h1>
@section styles {
    <link href="~/Content/Gridmvc.css" rel="stylesheet" />
}

@Html.Grid(Model).Named("employeeGrid").Columns(
            columns =>
            {
                columns.Add(p => p.FirstName).Titled("Ad").SetWidth(80).Sortable(true).Filterable(true);
                columns.Add(p => p.LastName).Titled("Soyad").SetWidth(120).Sortable(true).Filterable(true);
                columns.Add(p => p.BirthDate).Titled("Doğum Tarihi").SetWidth(120).Sortable(true).Filterable(true);
            }).WithPaging(10)
@section scripts {
    <script src="~/Scripts/gridmvc.min.js"></script>
    <script src="~/Scripts/gridmvc.lang.tr.js"></script>
    <script>
        $(function () {
            pageGrids.employeeGrid.lang = GridMvc.lang.tr;
        });
    </script>
}
Sep 11, 2014 at 2:37 AM
Thanks so much emre, this solution saved me.

I also another big problem with Grid.Mvc.
I use in masterpage jquery-1.4.2.min.js
But Grid.Mvc wants from me jquery-2.1.0.min.js

I use jquery-2.1.0.min.js in only Grid.MVC pages.
Grid.MVC works succesfully in these pages, but for example my header menu doesnt work caused by jquery-2.1.0.min.js.
Because my header menu wants from me jquery-1.4.2.min.js.

How can i resolve this problem, thanks..
Apr 30, 2015 at 6:08 PM
Portuguese - Brazil

/***
  • Grid.Mvc brazilian language (pt-BR) http://gridmvc.codeplex.com/
    */
    window.GridMvc = window.GridMvc || {};
    window.GridMvc.lang = window.GridMvc.lang || {};
    GridMvc.lang.pt = {
    filterTypeLabel: "Tipo: ",
    filterValueLabel: "Valor:",
    applyFilterButtonText: "Aplicar",
    filterSelectTypes: {
    Equals: "Igual",
    StartsWith: "Iniciando por",
    Contains: "Contém",
    EndsWith: "Finalizado por",
    GreaterThan: "Maior que",
    LessThan: "Menor que"
    },
    code: 'pt',
    boolTrueLabel: "Verdadeiro",
    boolFalseLabel: "Falso",
    clearFilterLabel: "Vazio"
    };