diff --git a/Assets/Localisation/LocalisationManager.cs b/Assets/Localisation/LocalisationManager.cs index 922688b4..b118b392 100644 --- a/Assets/Localisation/LocalisationManager.cs +++ b/Assets/Localisation/LocalisationManager.cs @@ -1,5 +1,7 @@ using System; using System.Collections.Generic; +using UnityEditor; +using UnityEditor.UIElements; using UnityEngine; namespace UnityVolumeRendering diff --git a/Assets/Localisation/LocalisedStrings.cs b/Assets/Localisation/LocalisedStrings.cs new file mode 100644 index 00000000..e2c8ed19 --- /dev/null +++ b/Assets/Localisation/LocalisedStrings.cs @@ -0,0 +1,35 @@ +#define UVR_LOCALE_CHINESE + +using System; +using System.Collections.Generic; +using UnityEditor; +using UnityEditor.UIElements; +using UnityEngine; + +namespace UnityVolumeRendering +{ + public class LocalisedStrings + { +#if UVR_LOCALE_CHINESE + public const string MENUITEM_VOLREND = "体绘制"; + public const string MENUITEM_LOADDATASET = MENUITEM_VOLREND + "/导入数据集"; + public const string MENUITEM_LOAD_DICOM = MENUITEM_LOADDATASET + "/导入DICOM数据"; + public const string MENUITEM_LOAD_RAW = MENUITEM_LOADDATASET + "/导入RAW数据"; + public const string MENUITEM_LOAD_NRRD = MENUITEM_LOADDATASET + "/导入NRRD数据"; + public const string MENUITEM_LOAD_NIFTI = MENUITEM_LOADDATASET + "/导入NIFTI数据"; + public const string MENUITEM_LOAD_PARCHG = MENUITEM_LOADDATASET + "/导入PARCHG数据"; + public const string MENUITEM_LOAD_IMGSEQ = MENUITEM_LOADDATASET + "/导入图像序列格式"; + public const string MENUITEM_LOAD_IMG = MENUITEM_LOADDATASET + "/导入图像数据"; +#else + public const string MENUITEM_VOLREND = "Volume Rendering"; + public const string MENUITEM_LOADDATASET = MENUITEM_VOLREND + "/Load dataset"; + public const string MENUITEM_LOAD_DICOM = MENUITEM_LOADDATASET + "/Load DICOM"; + public const string MENUITEM_LOAD_RAW = MENUITEM_LOADDATASET + "/Load raw dataset"; + public const string MENUITEM_LOAD_NRRD = MENUITEM_LOADDATASET + "/Load NRRD dataset"; + public const string MENUITEM_LOAD_NIFTI = MENUITEM_LOADDATASET + "/Load NIFTI dataset"; + public const string MENUITEM_LOAD_PARCHG = MENUITEM_LOADDATASET + "/Load PARCGH dataset"; + public const string MENUITEM_LOAD_IMGSEQ = MENUITEM_LOADDATASET + "/Load image sequence dataset"; + public const string MENUITEM_LOAD_IMG = MENUITEM_LOADDATASET + "/Load image dataset"; +#endif + } +} diff --git a/Assets/Localisation/LocalisedStrings.cs.meta b/Assets/Localisation/LocalisedStrings.cs.meta new file mode 100644 index 00000000..d2e608b4 --- /dev/null +++ b/Assets/Localisation/LocalisedStrings.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6779d19c70459c2409ae5a7775361b5e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: