コード例 #1
0
        /// <summary>
        /// Parses a record that refers to an entity translation.
        /// </summary>
        /// <param name="str">The record to parse.</param>
        /// <returns>True if record parsed ok. False if the record could
        /// not be parsed.</returns>
        bool AddTranslation(string str)
        {
            // Create an entity translation object for the current map.
            EntityTranslation entran = new EntityTranslation();

            if (!entran.Create(str))
            {
                return(false);
            }

            m_Translations.Add(entran);
            return(true);
        }
コード例 #2
0
        /// <summary>
        /// Parses a record that refers to an entity translation.
        /// </summary>
        /// <param name="str">The record to parse.</param>
        /// <returns>True if record parsed ok. False if the record could
        /// not be parsed.</returns>
        bool AddTranslation(string str)
        {
            // Create an entity translation object for the current map.
            EntityTranslation entran = new EntityTranslation();
            if (!entran.Create(str))
                return false;

            m_Translations.Add(entran);
            return true;
        }