Effority free user directory is a cool module and Effority is generouse enough to put a free version with the source.
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