This commit is contained in:
@@ -176,7 +176,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
//this holds all objects set to use banking
|
//this holds all objects set to use banking
|
||||||
//so that as a final step the servicebank can iterate
|
//so that as a final step the servicebank can iterate
|
||||||
//it and migrate (objects need to exist first in v8)
|
//it and migrate (objects need to exist first in v8)
|
||||||
// private Dictionary<Guid, RootObjectTypes> BankedObjects = new Dictionary<Guid, RootObjectTypes>();
|
// private Dictionary<Guid, RootObjectTypes> BankedObjects = new Dictionary<Guid, RootObjectTypes>();
|
||||||
|
|
||||||
|
|
||||||
private Dictionary<Guid, long> V7ToV8IdMap = new Dictionary<Guid, long>();
|
private Dictionary<Guid, long> V7ToV8IdMap = new Dictionary<Guid, long>();
|
||||||
@@ -279,7 +279,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
V7ToV8IdMap.Clear();
|
V7ToV8IdMap.Clear();
|
||||||
V7ToV8WorkOrderItemStatusIdMap.Clear();
|
V7ToV8WorkOrderItemStatusIdMap.Clear();
|
||||||
TagMap.Clear();
|
TagMap.Clear();
|
||||||
// BankedObjects.Clear();
|
// BankedObjects.Clear();
|
||||||
LocaleMap.Clear();
|
LocaleMap.Clear();
|
||||||
|
|
||||||
|
|
||||||
@@ -2483,7 +2483,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
d.latitude = client.GoToAddress.Latitude;
|
d.latitude = client.GoToAddress.Latitude;
|
||||||
d.longitude = client.GoToAddress.Longitude;
|
d.longitude = client.GoToAddress.Longitude;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (c.uiHasSignature)
|
if (c.uiHasSignature)
|
||||||
{
|
{
|
||||||
d.customerSignature = util.v7StrokePathTov8SVG(c.WorkorderService.Signature.StrokePath, c.WorkorderService.Signature.Width, c.WorkorderService.Signature.Height);
|
d.customerSignature = util.v7StrokePathTov8SVG(c.WorkorderService.Signature.StrokePath, c.WorkorderService.Signature.Width, c.WorkorderService.Signature.Height);
|
||||||
@@ -3077,7 +3077,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
progress.Op("Start Locales export");
|
progress.Op("Start Locales export");
|
||||||
progress.SubOp("");
|
progress.SubOp("");
|
||||||
progress.Append("Exporting customized Locales");
|
progress.Append("Exporting customized Locales");
|
||||||
|
|
||||||
|
|
||||||
//Get a list of RAVEN translations and ID's
|
//Get a list of RAVEN translations and ID's
|
||||||
var a = await util.GetAsync("translation/list");
|
var a = await util.GetAsync("translation/list");
|
||||||
@@ -3093,11 +3093,13 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
LocalizedTextTable lt = LocalizedTextTable.Load(i.Locale);
|
LocalizedTextTable lt = LocalizedTextTable.Load(i.Locale);
|
||||||
progress.Op("Checking if locale " + i.Locale + " is customized");
|
progress.Op("Checking if locale " + i.Locale + " is customized");
|
||||||
//#if(DEBUG)
|
//#if(DEBUG)
|
||||||
// //continue;
|
// //continue;
|
||||||
//#endif
|
//#endif
|
||||||
if (!util.LocaleIsCustomized(i.Locale, lt, progress)) continue;
|
if (!util.LocaleIsCustomized(i.Locale, lt, progress)) continue;
|
||||||
|
|
||||||
|
//Guess the source language
|
||||||
|
var ProbableSourceLocale = GuessCustomLocaleSourceLanguage(lt);
|
||||||
|
|
||||||
//collection to hold items sent to server
|
//collection to hold items sent to server
|
||||||
List<UpdateTranslationItem> exportItems = new List<UpdateTranslationItem>();
|
List<UpdateTranslationItem> exportItems = new List<UpdateTranslationItem>();
|
||||||
@@ -3135,7 +3137,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
//MAKE A DUPLICATE
|
//MAKE A DUPLICATE
|
||||||
var exportName = GetUniqueName(i.Locale + " (" + RavenLocaleName + ")");
|
var exportName = GetUniqueName(i.Locale + " (" + RavenLocaleName + ")");
|
||||||
progress.SubOp("");
|
progress.SubOp("");
|
||||||
progress.Op("Exporting " + i.Locale + " to " + exportName);
|
progress.Op("Exporting " + i.Locale + " to " + exportName);
|
||||||
a = await util.PostAsync("translation/duplicate/" + x.ToString());
|
a = await util.PostAsync("translation/duplicate/" + x.ToString());
|
||||||
var targetTranslationId = util.IdFromResponse(a);
|
var targetTranslationId = util.IdFromResponse(a);
|
||||||
|
|
||||||
@@ -3176,7 +3178,7 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
if (!DuplicateAvoidanceList.Contains(v8key)) { DuplicateAvoidanceList.Add(v8key); }
|
if (!DuplicateAvoidanceList.Contains(v8key)) { DuplicateAvoidanceList.Add(v8key); }
|
||||||
else continue;
|
else continue;
|
||||||
|
|
||||||
TranslationItem v8TransItem = trans.FirstOrDefault(m => m.Key == v8key);
|
TranslationItem v8TransItem = trans.FirstOrDefault(m => m.Key == v8key);
|
||||||
|
|
||||||
if (v8TransItem == null)
|
if (v8TransItem == null)
|
||||||
@@ -3397,43 +3399,53 @@ namespace AyaNova.PlugIn.V8
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
GUESS SOURCE LANGUAGE
|
GUESS SOURCE LANGUAGE
|
||||||
todo: detect source language of custom and only do that one, not all languages as now
|
todo: detect source language of custom and only do that one, not all languages as now
|
||||||
if can find a key that users can't edit becuase it's not exposed or super unlikely to be changed as not in UI
|
if can find a key that users can't edit becuase it's not exposed or super unlikely to be changed as not in UI
|
||||||
or something along those lines (or maybe 3 or four) then compare to each language to find the source of this one if possible
|
or something along those lines (or maybe 3 or four) then compare to each language to find the source of this one if possible
|
||||||
and detect it
|
and detect it
|
||||||
|
|
||||||
Error.UnableToOpenEmailUrl
|
|
||||||
en:Unable to open email address
|
|
||||||
de:E-Mail-Adresse kann nicht geöffnet werden
|
|
||||||
es:No puede abrirse la dirección de e-mail
|
|
||||||
fr:Impossible d'ouvrir l'adresse e-mail
|
|
||||||
|
|
||||||
Global.Label.AllowScheduleConflicts
|
Error.UnableToOpenEmailUrl
|
||||||
en:Allow Schedule Conflicts
|
en:Unable to open email address
|
||||||
de:Planungskonflikte zulassen
|
de:E-Mail-Adresse kann nicht geöffnet werden
|
||||||
es:Permitir conflictos de programación
|
es:No puede abrirse la dirección de e-mail
|
||||||
fr:Autoriser les conflits de programme
|
fr:Impossible d'ouvrir l'adresse e-mail
|
||||||
|
|
||||||
ReportEditor.Label.Properties
|
Global.Label.AllowScheduleConflicts
|
||||||
en:Properties
|
en:Allow Schedule Conflicts
|
||||||
de:Eigenschaften
|
de:Planungskonflikte zulassen
|
||||||
es:Propiedades
|
es:Permitir conflictos de programación
|
||||||
fr:Propriétés
|
fr:Autoriser les conflits de programme
|
||||||
|
|
||||||
StopWords3
|
ReportEditor.Label.Properties
|
||||||
en:would some what such make come while its use those see out who ll but get have same up well because between for all each does came just from was an these himself very under over more
|
en:Properties
|
||||||
de:hattest hattet hier hinter ich ihr ihre im in ist ja jede jedem jeden jeder jedes jener jenes jetzt kann kannst können könnt machen mein meine mit muß mußt musst müssen müßt nach nachdem nein nicht nun oder seid sein seine sich
|
de:Eigenschaften
|
||||||
es:detras detrás dia día dias días donde dónde dos durante e el él ella ellas ellos en encima enfrente enseguida entre es esa ésa esas ésas ese ése eso esos ésos esta está ésta estado estados estan están estar estas éstas este éste esto estos éstos ex
|
es:Propiedades
|
||||||
fr:font foce haut hos ici il ils je juste la le les leu là ma maintenant mais mes mine moins mon mot même ni nommés note nous nouveaux ou où pa pace paole pas pesonnes peut peu pièce plupat pou pouquoi quand que quel
|
fr:Propriétés
|
||||||
|
|
||||||
UI.Help.TechSupport
|
StopWords3
|
||||||
en:Technical support
|
en:would some what such make come while its use those see out who ll but get have same up well because between for all each does came just from was an these himself very under over more
|
||||||
de:Technische Unterstützung
|
de:hattest hattet hier hinter ich ihr ihre im in ist ja jede jedem jeden jeder jedes jener jenes jetzt kann kannst können könnt machen mein meine mit muß mußt musst müssen müßt nach nachdem nein nicht nun oder seid sein seine sich
|
||||||
es:Asistencia técnica
|
es:detras detrás dia día dias días donde dónde dos durante e el él ella ellas ellos en encima enfrente enseguida entre es esa ésa esas ésas ese ése eso esos ésos esta está ésta estado estados estan están estar estas éstas este éste esto estos éstos ex
|
||||||
fr:Assistance technique
|
fr:font foce haut hos ici il ils je juste la le les leu là ma maintenant mais mes mine moins mon mot même ni nommés note nous nouveaux ou où pa pace paole pas pesonnes peut peu pièce plupat pou pouquoi quand que quel
|
||||||
*/
|
|
||||||
|
UI.Help.TechSupport
|
||||||
|
en:Technical support
|
||||||
|
de:Technische Unterstützung
|
||||||
|
es:Asistencia técnica
|
||||||
|
fr:Assistance technique
|
||||||
|
*/
|
||||||
|
|
||||||
|
public string GuessCustomLocaleSourceLanguage(LocaleText lt)
|
||||||
|
{
|
||||||
|
int en = 0;
|
||||||
|
int de = 0;
|
||||||
|
int fr = 0;
|
||||||
|
int es = 0;
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion locale utility
|
#endregion locale utility
|
||||||
|
|||||||
Reference in New Issue
Block a user