ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: nuno.nogueira on January 31, 2014, 10:43:06 pm

Title: How to change the local settings?
Post by: nuno.nogueira on January 31, 2014, 10:43:06 pm
Hi,

I'm trying to change the language displayed in the pagination bar to pt.
I have the pt language file (pq-localize-pt.js)  in the folder "localize".

In my js script I'm including the following code at the bottom:

Code: [Select]
$grid.pqGrid("option", $.paramquery.pqGrid.regional[pt]);
    $grid.find(".pq-pager").pqPager("option", $.paramquery.pqPager.regional[pt]);

But the text in the page bar isn't changing, instead I get the errror:
Quote
Uncaught ReferenceError: pt is not defined
Title: Re: How to change the local settings?
Post by: paramvir on February 03, 2014, 10:57:28 am


It should be 'pt' or "pt" instead of pt
Title: Re: How to change the local settings?
Post by: nuno.nogueira on February 03, 2014, 05:24:14 pm
Excellent, thanks!

 :D