Class: GetText::Tools::Task::Path

### Home Classes Methods

### In Files

- lib/gettext/tools/task.rb

### Parent

Object

### Methods

- ::new
- #edit_po_directory
- #edit_po_file
- #mo_directory
- #mo_file
- #po_directory
- #po_file
- #po_file_is_updated?
- #po_time_stamp_file
- #pot_file

### Class/Module Index

Quicksearch

- GetText
- GetText::ClassInfo
- GetText::ErbParser
- GetText::GladeParser
- GetText::LocalePath
- GetText::MO
- GetText::MO::HeaderRev1
- GetText::MO::InvalidFormat
- GetText::NoboundTextDomainError
- GetText::PO
- GetText::PO::NonExistentEntryError
- GetText::POEntry
- GetText::POEntry::Formatter
- GetText::POEntry::InvalidTypeError
- GetText::POEntry::NoMsgctxtError
- GetText::POEntry::NoMsgidError
- GetText::POEntry::NoMsgidPluralError
- GetText::POEntryForRubyParser
- GetText::POFormat
- GetText::POParser
- GetText::ParseError
- GetText::RubyParser
- GetText::TextDomain
- GetText::TextDomainGroup
- GetText::TextDomainManager
- GetText::Tools
- GetText::Tools::MsgCat
- GetText::Tools::MsgCat::Config
- GetText::Tools::MsgCat::Merger
- GetText::Tools::MsgInit
- GetText::Tools::MsgInit::ArgumentError
- GetText::Tools::MsgInit::Error
- GetText::Tools::MsgInit::ValidationError
- GetText::Tools::MsgMerge
- GetText::Tools::MsgMerge::Config
- GetText::Tools::MsgMerge::FuzzyEntryFinder
- GetText::Tools::MsgMerge::Merger
- GetText::Tools::Task
- GetText::Tools::Task::Error
- GetText::Tools::Task::Path
- GetText::Tools::Task::ValidationError
- GetText::Tools::XGetText

No matching classes.

# GetText::Tools::Task::Path

### Attributes

domain[R]
locale[R]
mo_base_directory[R]
po_base_directory[R]

### Public Class Methods

new(po_base_directory, mo_base_directory, domain, locale=nil) click to toggle source

    # File lib/gettext/tools/task.rb, line 553
    def initialize(po_base_directory, mo_base_directory, domain, locale=nil)
      @po_base_directory = po_base_directory
      @mo_base_directory = mo_base_directory
      @domain = domain
      @locale = locale
    end

### Public Instance Methods

edit_po_directory() click to toggle source

    # File lib/gettext/tools/task.rb, line 582
    def edit_po_directory
      po_directory
    end

edit_po_file() click to toggle source

    # File lib/gettext/tools/task.rb, line 586
    def edit_po_file
      edit_po_directory + "#{@domain}.edit.po"
    end

mo_directory() click to toggle source

    # File lib/gettext/tools/task.rb, line 590
    def mo_directory
      @mo_base_directory + @locale + "LC_MESSAGES"
    end

mo_file() click to toggle source

    # File lib/gettext/tools/task.rb, line 594
    def mo_file
      mo_directory + "#{@domain}.mo"
    end

po_directory() click to toggle source

    # File lib/gettext/tools/task.rb, line 564
    def po_directory
      @po_base_directory + @locale
    end

po_file() click to toggle source

    # File lib/gettext/tools/task.rb, line 568
    def po_file
      po_directory + "#{@domain}.po"
    end

po_file_is_updated?() click to toggle source

    # File lib/gettext/tools/task.rb, line 576
    def po_file_is_updated?
      return false unless po_file.exist?
      return true unless po_time_stamp_file.exist?
      po_file.mtime > po_time_stamp_file.mtime
    end

po_time_stamp_file() click to toggle source

    # File lib/gettext/tools/task.rb, line 572
    def po_time_stamp_file
      po_directory + "#{@domain}.po.time_stamp"
    end

pot_file() click to toggle source

    # File lib/gettext/tools/task.rb, line 560
    def pot_file
      @po_base_directory + "#{@domain}.pot"
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.