Author Topic: How to change the local settings?  (Read 4342 times)

nuno.nogueira

  • Pro Economy
  • Jr. Member
  • *
  • Posts: 95
    • View Profile
How to change the local settings?
« 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

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6210
    • View Profile
Re: How to change the local settings?
« Reply #1 on: February 03, 2014, 10:57:28 am »


It should be 'pt' or "pt" instead of pt

nuno.nogueira

  • Pro Economy
  • Jr. Member
  • *
  • Posts: 95
    • View Profile
Re: How to change the local settings?
« Reply #2 on: February 03, 2014, 05:24:14 pm »
Excellent, thanks!

 :D