org.jboss.jdocbook.util
Class I18nUtils

java.lang.Object
  extended by org.jboss.jdocbook.util.I18nUtils

public class I18nUtils
extends java.lang.Object

Collection of utilities for dealing with i18n support, as defined by GNU gettext.

Author:
Steve Ebersole

Constructor Summary
I18nUtils()
           
 
Method Summary
static java.lang.String determinePoFileName(java.io.File template)
          Given a source file (or a POT file), determine its correspnding GNU gettext PO file name.
static java.lang.String determinePotFileName(java.io.File source)
          Given a source file, determine its correspnding GNU gettext POT file name.
static boolean isPotFile(java.io.File file)
          Is the given file a GNU gettext POT file?

The determination here is made solely upon the file extension currently.

 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18nUtils

public I18nUtils()
Method Detail

isPotFile

public static boolean isPotFile(java.io.File file)
Is the given file a GNU gettext POT file?

The determination here is made solely upon the file extension currently.

Parameters:
file - The file to check.
Returns:
True if it is considered a POT file; false otherwise.

determinePotFileName

public static java.lang.String determinePotFileName(java.io.File source)
Given a source file, determine its correspnding GNU gettext POT file name.

Parameters:
source - The source file.
Returns:
The corresponding POT file name.

determinePoFileName

public static java.lang.String determinePoFileName(java.io.File template)
Given a source file (or a POT file), determine its correspnding GNU gettext PO file name.

Parameters:
template - The source (or POT) file.
Returns:
The corresponding PO file name.


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