mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Added kab-DZ as translation
This commit is contained in:
parent
ea5bd80219
commit
f8f98c554e
11 changed files with 527 additions and 8 deletions
|
@ -44,7 +44,7 @@ namespace GreenshotPlugin.Core {
|
|||
private const string LanguageFilenamePattern = @"language*.xml";
|
||||
private static readonly Regex PrefixRegexp = new Regex(@"language_([a-zA-Z0-9]+).*");
|
||||
private static readonly Regex IetfCleanRegexp = new Regex(@"[^a-zA-Z]+");
|
||||
private static readonly Regex IetfRegexp = new Regex(@"^.*([a-zA-Z]{2}-[a-zA-Z]{2})\.xml$");
|
||||
private static readonly Regex IetfRegexp = new Regex(@"^.*([a-zA-Z]{2,3}-[a-zA-Z]{2})\.xml$");
|
||||
private const string LanguageGroupsKey = @"SYSTEM\CurrentControlSet\Control\Nls\Language Groups";
|
||||
private static readonly IList<string> UnsupportedLanguageGroups = new List<string>();
|
||||
private static readonly IDictionary<string, string> Resources = new Dictionary<string, string>();
|
||||
|
@ -341,8 +341,10 @@ namespace GreenshotPlugin.Core {
|
|||
xmlDocument.Load(languageFilePath);
|
||||
XmlNodeList nodes = xmlDocument.GetElementsByTagName("language");
|
||||
if (nodes.Count > 0) {
|
||||
LanguageFile languageFile = new LanguageFile();
|
||||
languageFile.Filepath = languageFilePath;
|
||||
LanguageFile languageFile = new LanguageFile
|
||||
{
|
||||
Filepath = languageFilePath
|
||||
};
|
||||
XmlNode node = nodes.Item(0);
|
||||
if (node?.Attributes != null)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue