Add a translation to a localized department

To add values for the other languages to the available Lstring properties of a department, you must perform the following:

  1. Get an instance of the TaxonomyManager class.
  2. Using the TaxonomyManager get the HierarchicalTaxonomy for Departments.
    If such a taxonomy does not exist, discontinue the execution of the method.
  3. Get the HierarchicalTaxon of the department that is to be localized.
    If such a taxon does not exist, discontinue the execution of the method.
  4. Set the properties of the department objects.
    Passing the culture when setting the Title of the department ensures that the department is localized for that specific culture.
  5. Save the changes.

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?