How do you do it? @Anonymous
Command code:
[Transaction(TransactionMode.Manual)]
[Regeneration(RegenerationOption.Manual)]
public class Command : BaseCommand
{
private FamilyTreeForm form;
protected override void Execute(ElementSet elements)
{
CultureInfo.DefaultThreadCurrentCulture = new CultureInfo(Resources.Language);
CultureInfo.DefaultThreadCurrentUICulture = new CultureInfo(Resources.Language);
form = new FamilyTreeForm(doc, mainHandle);
form.ShowDialogPlus();
}
}
Addin file:
<AddIn Type="Command">
<Assembly>FamilyTree\FamilyTree.dll</Assembly>
<ClientId>86317968-1B3F-4E8F-942E-0F4510BB5BC4</ClientId>
<FullClassName>Tom.FamilyTree.Command</FullClassName>
<Text>FamilyTree</Text>
<VisibilityMode>AlwaysVisible</VisibilityMode>
<LanguageType>Unknown</LanguageType>
<VendorId>TOM</VendorId>
<VendorDescription></VendorDescription>
</AddIn>
Reference: https://forums.autodesk.com/t5/revit-api-forum/language-resources-are-not-parsed-properly/td-p/11502581
All of the above seems to be useless.
Here are the latest discussions:
https://forums.autodesk.com/t5/revit-api-forum/issue-with-languagetype-in-addin-manifest-for-localization/m-p/11512935#M66903
I seem to have made a closer to the correct answer in this discussion thread. There is still a doubt in there, LanguageType seems to be just a text identifier and seems to have no real value in sight.