dnnCHAT icon indicating copy to clipboard operation
dnnCHAT copied to clipboard

Check localization issues

Open ChrisHammond opened this issue 12 years ago • 2 comments

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

ChrisHammond avatar Sep 23 '13 19:09 ChrisHammond

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:

  • detailed error: [Exception... "Access to restricted URI denied" code: "1012" nsresult: "0x805303f4 (NS_ERROR_DOM_BAD_URI)" location: ""] originating in a resource://gre/modules/addons/XPIProvider.jsm -> jar:file:///C:/Users/Grzegorz/AppData/Roaming/Mozilla/Firefox/Profiles/u3qwtoxq.default-1376713163407/extensions/[email protected]!/bootstrap.js -> resource://gre/modules/commonjs/toolkit/loader.js -> resource://jid1-4p0kohsjxu1qgg-at-jetpack/hola_firefox_ext/lib/proxy.js file, line 305;
  • Error: cannot call methods on dialog prior to initialization; attempted to call method 'close' in http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js?cdv=81 file, line 3

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

GregGreensky avatar Jul 22 '14 15:07 GregGreensky

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 :(

ChrisHammond avatar Jan 11 '17 03:01 ChrisHammond