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  |  

AppTheory specializes in solutions based on the DotNetNuke platform and has 2 employees on the DotNetNuke Core Team.
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
Aspose - The .NET & Java component publisher
 


  Sponsors  

Meet Our Sponsors

OnyakTech
The best choice for your web site host, email hosting, and domain registration.
CrystalTech Web Hosting™
Webhost4life, specialists in DNN hosting
Mad Development is a full service interactive agency focusing on the merge of design, technology, e-commerce, and affiliate marketing by providing total website solutions.
MadCap Software, Inc.
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Localize It! (L...  problem with language packages
Previous Previous
 
Next Next
New Post 3/31/2008 3:54 PM
User is offline walaa
24 posts
10th Ranked


problem with language packages 

hi all

please i have posted this problem previously but there is no one answered me

plz i want to know from where can i change the names of monthes that appear in the home page of  the website?

and i think it is related to the language package which i made as default language to the website so from where can i change the names of monthes in the language package

 
New Post 3/31/2008 5:18 PM
User is offline Alejandro Quiroga Alsina
75 posts
DNNCastellano.com
10th Ranked


Re: problem with language packages 

Hello Walaa,

AFAIK, the selected locale sets .NET (and not DotNetNuke) to obtain the date related settings directly from Windows settings (server side).

However it is an interesting question how to tweak this behavior. For example, my sites show the day of the week and the month using a lowercase first letter, because that is the way Spanish is supposed to behave. And, even if I would like to see those first letters uppercased, I don't know how to configure it.

If anyone does, any recommendation will be very welcome.

Saludos,

Alejandro.


Spanish Language Packs
Paquetes de Idioma en Español
 
New Post 3/31/2008 7:14 PM
User is offline Alejandro Quiroga Alsina
75 posts
DNNCastellano.com
10th Ranked


Re: problem with language packages 
Modified By Alejandro Quiroga Alsina  on 3/31/2008 10:43:46 PM)
Hey, Walaa,

After investigating a little the skin object, I have found that our needs are really easy to satisfy.

In order to format the date the way you want, you only need to edit the file "CurrentDate.ascx.vb", which is stored inside the "~/Admin/Skins" directory.

Inside that file, look at the following code (and modify it to suit your needs):

Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load

    ' public attributes
    If CssClass <> "" Then
        lblDate.CssClass = CssClass
    End If

    Dim objUserTime As New UserTime

    ' ---{ I have added the following 2 lines }---
    Dim sMonth() As String = {"Enero", "Febrero", "Marzo", "Abril", _
                              "Mayo", "Junio", "Julio", "Agosto", _
                              "Septiembre", "Octubre",
"Noviembre", "Diciembre"}

    lblDate.Text = objUserTime.CurrentUserTime.Day.ToString() _
        + " de " + sMonth(objUserTime.CurrentUserTime.Month - 1) _
        + " de " + objUserTime.CurrentUserTime.Year.ToString()

    ' ---{ I have commented the following 5 lines }---
    'If Dateformat <> "" Then
    '    lblDate.Text = format(objUserTime.CurrentUserTime, Dateformat)
    'Else
    '    lblDate.Text = objUserTime.CurrentUserTime.ToLongDateString
    'End If


End Sub


And that's it. Problem solved!  :-D

Saludos,
Alejandro.

Spanish Language Packs
Paquetes de Idioma en Español
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Localize It! (L...  problem with language packages
 


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.

 


Web Valley
Website design, Database development
www.webvalley.com
UK DotNetNuke CMS installation, hosting & support
UK based installation, branding, customising, integration, hosting, training, support and maintenance services for DotNetNuke
www.deburca.co.uk
Need Help with your DotNetNuke website?
Jango Studios offers exclusive DotNetNuke Skin Design, Module Development, Web Marketing and Web Hosting.
www.jangostudios.net

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