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