private void saveLocalization ( ) { SortedProperties localization = new SortedProperties ( ) ; for ( Object itemId : m_container . getItemIds ( ) ) { Item item = m_container . getItem ( itemId ) ; String key = item . getItemProperty ( TableProperty . KEY ) . getValue ( ) . toString ( ) ; String value = item . getItemProperty ( TableProperty . TRANSLATION ) . getValue ( ) . toString ( ) ; if ( ! ( key . isEmpty ( ) || value . isEmpty ( ) ) ) { localization . put ( key , value ) ; } } m_keyset . updateKeySet ( m_localizations . get ( m_locale ) . keySet ( ) , localization . keySet ( ) ) ; m_localizations . put ( m_locale , localization ) ; }
Saves the current translations from the container to the respective localization .