mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-12-03 12:03:51 +08:00
Merge
--HG-- branch : 1.x
This commit is contained in:
@@ -201,6 +201,11 @@ namespace Orchard.Localization.Services {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (poLine.StartsWith("msgctxt")) {
|
||||||
|
scope = ParseContext(poLine);
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (poLine.StartsWith("msgid")) {
|
if (poLine.StartsWith("msgid")) {
|
||||||
id = ParseId(poLine);
|
id = ParseId(poLine);
|
||||||
continue;
|
continue;
|
||||||
@@ -238,6 +243,10 @@ namespace Orchard.Localization.Services {
|
|||||||
return Unescape(poLine.Substring(2).Trim().Trim('"'));
|
return Unescape(poLine.Substring(2).Trim().Trim('"'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private static string ParseContext(string poLine) {
|
||||||
|
return Unescape(poLine.Substring(7).Trim().Trim('"'));
|
||||||
|
}
|
||||||
|
|
||||||
class CultureDictionary {
|
class CultureDictionary {
|
||||||
public string CultureName { get; set; }
|
public string CultureName { get; set; }
|
||||||
public IDictionary<string, string> Translations { get; set; }
|
public IDictionary<string, string> Translations { get; set; }
|
||||||
|
|||||||
Reference in New Issue
Block a user