Archive

Posts Tagged ‘CodePlex’

Google Language ASP.NET Controls

April 16, 2009 Leave a comment

I published my second project at CodePlex – Google Language ASP.NET Controls.

In my previuos post, I wrote the sample code to create Google Ajax Language Custom Controls – they are Ajax-able, but this time I just build regular server control to save some time :-)

The usage is:

  • Include library:
<%@ Register Assembly="GoogleLanguage.WebControls" Namespace="GoogleLanguage.WebControls" TagPrefix="glc" %>
  • Bootstrap Javascript with LanguageManager:
<glc:LanguageManager ID="LanguageManager1" runat="server" />
  • Use <Literal> tag for next text:
<glc:Literal ID="Literal5" runat="server" Text="Do you like music too?" DestinationLanguage="FRENCH" />
  • Use <Translator> tag for existing text in server controls:
<asp:TextBox ID="TextBox1" runat="server" Text="Important Notice" />
<glc:Translator ID="Translator2" runat="server" TargetControlID="TextBox1" DestinationLanguage="GERMAN" />

Screenshot – Sample Code

Sample Code

Screenshot – Sample Output

Sample Output
Follow

Get every new post delivered to your Inbox.