private boolean removeKeyForAllLanguages ( String key ) { try { if ( hasDescriptor ( ) ) { lockDescriptor ( ) ; } loadAllRemainingLocalizations ( ) ; lockAllLocalizations ( key ) ; } catch ( CmsException | IOException e ) { LOG . warn ( "Not able lock all localications for bundle." , e ) ; return false ; } if ( ! hasDescriptor ( ) ) { for ( Entry < Locale , SortedProperties > entry : m_localizations . entrySet ( ) ) { SortedProperties localization = entry . getValue ( ) ; if ( localization . containsKey ( key ) ) { localization . remove ( key ) ; m_changedTranslations . add ( entry . getKey ( ) ) ; } } } return true ; }
Remove a key for all language versions . If a descriptor is present the key is only removed in the descriptor .