This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using Umbraco.Core.Composing; | |
using Umbraco.Core.Logging; | |
using Umbraco.Core.Services.Changes; | |
using Umbraco.Web.Cache; | |
using Umbraco.Web.PublishedCache; | |
using uSync8.BackOffice; | |
namespace uSync8.EventTriggers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Jumoo.uSync.Core; | |
using Jumoo.uSync.Core.Interfaces; | |
using Newtonsoft.Json; | |
using System.IO; | |
using System.Linq; | |
using Umbraco.Core; | |
using Umbraco.Core.IO; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Example: Hooking into TranslationManager (v8) Events | |
// | |
// Shows you how to register for the Events fired by Translation Manager | |
// these are the job events, each one gets the job object passed to it | |
// so you can extract info and workout what you might want to do. | |
// | |
// | |
// Packages (if not in web project) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div> | |
<umb-load-indicator ng-if="model.loading"></umb-load-indicator> | |
<umb-box ng-if="!model.loading"> | |
<umb-box-header title="Notifications" | |
description="Define who will get an email when key events occur (';' seperated lists)"> | |
</umb-box-header> | |
<umb-box-content> | |
<umb-control-group label="Pending Notifications" | |
description="Email addresses to notify"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Exmaple how to go into a Translation Node once it has been created and strip properties | |
/// based on the document type. | |
/// | |
/// In this example we remove all but vorto properties - this is actually something TM will do | |
/// for you on loopback sets from version 2.2 - but the principles show you how to traverse | |
/// the translation node, go in find values and manipulate them. | |
/// </summary> | |
public class EventSetup : ApplicationEventHandler | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Jumoo.TranslationManager.Core.Models; | |
using Umbraco.Core; | |
using Umbraco.Core.Services; | |
namespace Jumoo.TranslationManager.LinkUpdater.LinkMappers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
n.b this code isn't really tested - but in principle will work - it may need tweaking around | |
the edges. | |
At the moment there are no TranslationNode creation events - so you have to attach this to the | |
job submitting event which happens just before a job is created - in practice if you are | |
creating jobs directly from the send to translate dialog you won't notice the diffrence. | |
*/ | |
// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using Jumoo.TranslatePlus.Core.Models; | |
using Jumoo.TranslatePlus.Core.Providers; | |
using Jumoo.TranslatePlus.Core.ValueMappers; | |
using Newtonsoft.Json; | |
using Umbraco.Core; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
using Umbraco.Core; | |
using Jumoo.TranslatePlus.Core.Models; | |
namespace Jumoo.TranslatePlus.Core.ValueMappers | |
{ |