Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Sep 08, 2010 3:08 am Post subject: Why is the preview for my form different to VS designer? |
|
|
If you make changes in the Visual Studio designer to culture specific resources (eg German) these changes will only be shown in the Globalizer Preview if those resources (eg Size and Location) are being scanned and you select “Scan All Cultures”. This is because the preview starts from the Invariant Form/Control and then applies those resources in the Globalizer Workspace to get the localized version of the form/control. If the resources (eg size/location) aren’t being scanned then Globalizer does not know about any changes you have made to them directly via the Visual Studio designer.
Even though the changes you make directly in the culture specific resx using Visual Studio aren’t visible in the Preview window in this case, they will not (by default) be overwritten by Globalizer when it builds resources. So if your workspace does not include (ie is not scanning) sizes/locations then when you build the localized resources from Globalizer any existing culture specific changes you have made to sizes/locations in Visual Studio will not be affected. You can confirm this by opening the form in Visual Studio after you have done a build.
This means that you can have a workspace that only includes strings and then make any final adjustments required to language specific form layout in Visual Studio. The downside of this is that those language specific layout changes won’t be visible in the Globalizer preview. If this bothers you then you can choose to scan Sizes/Locations in Globalizer (via the Scan Filters tab) either for the whole workspace or for specific forms/controls. You can then either use Globalizer to adjust the layout (by changing Sizes/Locations) or you can make the changes in Visual Studio designer and then scan these changes back into the Globalizer Workspace (by selecting "Scan All Cultures"). _________________ Infralution Support |
|