564 |
} |
} |
565 |
|
|
566 |
// Try loading the resources from a satellite assembly. |
// Try loading the resources from a satellite assembly. |
567 |
|
String assemblyName = MainAssembly.FullName; |
568 |
|
if(assemblyName != null) |
569 |
|
{ |
570 |
|
int index = assemblyName.IndexOf(','); |
571 |
|
if(index != -1) |
572 |
|
{ |
573 |
|
assemblyName = assemblyName.Substring(0, index); |
574 |
|
} |
575 |
|
} |
576 |
String path = MainAssembly.GetSatellitePath |
String path = MainAssembly.GetSatellitePath |
577 |
(culture.Name + Path.DirectorySeparatorChar + |
(culture.Name + Path.DirectorySeparatorChar + |
578 |
MainAssembly.FullName + ".resources.dll"); |
assemblyName + ".resources.dll"); |
579 |
if(path != null) |
if(path != null) |
580 |
{ |
{ |
581 |
error = 1; |
error = 1; |