--HG--
branch : 1.x
This commit is contained in:
Sebastien Ros
2012-01-03 16:15:02 -08:00

View File

@@ -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; }