Localizing Activation Success and Failure Pages

Important Feedback is deprecated in Flare, which means that it is slated to be removed in a future version.

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 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.

Copy
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.

Copy
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.