Browse Source

Adjust StringResourceToolAddIn: read .resx file

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@5269 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
pull/1/head
Daniel Grunwald 16 years ago
parent
commit
1454e53894
  1. 4
      src/Tools/StringResourceToolAddIn/Src/Command.cs

4
src/Tools/StringResourceToolAddIn/Src/Command.cs

@ -39,9 +39,9 @@ namespace StringResourceToolAddIn
string sdSrcPath = Path.Combine(Path.GetDirectoryName(GetType().Assembly.Location), string sdSrcPath = Path.Combine(Path.GetDirectoryName(GetType().Assembly.Location),
"../../../.."); "../../../..");
string resxFile = Path.Combine(sdSrcPath, "../data/Resources/StringResources.resx");
using (ResourceReader r = new ResourceReader(Path.Combine(sdSrcPath, using (ResXResourceReader r = new ResXResourceReader(resxFile)) {
"Main/StartUp/Project/Resources/StringResources.resources"))) {
IDictionaryEnumerator en = r.GetEnumerator(); IDictionaryEnumerator en = r.GetEnumerator();
// Goes through the enumerator, printing out the key and value pairs. // Goes through the enumerator, printing out the key and value pairs.
while (en.MoveNext()) { while (en.MoveNext()) {

Loading…
Cancel
Save