[BUG] Import-PnPTermGroupFromXml creates terms with incorrect translations
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 49/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- csharp, powershell
- Ambito
- localization
Direzione di ricerca
Iniziare con i cmdlet Import-PnPTermGroupFromXml e Export-PnPTermGroupFromXml, riprodurre il problema utilizzando le traduzioni dei termini in olandese e in inglese fornite e analizzare come vengono elaborati XML Name e le etichette delle traduzioni. Il lavoro è completato quando l'importazione del gruppo esportato conserva l'etichetta olandese come olandese invece di visualizzare il testo inglese per entrambe le etichette.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Reporting an Issue or Missing Feature
After using Export-PnPTermGroupFromXml, I import the group using Import-PnPTermGroupFromXml. This results in the terms having the English instead of the Dutch translation.
Expected behavior
Create the terms with the correct translation
Actual behavior
The Dutch translation contains English
Steps to reproduce behavior
-
My tenant is in Dutch. I create a term called "Test term NL" and give it an English translation "Test term EN"
-
I Export the group using Export-PnPTermGroupFromXml. The name of the term element is the English name (no idea of this is expected behavior). It does list the translations correctly.
-
I delete the Test termset
-
I import the group using Import-PnPTermGroupFromXml. This results in the term being recreated but with the English text showing up as Dutch.
What I think happens
What I think causes this bug is:
- The term doesn't exist so it is created. It creates it with the value in the "Name" attribute that is in English, but since the tenant is in Dutch it is now wrongly labeled as Dutch.
- It goes on to create the lables, the fist one is English. This lable is new so it is created.
- Next is the Dutch label, this label already exists so it is skipped...
And now we have English in both lables and lose the Dutch label!
What is the version of the Cmdlet module you are running?
PnP.PowerShell 2.2.0
Which operating system/environment are you running PnP PowerShell on?
-
Windows
-
Linux
-
MacOS
-
Azure Cloud Shell
-
Azure Functions
-
Other : please specify
- Lingua principale
- C#
- Stelle
- 904
- Fork
- 407
- Merge medio
- 2g 9h
- PR unite (30g)
- 10
Preparare l'ambiente
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di pnp/powershell
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pnp/powershell#5476 ·
I maintainer di solito rispondono entro 1 giorno
-
Set-PnPListItem with an apostrophe / single quote in the name when using the -Batch parameter failsApertabug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
pnp/powershell#5479 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
pnp/powershell#5477 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
pnp/powershell#5466 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
pnp/powershell#5399 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di pnp/powershell
Issue simili
-
agentic-workflows area/Docs partner/agentic-workflows
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
microsoft/fluentui-blazor#5364 ·
I maintainer di solito rispondono entro 1 giorno
-
.NET triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
microsoft/agent-framework#8811 ·
I maintainer di solito rispondono entro 1 giorno
-
.NET Docs
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
getsentry/sentry-dotnet#5637 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
QuantConnect/Lean#9842 ·
I maintainer di solito rispondono entro 1 giorno