mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-28 15:02:35 +01:00
Set Language.Name while loading XML translation file
This commit is contained in:
parent
fec89b579d
commit
05a05d0006
@ -29,6 +29,8 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
{
|
{
|
||||||
if (!reader.IsEmptyElement && reader.Depth > 0)
|
if (!reader.IsEmptyElement && reader.Depth > 0)
|
||||||
name.Append('/').Append(reader.Name);
|
name.Append('/').Append(reader.Name);
|
||||||
|
else if (reader.Depth == 0)
|
||||||
|
language.Name = reader["Name"];
|
||||||
}
|
}
|
||||||
else if (reader.NodeType == XmlNodeType.EndElement)
|
else if (reader.NodeType == XmlNodeType.EndElement)
|
||||||
{
|
{
|
||||||
|
@ -39,6 +39,8 @@ namespace Nikse.SubtitleEdit.Logic
|
|||||||
{
|
{
|
||||||
if (!reader.IsEmptyElement && reader.Depth > 0)
|
if (!reader.IsEmptyElement && reader.Depth > 0)
|
||||||
name.Append('/').Append(reader.Name);
|
name.Append('/').Append(reader.Name);
|
||||||
|
else if (reader.Depth == 0)
|
||||||
|
language.Name = reader[""Name""];
|
||||||
}
|
}
|
||||||
else if (reader.NodeType == XmlNodeType.EndElement)
|
else if (reader.NodeType == XmlNodeType.EndElement)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user