private string DeterminePotName(string poDirectory, out string basename)
{
string[] potFiles = Directory.GetFiles(poDirectory, "*.pot", SearchOption.TopDirectoryOnly);
if (potFiles.Length != 1)
throw new ApplicationException(string.Format("Must have exactly 1 .POT file in {0}", poDirectory));
string potName = potFiles[0];
basename = Path.GetFileNameWithoutExtension(potName);
return potName;
}