Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Use hyphen in locale so that target-language will be legal in XLIFF
Browse files Browse the repository at this point in the history
  • Loading branch information
seanf committed Nov 8, 2012
1 parent f61172d commit 2f041bc
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -59,13 +59,13 @@ public boolean needsDocToWriteTrans()
@Override
public void writeSrcFile(Resource doc) throws IOException
{
XliffWriter.write(opts.getSrcDir(), doc, "en_US");
XliffWriter.write(opts.getSrcDir(), doc, "en-US");
}

@Override
public void writeTransFile(Resource doc, String docName, LocaleMapping localeMapping, TranslationsResource targetDoc) throws IOException
{
XliffWriter.write(opts.getTransDir(), doc, localeMapping.getJavaLocale(), targetDoc, opts.getCreateSkeletons());
XliffWriter.write(opts.getTransDir(), doc, localeMapping.getLocalLocale(), targetDoc, opts.getCreateSkeletons());
}

}

0 comments on commit 2f041bc

Please sign in to comment.