Module PDF::Writer::Lang
In: lib/pdf/writer/lang.rb
TechBook Transaction::Simple SimpleTable Complex Action FontDescriptor Procset Catalog FontEncoding Pages Destination Info Encryption Annotation Contents Outline Page Outlines Font ViewerPreferences Image Hash OHash QuickRef StdDev FontMetrics StrokeStyle ARC4 PolygonPoint ImageInfo lib/pdf/simpletable.rb lib/pdf/writer.rb lib/pdf/techbook.rb lib/pdf/quickref.rb lib/pdf/charts/stddev.rb Charts Math lib/pdf/writer/ohash.rb lib/pdf/writer/fontmetrics.rb lib/pdf/writer/strokestyle.rb lib/pdf/writer/arc4.rb lib/pdf/writer/graphics.rb lib/pdf/writer/object.rb lib/pdf/writer/object/image.rb External lib/pdf/writer/object/font.rb lib/pdf/writer/object/outlines.rb lib/pdf/writer/object/contents.rb lib/pdf/writer/object/annotation.rb lib/pdf/writer/object/destination.rb lib/pdf/writer/object/viewerpreferences.rb lib/pdf/writer/object/info.rb lib/pdf/writer/object/fontencoding.rb lib/pdf/writer/object/page.rb lib/pdf/writer/object/catalog.rb lib/pdf/writer/object/outline.rb lib/pdf/writer/object/encryption.rb lib/pdf/writer/object/procset.rb lib/pdf/writer/object/action.rb lib/pdf/writer/object/pages.rb lib/pdf/writer/object/fontdescriptor.rb Object OffsetReader EN Lang lib/pdf/writer/graphics/imageinfo.rb Graphics Writer PDF dot/m_33_0.png

Methods

[]  

Classes and Modules

Module PDF::Writer::Lang::EN

Attributes

language  [RW]  PDF::Writer is fully internationalized. This module method sets the error messages to the specified language Module. The language Module must have a constant Hash called Message containing a set of symbols and localized versions of the messages associated with them.

If the file ‘pdf/writer/lang/es’ contains the module PDF::Writer::Lang::ES, the error messages for PDF could be localized to Espaņol thus:

  require 'pdf/writer'
  require 'pdf/writer/lang/es'

Localization is module-global; in a multithreaded program, all threads will use the current language‘s messages.

See PDF::Writer::Lang::EN for more information.

Public Class methods

Looks up the mesasge

[Source]

    # File lib/pdf/writer/lang.rb, line 39
39:     def [](message_id)
40:       @message[message_id]
41:     end

[Validate]