Merge pull request #922 from opendatatrentino/fixLangContext

Translations aren't loaded with server context different from "/"
This commit is contained in:
Tom Morris 2014-12-21 10:47:32 -05:00
commit d330532cc8
7 changed files with 8 additions and 8 deletions

View File

@ -39,7 +39,7 @@ var lang = navigator.language.split("-")[0]
|| navigator.userLanguage.split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",
url : "command/core/load-language?",
type : "POST",
async : false,
data : {

View File

@ -36,7 +36,7 @@ var lang = navigator.language.split("-")[0]
|| navigator.userLanguage.split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",
url : "command/core/load-language?",
type : "POST",
async : false,
data : {

View File

@ -33,7 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",
url : "command/core/load-language?",
type : "POST",
async : false,
data : {

View File

@ -40,7 +40,7 @@ var Refine = {
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",
url : "command/core/load-language?",
type : "POST",
async : false,
data : {

View File

@ -11,7 +11,7 @@ Refine.SetLanguageUI = function(elmt) {
$.ajax({
url : "/command/core/get-languages?",
url : "command/core/get-languages?",
type : "GET",
async : false,
data : {
@ -29,7 +29,7 @@ Refine.SetLanguageUI = function(elmt) {
this._elmts.set_lan_btn.bind('click', function(e) {
$.ajax({
url : "/command/core/set-preference?",
url : "command/core/set-preference?",
type : "POST",
async : false,
data : {

View File

@ -36,7 +36,7 @@ var preferenceUIs = [];
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",
url : "command/core/load-language?",
type : "POST",
async : false,
data : {

View File

@ -37,7 +37,7 @@ var ui = {};
var lang = (navigator.language|| navigator.userLanguage).split("-")[0];
var dictionary = "";
$.ajax({
url : "/command/core/load-language?",
url : "command/core/load-language?",
type : "POST",
async : false,
data : {