Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[BUG] Import-PnPTermGroupFromXml creates terms with incorrect translations

オープン
#3,603 コメント 5 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
49/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
csharp, powershell
領域
localization

調査の方向性

Import-PnPTermGroupFromXml および Export-PnPTermGroupFromXml cmdlet から始め、提供されたオランダ語と英語の用語翻訳を使用して問題を再現し、XML Name と翻訳ラベルがどのように処理されるかを確認します。完了条件は、エクスポートしたグループをインポートしたときに、両方のラベルに英語のテキストが表示されるのではなく、オランダ語のラベルがオランダ語として保持されることです。

索引モデルが issue の本文から書いたものです。

説明

bug
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
After import

Steps to reproduce behavior
  1. My tenant is in Dutch. I create a term called "Test term NL" and give it an English translation "Test term EN"
    Original

  2. 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.
    xml

  3. I delete the Test termset

  4. I import the group using Import-PnPTermGroupFromXml. This results in the term being recreated but with the English text showing up as Dutch.
    After import

What I think happens

What I think causes this bug is:

  1. 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.
  2. It goes on to create the lables, the fist one is English. This lable is new so it is created.
  3. 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

主要言語
C#
スター
904
フォーク
407
平均マージ
2日 9時間
マージ済み PR(30日)
10

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pnp/powershell のほかの issue

pnp/powershell の issue をすべて見る

似ている issue

C# の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。