Class: Fox::FXTranslator

Inherits:
Object
  • Object
show all
Defined in:
rdoc-sources/FXTranslator.rb

Overview

A translator translates a message to another language.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(a) ⇒ FXTranslator

Return a new translator for the application a (an FXApp instance).



13
# File 'rdoc-sources/FXTranslator.rb', line 13

def initialize(a); end

Instance Attribute Details

#appObject (readonly)

The application associated with this translator Fox::FXApp



8
9
10
# File 'rdoc-sources/FXTranslator.rb', line 8

def app
  @app
end

Instance Method Details

#textCodecObject

Return a reference to the text codec.



29
# File 'rdoc-sources/FXTranslator.rb', line 29

def textCodec; end

#textCodec=(codec) ⇒ Object

Change the text codec used to decode the messages embedded in the source.



24
# File 'rdoc-sources/FXTranslator.rb', line 24

def textCodec=(codec); end

#tr(context, message, hint = nil) ⇒ Object

Translate a message.



18
# File 'rdoc-sources/FXTranslator.rb', line 18

def tr(context, message, hint=nil); end