Page 1 of 1

Label and Translation not working after upgrade to 9.63

PostPosted: Wed Dec 23, 2015 8:16 pm
by verybless
Before upgrade to 9.63, I have customize the Home button to Close.

It is working well till I upgraded to 9.63. Now it is displaying Home , instead of Close. No matter what values I changed to for whichever labels, it is not displaying the translated labels.

Thank you


(function() {
'use strict';

angular
.module('app')
.config(['$translateProvider', 'calendarOptions', function ($translateProvider, calendarOptions) {


//English language and substitutions
$translateProvider.translations('en', {

//These are name value pairs. Customize the values only (the item after the colon)
'Home': "Close"
'Calendars': "Calendars",
'Filters': "Filters",
'Settings': "Settings",

Re: Label and Translation not working after upgrade to 9.63

PostPosted: Thu Dec 24, 2015 7:01 am
by John Sindelar
Hi there,

I think this is because you're missing the comma after Close; it should look like...

//These are name value pairs. Customize the values only (the item after the colon)
'Home': "Close",
'Calendars': "Calendars",
'Filters': "Filters",

Note that I sometime have to apply the changes more than once to force the cache to clear; that or close and reopen the file after making translation changes.

Hope that helps,

John

Re: Label and Translation not working after upgrade to 9.63

PostPosted: Fri Dec 25, 2015 5:37 pm
by verybless
Merry Christmas,

I did have the comma after the close. But I found the source of the problem. Let me try to explain

It is caused by the slanting double code. When I changed the label from "Home" to "Close", I accidentally deleted the closing double quote . I then inserted the double quote from the keyboard. Problem was this double quote is a "slanting" double quote. This was the problem. The double quote must be "vertical".

Cheers

Re: Label and Translation not working after upgrade to 9.63

PostPosted: Sat Dec 26, 2015 7:55 am
by John Sindelar
Excellent! Thanks for the screenshot.