Yes, I override the global.asax and add this code:
protected override void OnApplicationStarted( object sender, EventArgs e )
{
base.OnApplicationStarted( sender, e );
// Your code here
System.Web.Mvc.GlobalFilters.Filters.Add( new FBD.Language.LanguageFilter() );
}
The problem was the FBD.Language.LanguageFilter. apparently this is called in the backend too :-)
This is the filter (in namespace FBD.Language):
public class LanguageFilter : ActionFilterAttribute
{
public override void OnActionExecuting( ActionExecutingContext filterContext )
{
FBD.Language.CheckURLLanguage();
base.OnActionExecuting( filterContext );
}
}
I've also just had this happen after upgrading from 8.0.2 to 8.1.0, not sure why. Language is set correctly, etc. I show no languages to choose from under Settings, so not sure exactly how to proceed to get rid of the [] labels on everything.
Backend menu item texts disappeared?
Hey.
I've been working on an Umbraco 7.6.1 website for a couple of weeks.
Today I get back from a short 2-day holiday and all menu item texts have disappeared in the backend.
For example, in stead of "Save and Publish", it now says "[buttons_saveAndPublish]".
This is the case for all menu items... "Create" -> "[actionscreate]" "Name" -> "[generalname]" "Search" -> "[general_typeToSearch]" ... etc.
Anybody know a fix for this?
Thanks. Kris.
Hi Kris
What about browser language settings?
Do you have the same language as previously?
Thanks,
Alex
I was on a holiday, I couldn't have changed it ;-) Nobody else has access to my workstation.
The only thing I did do this morning, is use the Windows Disk Cleanup.
This tool also cleans "Temporary Internet Files", could that be the problem?
K.
It shouldn't be a problem. Did you set the culture for your current domain name in "Culture and Hostnames" section?
Isn't that for the dictionary items? Those are not the problem.
It's the translations in the backend that are gone. See the following screenshot:
Cleared my browser cache, restarted IIS, rebooted my workstation... didn't help...
Anyone else has any ideas?
Did you set the culture for your current domain name in "Culture and Hostnames" section?
Yes, I just did, doesn't change a thing
It's really strange, what about disk? do you have the same permissions to file system ?
The permissions seem correct
Anyone else?
Hi,
Did you perharps change the language of the user to something that is not supported by Umbraco.
You need to go to the users section and then to user you are logged in with to change the language
dave
Nope, I just left it as it was (en-GB). I tried a couple of different options, but no difference :'(
Regards.
Does it also occurs when you change the language of the user ?
Maybe you accidently removed the language files ?
Dave
It stays the same no matter which language I choose.
Will continue checking the issue tomorrow, now time for some quality time ;-)
AHA, I found the culprit!
Before my holiday I did some changes in the language detection (it's a multilingual site). When I disable my changes it works again :-)
So my language detection for the public site seems to have some influence on the backend language, oops...
Is there some kind of "IsBackend" variable available in Umbraco, so I can distinguish between the two?
Thanks.
I'm really happy that you found a solution, can you show the code that caused this problem?
Yes, I override the global.asax and add this code:
The problem was the FBD.Language.LanguageFilter. apparently this is called in the backend too :-)
This is the filter (in namespace FBD.Language):
I now changed it to this (which works):
I've also just had this happen after upgrading from 8.0.2 to 8.1.0, not sure why. Language is set correctly, etc. I show no languages to choose from under Settings, so not sure exactly how to proceed to get rid of the [] labels on everything.
is working on a reply...