translate calendar to portuguese

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
User avatar
D Oliveira
AppGini Super Hero
AppGini Super Hero
Posts: 347
Joined: 2018-03-04 09:30
Location: David

translate calendar to portuguese

Post by D Oliveira » 2019-08-05 14:29

is there a way to translate the calendar ( date field from detail view) to portuguese in a simple way?

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: translate calendar to portuguese

Post by onoehring » 2019-08-05 15:15

Hi,

isn't there a resources\datepicker\js\lang\pt.js file?
In resources\datepicker\js\datepicker.js you could probably change around line 37 this code

Code: Select all

var loc = scriptFiles[scriptFiles.length - 1].src.substr(0, scriptFiles[scriptFiles.length - 1].src.lastIndexOf("/")) + "/lang/" + datePicker.languageinfo + ".js";
You should be able to use this (not tried)

Code: Select all

var loc = scriptFiles[scriptFiles.length - 1].src.substr(0, scriptFiles[scriptFiles.length - 1].src.lastIndexOf("/")) + "/lang/pt.js";
Afterwards, writeprotect the file to force your language.
Olaf

Post Reply