org.jboss.jdocbook.i18n.gettext
Class PoSynchronizerImpl

java.lang.Object
  extended by org.jboss.jdocbook.i18n.gettext.PoSynchronizerImpl
All Implemented Interfaces:
PoSynchronizer

public class PoSynchronizerImpl
extends java.lang.Object
implements PoSynchronizer

Implementation of the PoSynchronizer contract based on system calls to either the 'msgmerge' or the 'msginit' commands (both part of the GNU gettext package).

Author:
Steve Ebersole

Constructor Summary
PoSynchronizerImpl()
           
 
Method Summary
 void synchronizePo(java.io.File potDirectory, java.io.File translationDirectory, java.util.Locale translationLocale, Options options)
          Perform the synchronization on the the PO files.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoSynchronizerImpl

public PoSynchronizerImpl()
Method Detail

synchronizePo

public void synchronizePo(java.io.File potDirectory,
                          java.io.File translationDirectory,
                          java.util.Locale translationLocale,
                          Options options)
                   throws JDocBookProcessException
Perform the synchronization on the the PO files.

Specified by:
synchronizePo in interface PoSynchronizer
Parameters:
potDirectory - The directory containing the POT files.
translationDirectory - The directory containing the translation PO files.
translationLocale - The locale of the translation
options - The user options
Throws:
JDocBookProcessException - unable to synchronize POT files


Copyright © 2007-2010 JBoss, a division of Red Hat, Inc. All Rights Reserved.