mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Merge
--HG-- branch : dev
This commit is contained in:
@@ -20,7 +20,7 @@ namespace Orchard.Packaging {
|
|||||||
public Localizer T { get; set; }
|
public Localizer T { get; set; }
|
||||||
|
|
||||||
public void Install(Feature feature) {
|
public void Install(Feature feature) {
|
||||||
_packagingSourceManager.AddSource(new PackagingSource { Id = Guid.NewGuid(), FeedTitle = "Orchard Module Gallery", FeedUrl = "http://orchardproject.net/gallery/feed" });
|
_packagingSourceManager.AddSource(new PackagingSource { Id = Guid.NewGuid(), FeedTitle = "Orchard Module Gallery", FeedUrl = "http://orchardproject.net/gallery08/feed" });
|
||||||
}
|
}
|
||||||
|
|
||||||
public void Enable(Feature feature) {
|
public void Enable(Feature feature) {
|
||||||
|
|||||||
@@ -183,7 +183,8 @@ namespace Orchard.Localization.Services {
|
|||||||
|
|
||||||
if (poLine.StartsWith("msgstr")) {
|
if (poLine.StartsWith("msgstr")) {
|
||||||
string translation = ParseTranslation(poLine);
|
string translation = ParseTranslation(poLine);
|
||||||
if (!String.IsNullOrEmpty(id)) {
|
// ignore incomplete localizations (empty msgid or msgstr)
|
||||||
|
if ( !String.IsNullOrWhiteSpace(id) && !String.IsNullOrWhiteSpace(translation) ) {
|
||||||
string scopedKey = (scope + "|" + id).ToLowerInvariant();
|
string scopedKey = (scope + "|" + id).ToLowerInvariant();
|
||||||
if (!translations.ContainsKey(scopedKey)) {
|
if (!translations.ContainsKey(scopedKey)) {
|
||||||
translations.Add(scopedKey, translation);
|
translations.Add(scopedKey, translation);
|
||||||
|
|||||||
Reference in New Issue
Block a user