removed usages of CultureInfo for our translations, to avoid warnings when using cultures that .NET does not know of

git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@2197 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
JKlingen 2012-10-24 20:49:19 +00:00
parent c97600982a
commit cbf04192b6
4 changed files with 7 additions and 7 deletions

View file

@ -195,8 +195,8 @@ namespace GreenshotPlugin.Core {
} else if (type.Equals("Translations")) {
string culture = Regex.Replace(file, @"[a-zA-Z]+-(..-..)\.(xml|html)", "$1");
try {
CultureInfo cultureInfo = new CultureInfo(culture);
rssFile.Language = cultureInfo.NativeName;
//CultureInfo cultureInfo = new CultureInfo(culture);
rssFile.Language = culture;//cultureInfo.NativeName;
} catch (Exception) {
LOG.WarnFormat("Can't read the native name of the culture {0}", culture);
}