When using core services, how do you localize or not block the component without a fatal error when the element is already in this state?
, I iterate over the list of TCM id values that I have and either localize it or not highlight it. Sometimes the element is already localized, so when I call
it throws an exception that says "The element is localized."
How can I check the state of a component (localized or not localized) before trying to change it?
source to share