title: Problems with hyphenation using FOP 2.0
body: <p>I have created a small Java Swing application to generate PDFs of XML files here at my workplace. I need to enable hyphenation, as I have some text in tables that flows outside the cell borders.</p>
  
  <p>I have downloaded the OFFO Compiled Hyphenation Patterns for FOP and placed the fop-hyph.jar file alongside my fop.jar in my "lib" folder.</p>
  
  <p>When I run the application I get the following error:</p>
  
  <pre><code>Jan 20, 2016 2:57:43 PM org.apache.fop.hyphenation.Hyphenator getHyphenationTree
  SEVERE: Couldn't find hyphenation pattern for lang="en",country="US".
  </code></pre>
  
  <p>I am using FOP 2.0 and have the following entry in my fop.xconf file:</p>
  
  <pre><code>&lt;hyphenation-pattern lang="en"&gt;en_US&lt;/hyphenation-pattern&gt;
  </code></pre>
  
  <p>I have also tried this with no difference:</p>
  
  <pre><code>&lt;hyphenation-pattern lang="en" country="US"&gt;en_US&lt;/hyphenation-pattern&gt;
  </code></pre>
  
  <p>On the root of the XSL-FO file I have entered:</p>
  
  <pre><code>&lt;fo:root font-family="Helvetica" language="en" country="US" hyphenate="true"&gt;
  </code></pre>
  
  <p>What am I missing to get this working? Everything else works fine, creates PDFs correctly.</p>