I need to find the languages of an string in my stand alone program
i don't want use bing translate or google translate .
thanks.
in fact i tried this but i cannot do it for all languages, can i?
public string FindLang(string text)
{
string result = "";
if (text.Any(c => c >= 0xFB50 && c <= 0xFEFC))
{
result += "Arabic";
}
if (text.Any(c => c >= 0x0600 && c <= 0x06FF))
{
result += "Persian";
}
if (text.Any(c => c >= 0x20 && c <= 0x7E))
{
result += "English";
}
if (text.Any(c => c >= 0x0530 && c <= 0x058F))
{
result += "Armenian";
}
if (text.Any(c => c >= 0x2000 && c <= 0xFA2D))
{
result += "Chinese";
}
return result;