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...If you use Effority free user directory and need to localize it here is a solution.If you use Effority free user directory and need to localize it here is a solution.
Previous
 
Next
New Post
9/2/2008 1:30 AM
 

 

Effority free user directory  is a cool module and Effority is generouse enough to put a free version with the source.
You can download it from http://www.effority.net 
Thank you Effority guys.
If you use Effority free user directory and need to localize it here is a solution.
It is actually a workaround, but it works.
Tested only on UserDirectory 01.00.03
 
1.       In the file View.ascx.resx add the values " Username.Text " etc. (and create the local View.ascx.he-IL.resx file according to the language you need)
You can use it to change the columns headers if you want.
 
2.       In the file View.ascx.vb replace the lines:
               For Each profileProperty As DotNetNuke.Entities.Profile.ProfilePropertyDefinition In Me.ProfilesPropertyCollectionToShow
 
                  sb.Append(String.format("<td nowrap style='cursor:pointer' onclick='Sort(""{0}"")' class='{1}'>{2}</td>", CleanColumnName(profileProperty.PropertyName), CssHead, profileProperty.PropertyName))
 
               Next
 
 
With these lines:
                    Dim HeaderLocalization
               For Each profileProperty As DotNetNuke.Entities.Profile.ProfilePropertyDefinition In Me.ProfilesPropertyCollectionToShow
                        Select Case profileProperty.PropertyName
                            Case "Username"
                                HeaderLocalization = Localization.GetString("Username.Text", LocalResourceFile)
                            Case "Email"
                                HeaderLocalization = Localization.GetString("Email.Text", LocalResourceFile)
                            Case "FirstName"
                                HeaderLocalization = Localization.GetString("FirstName.Text", LocalResourceFile)
                            Case "Prefix"
                                HeaderLocalization = Localization.GetString("Prefix.Text", LocalResourceFile)
                            Case "MiddleName"
                                HeaderLocalization = Localization.GetString("MiddleName.Text", LocalResourceFile)
                            Case "LastName"
                                HeaderLocalization = Localization.GetString("LastName.Text", LocalResourceFile)
                            Case "Suffix"
                                HeaderLocalization = Localization.GetString("Suffix.Text", LocalResourceFile)
                            Case "Unit"
                                HeaderLocalization = Localization.GetString("Unit.Text", LocalResourceFile)
                            Case "Street"
                                HeaderLocalization = Localization.GetString("Street.Text", LocalResourceFile)
                            Case "City"
                                HeaderLocalization = Localization.GetString("City.Text", LocalResourceFile)
                            Case "Region"
                                HeaderLocalization = Localization.GetString("Region.Text", LocalResourceFile)
                            Case "Country"
                                HeaderLocalization = Localization.GetString("Country.Text", LocalResourceFile)
                            Case "PostalCode"
                                HeaderLocalization = Localization.GetString("PostalCode.Text", LocalResourceFile)
                            Case "Telephone"
                                HeaderLocalization = Localization.GetString("Telephone.Text", LocalResourceFile)
                            Case "Cell"
                                HeaderLocalization = Localization.GetString("Cell.Text", LocalResourceFile)
                            Case "Fax"
                                HeaderLocalization = Localization.GetString("Fax.Text", LocalResourceFile)
                            Case "Website"
                                HeaderLocalization = Localization.GetString("Website.Text", LocalResourceFile)
                            Case "IM"
                                HeaderLocalization = Localization.GetString("IM.Text", LocalResourceFile)
                            Case "Biography"
                                HeaderLocalization = Localization.GetString("Biography.Text", LocalResourceFile)
                            Case "TimeZone"
                                HeaderLocalization = Localization.GetString("TimeZone.Text", LocalResourceFile)
                            Case "PreferredLocale"
                                HeaderLocalization = Localization.GetString("PreferredLocale.Text", LocalResourceFile)
                            Case Else
                                HeaderLocalization = profileProperty.PropertyName
                        End Select
                        sb.Append(String.format("<td nowrap style='cursor:pointer' onclick='Sort(""{0}"")' class='{1}'>{2}</td>", CleanColumnName(profileProperty.PropertyName), CssHead, HeaderLocalization))
                    Next
 

Yehuda


Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
New Post
9/2/2008 10:10 AM
 

   yehuda tiram thanks for your answer,

but it is too complex for me.Is there any simple answer or can you explain simply,i didn't understand anything

 
New Post
9/2/2008 11:24 AM
 

 

 
I would send you the files but the module's license says that it cannot be distributed so it is impossible.
Anyways, all you have to do is to go to your site via FTP to  /DesktopModules/effority.UserDirectory
1.     Find the file View.ascx.vb and change it as described abpove.
2.     Then go to /DesktopModules/effority.UserDirectory/App_LocalResources
a.     Find the file View.ascx.resx
b.     Copy it to your computer.
c.     Open it and add the values you want for English headers. Look in the code above for the possible values. They are actually referred to the profile properties.  
d.     Save it
e.     Upload it back to the same place you took it from (it will trash the original so make a copy before you do that).
f.      In your computer copy the file View.ascx.resx in order to create a new file based on it
g.     Change the name to your language in the following manner View.ascx.he-IL.resx Note that all I had to do to make it localize to Hebrew is to add ".he-IL " (without the quotes) in the middle before the extension.
h.     Change the values to your language and save it
i.      Upload it to the same place you took it from
That is it.

Yehuda


Yehuda Tiram
AtarimTR
AtarimTR
972-2-5700114   |   972-54-4525492   |    http://www.atarimtr.co.il
 
New Post
9/2/2008 3:48 PM
 

hi guys,

sending the source directly to use would be useful, right? ;) so we could publish it in a last 1.0.x release.

the upcoming 1.1.x version already solves this issue ... get the installable source (.net 3.5) here:

http://www.codeplex.com/userdirectory/SourceControl/ListDownloadableCommits.aspx

Best,
Benjamin

 
New Post
9/3/2008 3:44 AM
 

offf i can do anything.It must be a simple solution for this problem.

First : i find view.ascx.vb but it is in DekstopModule/MarketShare and i think it isn't the right 'view.ascx' which you say.

if it is right,where i replace that code in it.It hasn't got a similar code to replace.

i want to explain my site again:

i make it using dnn starter kit.And i added 3 modules in c#.i add languages HOST->Languages->installlanguages->return->that is it.

when i return back i see a choice part for languages->English and Turkish.

But i remove it to server when i want to add languages i take a Warning which i wrote you.

WARNING:

Endjob Creating/Updating locale

Then i said to myself "it is only a warning not an error, return back:)"

but this time there isnt that languages part.

I want to have two languages to choosing.Not only turkish or english.Both of them,i want to see 

Please help me but explain it using a simple way 

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Language and In...Language and In...If you use Effority free user directory and need to localize it here is a solution.If you use Effority free user directory and need to localize it here is a solution.


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