Hey everybody,
I have been developing revit plugins for past 1-2 years in English language. I intend to convert my plugin into other languages so that I can make it useful for people all around the world. I would appreciate if anybody could help me with the procedure for doing so.
Thank you
Regards,
Padmanabh
Solved! Go to Solution.
Solved by lukaskohout. Go to Solution.
You can use Resources with string table:
https://stackoverflow.com/questions/1142802/how-to-use-localization-in-c-sharp
Try Googel for more details.
Thank you very much, it helped me. Sorry for the late reply.
Regards,
Padmanabh.
How do you do it? @padmanabhb4
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>
All of the above seems to be useless.
Here are the latest discussions:
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.