Class: Goog

nyc/lang/Goog~ Goog


new Goog(options)

Class for language translation using the Google Translate Gadget

Parameters:
Name Type Description
options module:nyc/lang/Translate~Translate.Options

Constructor options

Source:
Fires:

Extends

Methods


<protected> getCookieValue()

Gets a cookie value

Inherited From:
Overrides:
Source:
Returns:

cookie

Type
string

init()

Callback to set up Google Translate

Source:

lang()

Get the currently chosen language code

Inherited From:
Source:
Returns:

The currently chosen language code

Type
string

translate(event)

Sets the chosen language and performs message substitution

Parameters:
Name Type Description
event jQuery.Event
Inherited From:
Overrides:
Source:

Events


change

The language value has changed

Type: string
Inherited From:
Source:

ready

The class has completed initialization

Type: boolean
Inherited From:
Source: