Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...problem with language packagesproblem with language packages
Previous
 
Next
New Post
3/31/2008 6:54 PM
 

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 8:18 PM
 

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.

 
New Post
3/31/2008 10:14 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.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...problem with language packagesproblem with language packages


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out