Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to convert a Revit plugin from english to other languages?

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
padmanabhb4
629 Views, 3 Replies

How to convert a Revit plugin from english to other languages?

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 

Labels (1)
3 REPLIES 3
Message 2 of 4
lukaskohout
in reply to: padmanabhb4

You can use Resources with string table:

https://stackoverflow.com/questions/1142802/how-to-use-localization-in-c-sharp

 

Try Googel for more details.


Hitting Accepted Answer is a Community Contribution from me as well as from you.
======================================================================
Message 3 of 4
padmanabhb4
in reply to: lukaskohout

Thank you very much, it helped me. Sorry for the late reply.

 

Regards,

Padmanabh.

Message 4 of 4
Anonymous
in reply to: padmanabhb4

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>

 

 

 

 

Reference: https://forums.autodesk.com/t5/revit-api-forum/language-resources-are-not-parsed-properly/td-p/11502...

 

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-localiz...

 

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Rail Community