You are here: Getting Set Up with MadCap Feedback > Localizing Activation Success and Failure Pages

 

Localizing Activation Success and Failure Pages

When you configure the Feedback Server Admin, you can enter URLs to be displayed if the registration process is successful or when it is not successful (see Configuring the MadCap Feedback Server Admin). If you want these pages to be displayed in different languages, you can localize them by using a server-side scripting page (ASPX, PHP).

example

This example is a guideline (not necessarily the actual code) for how you might accomplish this based on ASP.NET. The client’s language preferences can be accessed from an ASP.NET page using the following:

this.Context.Request.UserLanguages

The UserLanguages property is a string array which contains the client’s language preferences. You can use this information during the Page_Load event, for example. Here’s an example ASP.NET code snippet:

protected void Page_Load( object sender, EventArgs e )

{

string language = this.Context.Request.UserLanguages[0];

string newPage = "FinishActivateUserComplete";

if ( !string.IsNullOrEmpty( language ) )

{

newPage += ("_" + language);

}

newPage += ".htm";

this.Response.Redirect( newPage );

}

In this example, the ASP.NET page is redirected to a new page called "FinishActivateUserComplete." The code checks if the client language preference is available. If it is, an underscore and the language code is appended to the new page’s filename. Finally, the ".htm" extension is added to the filename and the page is redirected. This example script relies on a web page existing with the filename that is calculated in the script. The idea is to redirect the user to a web page that has content tailored to the web browser language preference.

Note: This feature is available only with MadCap Feedback Server, not with the MadCap Feedback Service.

See Also

PDF Downloads:

Feedback Explorer Quick Guide

Feedback Explorer Getting Started Guide

Feedback Explorer What's New Guide

Feedback Explorer Key Features Guide

Feedback Explorer Shortcuts