Class: Fox::FXTranslator
- Inherits:
-
Object
- Object
- Fox::FXTranslator
- Defined in:
- rdoc-sources/FXTranslator.rb
Overview
A translator translates a message to another language.
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
The application associated with this translator FXApp.
Instance Method Summary collapse
-
#initialize(a) ⇒ FXTranslator
constructor
Return a new translator for the application a (an FXApp instance).
-
#textCodec ⇒ Object
Return a reference to the text codec.
-
#textCodec=(codec) ⇒ Object
Change the text codec used to decode the messages embedded in the source.
-
#tr(context, message, hint = nil) ⇒ Object
Translate a message.
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
#app ⇒ Object (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
#textCodec ⇒ Object
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, , hint=nil); end |