mirror of
https://github.com/greenshot/greenshot
synced 2025-07-15 01:23:47 -07:00
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:
parent
c97600982a
commit
cbf04192b6
4 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue