Translate from german to english, how?

Hello,

how can i translate from german to english:
1.) first i want my categories in English
2.) later i will do it with buildInParameters

but how could first step work?

import clr

# Import DocumentManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager

clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

uiapp = DocumentManager.Instance.CurrentUIApplication
app = uiapp.Application


##  CODE to check the language from REVIT ###
Revitlanguage = app.Language
languageENU=IN[0]
languageDEU=IN[1]

##  CODE to check the language from REVIT ###
Revitlanguage = app.Language

if Revitlanguage == Autodesk.Revit.ApplicationServices.LanguageType.German:
	result = languageENU
else:
    result= "pass"

OUT=result

KR

Andreas

1 Like

May be this is some help?

1 Like