Codebase list ruby-fxruby / run/867a9ad8-16f3-49f2-8da1-08141b9b00dd/main rdoc-sources / FXTranslator.rb
run/867a9ad8-16f3-49f2-8da1-08141b9b00dd/main

Tree @run/867a9ad8-16f3-49f2-8da1-08141b9b00dd/main (Download .tar.gz)

FXTranslator.rb @run/867a9ad8-16f3-49f2-8da1-08141b9b00dd/mainraw · history · blame

module Fox
  #
  # A translator translates a message to another language.
  #
  class FXTranslator

    # The application associated with this translator {FXApp}
    attr_reader :app

    #
    # Return a new translator for the application _a_ (an FXApp instance).
    #
    def initialize(a); end

    #
    # Translate a message.
    #
    def tr(context, message, hint=nil); end

    #
    # Change the text codec used to decode the messages embedded in the
    # source.
    #
    def textCodec=(codec); end

    #
    # Return a reference to the text codec.
    #
    def textCodec; end
  end
end