Merge pull request #922 from opendatatrentino/fixLangContext
Translations aren't loaded with server context different from "/"
This commit is contained in:
commit
d330532cc8
@ -39,7 +39,7 @@ var lang = navigator.language.split("-")[0]
|
|||||||
|| navigator.userLanguage.split("-")[0];
|
|| navigator.userLanguage.split("-")[0];
|
||||||
var dictionary = "";
|
var dictionary = "";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : "/command/core/load-language?",
|
url : "command/core/load-language?",
|
||||||
type : "POST",
|
type : "POST",
|
||||||
async : false,
|
async : false,
|
||||||
data : {
|
data : {
|
||||||
|
@ -36,7 +36,7 @@ var lang = navigator.language.split("-")[0]
|
|||||||
|| navigator.userLanguage.split("-")[0];
|
|| navigator.userLanguage.split("-")[0];
|
||||||
var dictionary = "";
|
var dictionary = "";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : "/command/core/load-language?",
|
url : "command/core/load-language?",
|
||||||
type : "POST",
|
type : "POST",
|
||||||
async : false,
|
async : false,
|
||||||
data : {
|
data : {
|
||||||
|
@ -33,7 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|||||||
|
|
||||||
var dictionary = "";
|
var dictionary = "";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : "/command/core/load-language?",
|
url : "command/core/load-language?",
|
||||||
type : "POST",
|
type : "POST",
|
||||||
async : false,
|
async : false,
|
||||||
data : {
|
data : {
|
||||||
|
@ -40,7 +40,7 @@ var Refine = {
|
|||||||
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
|
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
|
||||||
var dictionary = "";
|
var dictionary = "";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : "/command/core/load-language?",
|
url : "command/core/load-language?",
|
||||||
type : "POST",
|
type : "POST",
|
||||||
async : false,
|
async : false,
|
||||||
data : {
|
data : {
|
||||||
|
@ -11,7 +11,7 @@ Refine.SetLanguageUI = function(elmt) {
|
|||||||
|
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : "/command/core/get-languages?",
|
url : "command/core/get-languages?",
|
||||||
type : "GET",
|
type : "GET",
|
||||||
async : false,
|
async : false,
|
||||||
data : {
|
data : {
|
||||||
@ -29,7 +29,7 @@ Refine.SetLanguageUI = function(elmt) {
|
|||||||
|
|
||||||
this._elmts.set_lan_btn.bind('click', function(e) {
|
this._elmts.set_lan_btn.bind('click', function(e) {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : "/command/core/set-preference?",
|
url : "command/core/set-preference?",
|
||||||
type : "POST",
|
type : "POST",
|
||||||
async : false,
|
async : false,
|
||||||
data : {
|
data : {
|
||||||
|
@ -36,7 +36,7 @@ var preferenceUIs = [];
|
|||||||
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
|
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
|
||||||
var dictionary = "";
|
var dictionary = "";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : "/command/core/load-language?",
|
url : "command/core/load-language?",
|
||||||
type : "POST",
|
type : "POST",
|
||||||
async : false,
|
async : false,
|
||||||
data : {
|
data : {
|
||||||
|
@ -37,7 +37,7 @@ var ui = {};
|
|||||||
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
|
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
|
||||||
var dictionary = "";
|
var dictionary = "";
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url : "/command/core/load-language?",
|
url : "command/core/load-language?",
|
||||||
type : "POST",
|
type : "POST",
|
||||||
async : false,
|
async : false,
|
||||||
data : {
|
data : {
|
||||||
|
Loading…
Reference in New Issue
Block a user