SharePoint-Hosted Appのリソースファイルを使用したエラー
-
10-12-2019 - |
質問
私は私のSharePoint-Hosted Appにサポートされているロケールをいくつか設定しました。これらのホストファイルには、キー/ valueペアWizardStep1 / TeamSiteトレーニングが含まれています。参照を参照するために、default.aspxファイルに次の行を追加しました。
<span class="stepDesc"><small><asp:Literal ID="Literal1" runat="server" Text="<%$Resources:WizardStep1%>" /></small></span>
.
アプリを実行するとこのエラーが発生します。
申し訳ありませんが、鍵 'wizardstep1'を持つリソースオブジェクトが間違っていました 見つかりませんでした。
誰もが私が間違っていることを理解するのを手伝ってくれる?以前にファームソリューションでリソースファイルを使用しましたが、SharePoint-Hostedアプリは異なるようです...
解決
I found the problem, and that was that I was trying to use the wrong approch. For adding tranlations to the ASPX app pages, one needs to use the javascript resource file approch as described in http://msdn.microsoft.com/en-us/library/fp179919.aspx#LocalizingAppWeb under "How to create javascript resource files for custom pages."
Works like a charm. :)
所属していません sharepoint.stackexchange