GwtMaterialDesign / gwt-material-table

A complex table component designed for the material design specifications
https://gwtmaterialdesign.github.io/gmd-table-demo/
Apache License 2.0
26 stars 31 forks source link

MaterialDataPager Language #177

Closed DW-Saascom closed 4 years ago

DW-Saascom commented 5 years ago

We don't have a way to change the language of the MaterialDataPager.

kevzlou7979 commented 4 years ago

Fixed via https://github.com/GwtMaterialDesign/gwt-material-table/commit/65630fa5f4353ee5e8ef3b33dd2f79062870ca4b

Proposed implementation.

pager.setLocaleProvider(new DataPagerLocaleProvider() {
            @Override
            public String RowsPerPage() {
                return "Rows Per Page";
            }

            @Override
            public String Page() {
                return "Page";
            }

            @Override
            public String of() {
                return "of";
            }
        });