This project is read-only.

How to use a new entry in localized resx

Topics: ASP.NET 2.0, Business Logic Layer, Controls, Themes
Mar 4, 2014 at 12:36 PM

while trying to implement some additional fields in the backend I added a new entry to a resx file matching my used language.

Added to resx: categoryImagePath
Used in view: <th class="hmax479">{{lbl.categoryImagePath}}</th>

Problem is now, that the text thats contained in the resx for the key is not showing up inside the view. Changing existing translations is working without problems. Just new content is missing.

Is there any place where the entries of the resx files are beeing validated before pushed to the view or is there a "master" resx which defines alle the valid keys?

Mar 5, 2014 at 8:15 AM
Hi debgz,

I don't know, and sorry in advande but, may I ask you if you have created your custom label in both .resx files: label.resx and label.***.resx (where *** is your language) ?
Mar 5, 2014 at 9:53 AM
Yes, I added the new key and translation to both files: labels.resx and
Mar 5, 2014 at 3:06 PM
You need also add it to "App_Data/labels.txt". More on it here.
Marked as answer by debgz on 3/6/2014 at 3:08 AM
Mar 6, 2014 at 11:09 AM
Thanks a lot. labels.txt solved the problems without further problems.