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.
  Ads  
Engage Software - Training Partner for DotNetNuke
 


  Sponsors  

Meet Our Sponsors

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.
AspDotNetStoreFront - E-Commerce by Design - The Leading ASP.NET shopping cart platform for developers!
SteadyRain
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Localize It! (L...  If you use Effority free user directory and need to localize it here is a solution.
Previous Previous
 
Next Next
New Post 9/1/2008 11:30 PM
User is offline Yehuda Tiram,
128 posts
9th Ranked


If you use Effority free user directory and need to localize it here is a solution. 
Modified By Yehuda Tiram,  on 9/2/2008 1:35:31 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

 
New Post 9/2/2008 8:10 AM
User is offline sema_erg
18 posts
10th Ranked


Re: If you use Effority free user directory and need to localize it here is a solution. 

   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 9:24 AM
User is offline Yehuda Tiram,
128 posts
9th Ranked


Re: If you use Effority free user directory and need to localize it here is a solution. 
Modified By Yehuda Tiram,  on 9/2/2008 11:31:16 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

 
New Post 9/2/2008 1:48 PM
User is offline Benjamin Hermann
164 posts
www.itm-consulting.de
9th Ranked




Re: If you use Effority free user directory and need to localize it here is a solution. 
Modified By Benjamin Hermann  on 9/2/2008 3:50:10 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



ITM Beratungsgesellschaft mbH | Effority.Net - Project Website
 
New Post 9/3/2008 1:44 AM
User is offline sema_erg
18 posts
10th Ranked


Re: If you use Effority free user directory and need to localize it here is a solution. 

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 Previous
 
Next Next
  Forum  General DotNetN...  Localize It! (L...  If you use Effority free user directory and need to localize it here is a solution.
 


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.

 


Intura Vision / Intura Enterprise
Point-of-Sale and business management applications targeted towards quick service, fast casual and delivery-based restaurant concepts.
www.intura.com
Dnaxp.Net
Dnaxp.Net offers a comprehensive base of information, resources, and support for DotNetNuke.
www.dnaxp.net
DNNMasters - modules, consulting, development
DNNMasters developers are involved in DNN development since DNN 1.0.9 and today we offer a broad range of DNN related products and services including custom development of modules, help with ing third party modules for specific needs, general DNN technical support and administrative services.
www.dnnmasters.com

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