vtfuture / BForms

Bootstrap Forms for ASP.NET MVC
MIT License
62 stars 33 forks source link

Move grid's GoTop title from javascript to resx #214

Closed lvv83 closed 9 years ago

lvv83 commented 9 years ago

Localizations for grid pager stored in BF_XXX keys inside resx-file. But the title for "Go top" button stored as Grid.prototype property pagerGoTopTitle.

Yes, I can write my localized value like:

// init grid
this.$grid.bsGrid({
    pagerGoTopTitle: 'localized go top'
    // another grid options
});

I think, will be better to localize the title with resx-file like other pager strings.

PS: But best approach I think - is using localizations via javascript (select2.js for example). We can easy transform our localization string depend from parameters, like: