[BUG] Import-PnPTermGroupFromXml creates terms with incorrect translations
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 49/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- csharp, powershell
- Área
- localization
Línea de trabajo
Comience con los cmdlets Import-PnPTermGroupFromXml y Export-PnPTermGroupFromXml, reproduzca el problema utilizando las traducciones de términos neerlandesa e inglesa proporcionadas e inspeccione cómo se procesan XML Name y las etiquetas de traducción. Se considera terminado cuando al importar el grupo exportado se conserva la etiqueta neerlandesa como neerlandesa, en lugar de mostrar el texto inglés para ambas etiquetas.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- C#
- Estrellas
- 904
- Forks
- 407
- Merge medio
- 2 d 9 h
- PR fusionados (30 d)
- 10
Preparar el entorno
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pnp/powershell
-
[FEATURE] Get-PnPUser -CurrentAbiertoenhancement
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
pnp/powershell#5476 ·
Los mantenedores suelen responder en 1 día
-
Set-PnPListItem with an apostrophe / single quote in the name when using the -Batch parameter failsAbiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 68/100
pnp/powershell#5479 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
pnp/powershell#5477 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
pnp/powershell#5466 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
pnp/powershell#5399 ·
Los mantenedores suelen responder en 1 día
Todos los issues de pnp/powershell
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
NethermindEth/nethermind#14012 ·
Los mantenedores suelen responder en 1 día
-
dependencies Status: Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
json-schema-org/website#2518 ·
Los mantenedores suelen responder en 1 día
-
agentic-workflows
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
builtbybel/Flyoobe#498 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
builtbybel/CrapFixer#112 ·