Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
Webhost4Life - $4.95 Windows Hosting
 


  Sponsors  

Meet Our Sponsors

telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
FCKeditor Project
Salaro -- Skins and more
 


DotNetNuke Forums
 
  Forum  DotNetNuke® Pro...  Language Packs ...  Problem with language pack with key code longer then 6 charters
Previous Previous
 
Next Next
New Post 6/10/2006 11:26 AM
User is offline Sasa Vilic
1 posts
10th Ranked


Problem with language pack with key code longer then 6 charters 
Hi, I don't know if this is bug, or even if someone has report this already.

I have uploaded Serbian Language Pack (Key code: sr-SP-Latn) and open log viewer.

I saw something like this:

core localisation file not found: .....LogViewer.sr-SP-.resx

Then, I had to change all files from ......sr-SP-Latn.resx to sr-SP-.resx  and everything worked fine.

Problem: database table Portals have field DefaultLanguage which is only 6 charters long and when I have opened that table there was "sr-SP-", instead of "sr-SP-Latn".

I use dotnetnuke 3.2.2.

Thanks,
Sasa


 
New Post 2/4/2007 4:20 PM
User is offline Goran Jevtic
2 posts
10th Ranked


Re: Problem with language pack with key code longer then 6 charters 
Hi Sasa,

I have had same problem and fix them with following steps:

Firstly, I have altered length of DefaultLanguage column in Portals table with script (over Host>SQL menu):
alter table portals alter column defaultlanguage nvarchar(10)

Next, I have created sproc UpdatePortalInfo with different column length:
/* drop */
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[UpdatePortalInfo]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[UpdatePortalInfo]

/* create */
CREATE procedure dbo.UpdatePortalInfo
@PortalId           int,
@PortalName         nvarchar(128),
@LogoFile           nvarchar(50),
@FooterText         nvarchar(100),
@ExpiryDate         datetime,
@UserRegistration   int,
@BannerAdvertising  int,
@Currency           char(3),
@AdministratorId    int,
@HostFee            money,
@HostSpace          int,
@PaymentProcessor   nvarchar(50),
@ProcessorUserId    nvarchar(50),
@ProcessorPassword  nvarchar(50),
@Description        nvarchar(500),
@KeyWords           nvarchar(500),
@BackgroundFile     nvarchar(50),
@SiteLogHistory     int,
@SplashTabId          int,
@HomeTabId          int,
@LoginTabId         int,
@UserTabId          int,
@DefaultLanguage    nvarchar(10),
@TimeZoneOffset        int,
@HomeDirectory varchar(100)
as
update dbo.Portals
set    PortalName = @PortalName,
       LogoFile = @LogoFile,
       FooterText = @FooterText,
       ExpiryDate = @ExpiryDate,
       UserRegistration = @UserRegistration,
       BannerAdvertising = @BannerAdvertising,
       Currency = @Currency,
       AdministratorId = @AdministratorId,
       HostFee = @HostFee,
       HostSpace = @HostSpace,
       PaymentProcessor = @PaymentProcessor,
       ProcessorUserId = @ProcessorUserId,
       ProcessorPassword = @ProcessorPassword,
       Description = @Description,
       KeyWords = @KeyWords,
       BackgroundFile = @BackgroundFile,
       SiteLogHistory = @SiteLogHistory,
       SplashTabId = @SplashTabId,
       HomeTabId = @HomeTabId,
       LoginTabId = @LoginTabId,
       UserTabId = @UserTabId,
       DefaultLanguage = @DefaultLanguage,
       TimeZoneOffset = @TimeZoneOffset,
       HomeDirectory = @HomeDirectory
where  PortalId = @PortalId

Now, language code works fine.

Regards
 
Previous Previous
 
Next Next
  Forum  DotNetNuke® Pro...  Language Packs ...  Problem with language pack with key code longer then 6 charters
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de
The Standard in Senior Housing Information
SNAPforSeniors provides consumers with free online resources to assist them with their search for senior housing
www.snapforseniors.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP