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

Import of Excel fails if the neutral resource file have been deleted

オープン
#449 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

評価

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

調査の方向性

src/ResXManager.Model/ResourceEntityExtensions.cs の204~218行目付近から始め、ローカライズされたリソースはあるもののニュートラルな .resx ファイルがないプロジェクトの Excel インポートパスを追ってください。記載された手順を再現し、すべてのリソースファイルを削除した場合の動作と同様に、インポートが失敗するのではなく翻訳をスキップすることを確認してください。

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

説明

Up for grabs UX Improvement

Describe the bug
Resx Manager fails to import all translations when the neutral resource file have been deleted, but there still is a localized version.

  • MyResource.resx
  • MyResource.da.resx

To Reproduce

  1. Create a resource file with a single row
  2. Translate the row to another language
  3. Export an Excel file of all rows
  4. Delete the neutral resx file
  5. Import the Excel file

Expected behavior
I would expect the ResxManager to skip importing the translation, similar to how it works if all the Resource files are deleted.

I tried debugging this a bit, but I was unable to detect where I would need to make my changes.
But I believe the primary culprit is here: https://github.com/dotnet/ResXResourceManager/blob/647beb330ccb12f7283fb73b2fe29acf8d3c0c68/src/ResXManager.Model/ResourceEntityExtensions.cs#L204-L218

主要言語
C#
スター
1.5k
フォーク
251
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

dotnet/ResXResourceManager のほかの issue

dotnet/ResXResourceManager の issue をすべて見る

似ている issue

C# の issue をもっと見る

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

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