[BUG] Import-PnPTermGroupFromXml creates terms with incorrect translations
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 49/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- csharp, powershell
- 領域
- localization
調査の方向性
Import-PnPTermGroupFromXml および Export-PnPTermGroupFromXml cmdlet から始め、提供されたオランダ語と英語の用語翻訳を使用して問題を再現し、XML Name と翻訳ラベルがどのように処理されるかを確認します。完了条件は、エクスポートしたグループをインポートしたときに、両方のラベルに英語のテキストが表示されるのではなく、オランダ語のラベルがオランダ語として保持されることです。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- C#
- スター
- 904
- フォーク
- 407
- 平均マージ
- 2日 9時間
- マージ済み PR(30日)
- 10
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
pnp/powershell のほかの issue
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
pnp/powershell#5476 ·
メンテナーはふだん 1 日以内に返信
-
Set-PnPListItem with an apostrophe / single quote in the name when using the -Batch parameter failsオープンbug
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
pnp/powershell#5479 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
pnp/powershell#5477 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
pnp/powershell#5466 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
pnp/powershell#5399 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
WPF: each page's `Title` overwrites the window title, and returning to a page does not restore itオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
agentic-workflows area/Docs partner/agentic-workflows
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
jamesmontemagno/tiny-clips#378 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
go 🏃 testing 🧪
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
valkey-io/valkey-glide#7239 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
SubtitleEdit/subtitleedit#15462 ·
メンテナーはふだん 1 日以内に返信