Ejemplo n.º 1
0
        private void BumpVersions()
        {
            //Set correct version numbers
            foreach (var item in lstKeys.Items)
            {
                var key = ((ListViewItem)item).Text;

                StringTranslation translation;

                try
                {
                    translation = _locale.GetString(_collection.Key, key);
                }
                catch (KeyNotFoundException)
                {
                    continue;
                }

                if (_parentLocale == null)
                {
                    if (_forceModified)
                    {
                        translation.BumpVersion = true;
                    }
                }
                else
                {
                    if (translation.BumpVersion)
                    {
                        translation.BumpVersion = false;
                        translation.Version     = _localeManager.GetLocaleVersion(_parentLocale.Key, _collection.Key, key);
                    }
                }
            }
        }