manifest localization
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Revit 2017.1.1
I have read the Localization web-page. This page has link to Walkthrough: Creating Managed Satellite DLLs article. That article describes how to create the assembly on the base of Visual Studio Add-in template. But my Visual Studio 2015 hasn't such template.
> In Solution Explorer, right-click Resource1.resx and then click Properties.
> In the Properties window, change Build Action from Embedded Resource to None.
> At the command prompt, type AL.exe /embed:Resource1.resources /culture:en-US /out:Add-In Name.resources.dll.
> Replace Add-In Name by using the name of your add-in. For example, if your add-in project is named MyAddin, then the /out: switch would be
> /out:MyAddin.resources.dll. The /out: name must match the name of your project; otherwise, the resource DLL will not be found.
Ok... I switched the Build Action and called the utilities:
cd /D "D:\projects\vs\Revit\CodeExamples\Transactions"
resgen TransactionExample.resx
AL.exe /embed:TransactionExample.resources /culture:en /out:TransactionExample.resources.dll
After compilation of my add-in, I created en subdirectory in the output directory and copied the TransactionExample.resources.dll into that folder.
This is my manifest file:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <RevitAddIns> <AddIn Type="Command"> <Assembly>Transactions\Transactions.dll</Assembly> <AddInId>{C857093F-594E-4384-9FA3-5897D874C0FD}</AddInId> <FullClassName>Revit.CodeExamples.Transactions.TransactionExample</FullClassName> <Text>@Text</Text> <VendorId>@VendorId</VendorId> <VendorDescription>@VendorDescription</VendorDescription> <VisibilityMode>NotVisibleInFamily</VisibilityMode> <Discipline>Structure</Discipline> <AvailabilityClassName>Revit.CodeExamples.Transactions.TransactionExampleAvailability</AvailabilityClassName> <LongDescription>@LongDescription</LongDescription> <TooltipImage>@zero</TooltipImage> <LargeImage>@zero</LargeImage> </AddIn> </RevitAddIns>
But Revit doesn't display the text from resources for /language ENU key. Look the attached screens, please. Why does it happen?
Usually, when I create localized resources I don't switch Embedded Resource to None, and IDE creates resources automatically. But Revit doesn't see these localized resources also. Therefore I tried to use focuses with resgen.exe and al.exe. as recommends Autodesk...
My project code source is attached too.