org.zanata.client.commands.pull
Class OfflinePoStrategy

java.lang.Object
  extended by org.zanata.client.commands.pull.AbstractPullStrategy
      extended by org.zanata.client.commands.pull.AbstractGettextPullStrategy
          extended by org.zanata.client.commands.pull.GettextDirStrategy
              extended by org.zanata.client.commands.pull.OfflinePoStrategy
All Implemented Interfaces:
PullStrategy

public class OfflinePoStrategy
extends GettextDirStrategy

Similar to GettextDirStrategy but uses msgctxt to map text flow id.

Author:
David Mason, damason@redhat.com

Constructor Summary
OfflinePoStrategy(PullOptions opts)
           
 
Method Summary
protected  org.zanata.adapter.po.PoWriter2 getPoWriter()
           
 boolean isTransOnly()
          Indicates if this strategy must work without access to source files.
 
Methods inherited from class org.zanata.client.commands.pull.GettextDirStrategy
getTransFileToWrite, writeTransFile
 
Methods inherited from class org.zanata.client.commands.pull.AbstractGettextPullStrategy
getExtensions, needsDocToWriteTrans, writeSrcFile
 
Methods inherited from class org.zanata.client.commands.pull.AbstractPullStrategy
getOpts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OfflinePoStrategy

public OfflinePoStrategy(PullOptions opts)
Method Detail

getPoWriter

protected org.zanata.adapter.po.PoWriter2 getPoWriter()
Overrides:
getPoWriter in class AbstractGettextPullStrategy

isTransOnly

public boolean isTransOnly()
Description copied from interface: PullStrategy
Indicates if this strategy must work without access to source files. No attempt should be made to read, write or push source documents for a trans-only strategy.

Specified by:
isTransOnly in interface PullStrategy
Overrides:
isTransOnly in class AbstractPullStrategy
Returns:
true if this strategy only allows interactions with translation files.


Copyright © 2013 Zanata Project. All Rights Reserved.