ChrisHammond / dnnCHAT

This module for DNN 7.1.0+ utilizes SignalR and DAL2 to create a Chat Room functionality for DNN
http://www.dnnchat.com
Other
24 stars 21 forks source link

Check localization issues #19

Open ChrisHammond opened 10 years ago

ChrisHammond commented 10 years ago

Test to ensure that all content can be localized for other languages (rooms names, descriptions, welcomes not included)

GregGreensky commented 10 years ago

DNN Chat had almost always (except for the very fist version) problems with putting up localized values only from the SharedResources.pl-PL.resx as is my case. It keeps pulling the values from the original SharedResources.resx file even though the language is pl-PL.

Recently (after upgrading DNN to 7.3.1and DNN Chat to 2.1.0) the DNN Event Viewer started to show meaningful error messages similar to below:

Message:

System.Exception: The following resource file caused an error while reading: ---> System.ArgumentException: Względna ścieżka wirtualna 'sharedresources.pl-pl.resx' nie jest dozwolona. w System.Web.VirtualPath.FailIfRelativePath() w System.Web.Hosting.HostingEnvironment.MapPathActual(VirtualPath virtualPath, Boolean permitNull) w System.Web.Hosting.HostingEnvironment.MapPathInternal(VirtualPath virtualPath) w System.Web.Hosting.HostingEnvironment.MapPath(VirtualPath virtualPath) w DotNetNuke.Services.Localization.LocalizationProvider.GetResourceFileCallBack(CacheItemArgs cacheItemArgs) --- Koniec śladu stosu wyjątków wewnętrznych --- w DotNetNuke.Services.Localization.LocalizationProvider.GetResourceFileCallBack(CacheItemArgs cacheItemArgs) w DotNetNuke.Common.Utilities.DataCache.GetCachedDataFromDictionary(CacheItemArgs cacheItemArgs, CacheItemExpiredCallback cacheItemExpired)

Only the virtual paths change (in bold): 'sharedresources.resx' 'sharedresources.host.resx' 'sharedresources.portal-0.resx' 'sharedresources.pl-pl.host.resx' 'sharedresources.pl-pl.portal-0.resx'

The FF 30 console shows two errors:

Interestingly, after the both upgrades DNN Chat started to localize the message for Disconnected.Text value. Only this one. :)

ChrisHammond commented 7 years ago

I ran into a problem with one of my servers filling up on space due to the localization issues. Unfortunately with all my testing I've been unable to reproduce in development to get them corrected :(