translations: multilanguage developing and monolanguage builds

  • Thread starter Thread starter Matteo Cima
  • Start date Start date
M

Matteo Cima

Which is the smartest way to develop an app in C# CF in multiple languages
but build monolanguage exes?
I need to develop an app in English, French, Spanish, Italian... but i want
to create app_en.exe app_fr.exe app_sp.exe, app_it.exe... i don't need to
waste space building all together... and obviously it's always the same
project...

any ideas?

10x
Matteo.
 
Translation: Other Issues

Hey Matteo,

I am dealing with the same problem. I have thought about setting all the translations to an array, and using the 'key' to program with... or even setting everything to an external xml file. However, I am not sure what is the best practice. Also, keep in mind the folder names where the app install to... for example german Program Files folder is called Programme, and that can mess things up. Here is a piece of code I used to detect that:

//check for german file system
System.Reflection.Module[] modules = System.Reflection.Assembly.GetExecutingAssembly().GetModules();
string aPath = System.IO.Path.GetDirectoryName (modules[0].FullyQualifiedName);
bool german = false;

if ((aPath != "") && (aPath[aPath.Length-1] != '\\'))
{
aPath += '\\';
}

int index = aPath.IndexOf("Programme");

if(index > -1)
{
german = true;
}

if(german)
{
xmlFileName = "\\Programme\\TaskView\\tasks.xml";
xsdFileName = "\\Programme\\TaskView\\tasks.xsd";
//MessageBox.Show("German");
}
else{
xmlFileName = "\\Program Files\\TaskView\\tasks.xml";
xsdFileName = "\\Program Files\\TaskView\\tasks.xsd";
//MessageBox.Show("Not German");
}

Other than that, I hope somebody smarter than us can help!

Later dude, and good luck.
-Baden
 
Last edited:

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top