1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- using System;
- namespace I2.Loc
- {
- [Serializable]
- public struct LocalizedString
- {
- public LocalizedString(LocalizedString str)
- {
- this.mTerm = str.mTerm;
- this.mRTL_IgnoreArabicFix = str.mRTL_IgnoreArabicFix;
- this.mRTL_MaxLineLength = str.mRTL_MaxLineLength;
- this.mRTL_ConvertNumbers = str.mRTL_ConvertNumbers;
- }
- public static implicit operator string(LocalizedString s)
- {
- return s.ToString();
- }
- public static implicit operator LocalizedString(string term)
- {
- return new LocalizedString
- {
- mTerm = term
- };
- }
- public override string ToString()
- {
- string translation = LocalizationManager.GetTranslation(this.mTerm, !this.mRTL_IgnoreArabicFix, this.mRTL_MaxLineLength, !this.mRTL_ConvertNumbers, true, null, null);
- LocalizationManager.ApplyLocalizationParams(ref translation);
- return translation;
- }
- public string mTerm;
- public bool mRTL_IgnoreArabicFix;
- public int mRTL_MaxLineLength;
- public bool mRTL_ConvertNumbers;
- }
- }
|