# Where is the LocalizedFontProcessor in XNA?

I tried this tutorial to localize my XNA Windows Phone game, but I can't find the LocalizedFontProcessor in the drop-down list. Why is the LocalizedFontProcessor missing in the drop-down list? What is wrong?

In this picture you can see that the LocalizedFontProcessor is missing in the drop-down list:

Is there another way to localize a Windows Phone game?

Edit: Here is my LocalizedFontProcessor class

namespace LocalizationPipeline
{
[ContentProcessor]
class LocalizedFontProcessor : ContentProcessor<LocalizedFontDescription,
SpriteFontContent>
{
/// <summary>
/// Converts a font description into SpriteFont format.
/// </summary>
public override SpriteFontContent Process(LocalizedFontDescription input,
ContentProcessorContext context)
{
// Scan each .resx file in turn.
foreach (string resourceFile in input.ResourceFiles)
{
string absolutePath = Path.GetFullPath(resourceFile);

// Make sure the .resx file really does exist.
if (!File.Exists(absolutePath))
{
throw new InvalidContentException("Can't find " + absolutePath);
}

XmlDocument xmlDocument = new XmlDocument();

// Scan each string from the .resx file.
foreach (XmlNode xmlNode in xmlDocument.SelectNodes("root/data/value"))
{
string resourceString = xmlNode.InnerText;

// Scan each character of the string.
foreach (char usedCharacter in resourceString)
{
}
}

// Mark that this font should be rebuilt if the resource file changes.
}

// After adding the necessary characters, we can use the built in
// FontDescriptionProcessor to do the hard work of building the font for us.
return context.Convert<FontDescription,
SpriteFontContent>(input, "FontDescriptionProcessor");
}
}
}

• It's good to keep separate topics in separate questions, but this question is really a comment on an answer to your previous post. This is why you shouldn't ask two questions in one; now the previous topic is confused and difficult to follow up on. – Seth Battin Nov 27 '13 at 18:32
• I think that tutorial instructs you to create the LocalizedFontProcessor. (Subheading "To extend the FontDescriptionProcessor class") Have you completed that step? – Seth Battin Nov 27 '13 at 18:35
• I added my LocalizedFontProcessor class. Why is the LocalizedFontProcessor missing in the drop-down list? I tried to add more references but it didn't helped. I can add the complete project if you want. – Homer_Simpson Nov 27 '13 at 22:05

Right click on your content project (LocalizationContent) in Solution Explorer. Select "Add Reference".
Add a reference to your pipeline project (LocalizationPipeline) to your content project.
Your LocalizedFontProcessor should now show up in the Content Processor list.
(You might also have to make your LocalizedFontProcessor class public, I'm not sure. Also, you can give it a nice name by setting it in the attribute: [ContentProcessor(DisplayName = "My Localized Font Processor")].)