SharpDevelop で開発したローカライズされたアプリケーションに取り組んでいます。チュートリアルに基づいて、エラーが発生しました:
指定されたカルチャ (またはニュートラル カルチャ) に適したリソースがディスク上に見つかりませんでした。ベース名:
Project | を使用してリソース ファイルを作成しました。追加 | それぞれの新しい項目「空のリソース ファイル」(「アセンブリ リソース ファイル」が見つかりませんでした)。さらに、「ビルド アクション」を「EmbeddedResource」に設定しました。
プログラム内には、次のことを行うクラスがあります
// load the resource file once
resourceManager = ResourceManager.CreateFileBasedResourceManager(file, filePath, null);
// depending on user selection, I set the CultureInfo in the code behind the form, i.e.
Thread.CurrentThread.CurrentUICulture = locales[0]; // which contains "en"
// and that's the method of the same class used to lookup the values
public string getValue ( string key )
{
return resourceManager.GetString(key);
}
SharpDevelop 3.0.0.3437 .NET バージョン 2.0.50727.3053
コメントを注意深く調べて長い間グーグルで調べた後でも、例や解決策を見つけることができませんでした。したがって、質問:
- リソース ファイル自体にカルチャを追加するにはどうすればよいですか?
- 例またはリンクを提供できますか?
どうもありがとう!