Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lobby scene localization #1449

Merged
merged 20 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
28bb699
Created Localization table for UI.
Ryan089 Aug 19, 2024
6e3ef59
Added Localization String Event to tabs in LobbyCanvas.prefab
Ryan089 Aug 19, 2024
8ef07ef
Added translations for Lobby tabs
Ryan089 Aug 19, 2024
32564b7
Create basic script to localize the font depending on locale.
Ryan089 Aug 19, 2024
4a71cca
Added font localization asset table.
Ryan089 Aug 19, 2024
a01b4f2
Updated tabs in the Lobby Canvas to localize their fonts.
Ryan089 Aug 19, 2024
fa609cb
Localize Ready, Observe, Admin and Embark buttons on LobbyCanvas.
Ryan089 Aug 20, 2024
a6ce9e4
Amended ToggleLabelButton to allow correct functioning of Ready / Not…
Ryan089 Aug 20, 2024
7f4b3cd
Start / Stop round button functional.
Ryan089 Aug 21, 2024
5fd138a
Admin and Round State text boxes (Server Settings tab)
Ryan089 Aug 21, 2024
9de55a4
Localization applied to Round State View.
Ryan089 Aug 22, 2024
ccd4f20
Resolve issue where Round State View sometimes displaying badly.
Ryan089 Aug 22, 2024
2166929
Localized Character Name
Ryan089 Aug 22, 2024
beb8de7
Fixed error where sometimes localized text was not displaying in lobby.
Ryan089 Aug 24, 2024
d9bbab1
Localized the examine name view.
Ryan089 Aug 24, 2024
0e5cb9a
Use locale identifier.
Ryan089 Aug 24, 2024
d95c31e
Change a bunch of Localize String Events to trigger in Editor as well…
Ryan089 Aug 26, 2024
e26951c
Added some batch files to demonstrate localization in builds.
Ryan089 Aug 26, 2024
afcbee3
Set LocalizeFont to always initialize.
Ryan089 Aug 26, 2024
96e531a
Change to default Addressables path as per Centcom guidance.
Ryan089 Aug 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions Assets/Content/Addressables/AddressableAssetSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ MonoBehaviour:
- {fileID: 11400000, guid: c41683e9caa764e4e9435d1d093705aa, type: 2}
- {fileID: 11400000, guid: a9d8529962f456b4a8b33bf31a83b2ad, type: 2}
- {fileID: 11400000, guid: e4597e5d8298ad44ba0ffcb671a3c664, type: 2}
- {fileID: 11400000, guid: 25d0d12e290b48c4b85d9cac6c1f5bff, type: 2}
- {fileID: 11400000, guid: 3ea13d3b3287f084097d59cfba633768, type: 2}
- {fileID: 11400000, guid: fa098253ac0b3524896be51f8f940d2e, type: 2}
- {fileID: 11400000, guid: 46b9ed05a1b2cc7489177bea7080db40, type: 2}
- {fileID: 11400000, guid: 1dd6dd18af88a7f48a541271e8169fbf, type: 2}
- {fileID: 11400000, guid: 1af7b985abde02a47bd3e464bb8f8433, type: 2}
m_BuildSettings:
m_CompileScriptsInVirtualMode: 0
m_CleanupStreamingAssetsAfterBuilds: 1
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Localization-Asset-Tables-English (en)
m_EditorClassIdentifier:
m_GroupName: Localization-Asset-Tables-English (en)
m_Data:
m_SerializedData: []
m_GUID: 561ff90b115f302449ee2ac906e56a75
m_SerializeEntries:
- m_GUID: 633817cdd46a72b4f8a7e8b2da23d91f
m_Address: Font_en
m_ReadOnly: 1
m_SerializedLabels:
- Locale-en
- Preload
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: f50f36a534a5be9468df88df8b566fb3, type: 2}
- {fileID: 11400000, guid: b6d34679ed4cd3e4794c16fd5cdf4aba, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Localization-Asset-Tables-French (fr)
m_EditorClassIdentifier:
m_GroupName: Localization-Asset-Tables-French (fr)
m_Data:
m_SerializedData: []
m_GUID: ec157bfcaecb2494681a044cdb348d68
m_SerializeEntries:
- m_GUID: 44ac02865ec1bf44d820d587ecacf1f9
m_Address: Font_fr
m_ReadOnly: 1
m_SerializedLabels:
- Locale-fr
- Preload
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: 32d2ec3cb090f694590147dd7e210ee0, type: 2}
- {fileID: 11400000, guid: 8ea06661f80ddda4488d0b208666c4c5, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Localization-Asset-Tables-Portuguese (Brazil) (pt-BR)
m_EditorClassIdentifier:
m_GroupName: Localization-Asset-Tables-Portuguese (Brazil) (pt-BR)
m_Data:
m_SerializedData: []
m_GUID: 1838655a0cde7d946a9029ef6660db26
m_SerializeEntries:
- m_GUID: 6aee284da4fc3784283ce32e02c583e6
m_Address: Font_pt-BR
m_ReadOnly: 1
m_SerializedLabels:
- Locale-pt-BR
- Preload
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: 42893f668dd7afe459dfeccbff3b7e82, type: 2}
- {fileID: 11400000, guid: d0652bfd2d91fd34ea33b8a71f870adf, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Localization-Asset-Tables-Russian (Russia) (ru-RU)
m_EditorClassIdentifier:
m_GroupName: Localization-Asset-Tables-Russian (Russia) (ru-RU)
m_Data:
m_SerializedData: []
m_GUID: 9abd643e012a1db49abc9f3d6dcd26d5
m_SerializeEntries:
- m_GUID: 7e8a897ee03ee454984ea5aaec959db5
m_Address: Font_ru-RU
m_ReadOnly: 1
m_SerializedLabels:
- Locale-ru-RU
- Preload
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: d66b0678a1462374dad6e75eeb5f04a2, type: 2}
- {fileID: 11400000, guid: e569c79202f117a4a918486f882f263c, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Localization-Assets-English (en)
m_EditorClassIdentifier:
m_GroupName: Localization-Assets-English (en)
m_Data:
m_SerializedData: []
m_GUID: 314cdd9274792f44591b2ce389200783
m_SerializeEntries:
- m_GUID: 871f8e8aac0529a4d833c4732d5efd95
m_Address: TMPFontHeader2
m_ReadOnly: 1
m_SerializedLabels:
- Locale-en
- m_GUID: 211cc0b58afe00e479d31e1cc6ba11b6
m_Address: TMPFontText
m_ReadOnly: 1
m_SerializedLabels:
- Locale-en
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: 8dc5f1060465aed4ba8dbb8e71f0cbb2, type: 2}
- {fileID: 11400000, guid: 98be0ef36b1d67c41915b66b1b7e5cf2, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bbb281ee3bf0b054c82ac2347e9e782c, type: 3}
m_Name: Localization-Assets-French (fr)
m_EditorClassIdentifier:
m_GroupName: Localization-Assets-French (fr)
m_Data:
m_SerializedData: []
m_GUID: 7c91fe3282fdaf6469998aae35cc197a
m_SerializeEntries: []
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
m_Schemas:
- {fileID: 11400000, guid: e21517c9700a7de4bbb469f76170d7e7, type: 2}
- {fileID: 11400000, guid: 161e534317f758749a8a9a2930c44373, type: 2}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ MonoBehaviour:
m_Address: Assets/Content/Localization/Table Collections/Misc/Misc Shared Data.asset
m_ReadOnly: 1
m_SerializedLabels: []
- m_GUID: d2a66e9e1fb4a534da0ec381c31605b4
m_Address: Assets/Content/Localization/Table Collections/UI/UI Shared Data.asset
m_ReadOnly: 1
m_SerializedLabels: []
- m_GUID: f48ea5726d8e4fb49ac2227f47706a46
m_Address: Assets/Content/Localization/Table Collections/Font/Font Shared Data.asset
m_ReadOnly: 1
m_SerializedLabels: []
- m_GUID: 8f586378b4e144a9851e7b34d9b748ee
m_Address: LiberationSans SDF
m_ReadOnly: 1
m_SerializedLabels:
- Locale-fr
- Locale-pt-BR
- Locale-ru-RU
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ MonoBehaviour:
m_SerializedLabels:
- Locale-en
- Preload
- m_GUID: a0474d84e6fbbef43b282e1da3218adb
m_Address: UI_en
m_ReadOnly: 1
m_SerializedLabels:
- Locale-en
- Preload
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ MonoBehaviour:
m_SerializedLabels:
- Locale-fr
- Preload
- m_GUID: 2019720b3fd97fc47a88b0868c7bbd92
m_Address: UI_fr
m_ReadOnly: 1
m_SerializedLabels:
- Locale-fr
- Preload
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ MonoBehaviour:
m_SerializedLabels:
- Locale-pt-BR
- Preload
- m_GUID: c6b4394e0eac718429a2d9e404355d1c
m_Address: UI_pt-BR
m_ReadOnly: 1
m_SerializedLabels:
- Locale-pt-BR
- Preload
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ MonoBehaviour:
m_SerializedLabels:
- Locale-ru-RU
- Preload
- m_GUID: c57b9297280d10a4eaa62c4176f63075
m_Address: UI_ru-RU
m_ReadOnly: 1
m_SerializedLabels:
- Locale-ru-RU
- Preload
m_ReadOnly: 1
m_Settings: {fileID: 11400000, guid: ddc57d0f5f9fb874e8a26db0c5b215e0, type: 2}
m_SchemaSet:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e5d17a21594effb4e9591490b009e7aa, type: 3}
m_Name: Localization-Asset-Tables-English (en)_BundledAssetGroupSchema
m_EditorClassIdentifier:
m_Group: {fileID: 11400000, guid: 25d0d12e290b48c4b85d9cac6c1f5bff, type: 2}
m_InternalBundleIdMode: 1
m_Compression: 1
m_IncludeAddressInCatalog: 1
m_IncludeGUIDInCatalog: 1
m_IncludeLabelsInCatalog: 1
m_InternalIdNamingMode: 0
m_CacheClearBehavior: 0
m_IncludeInBuild: 1
m_BundledAssetProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.BundledAssetProvider
m_ForceUniqueProvider: 0
m_UseAssetBundleCache: 1
m_UseAssetBundleCrc: 1
m_UseAssetBundleCrcForCachedBundles: 1
m_UseUWRForLocalBundles: 0
m_Timeout: 0
m_ChunkedTransfer: 0
m_RedirectLimit: -1
m_RetryCount: 0
m_BuildPath:
m_Id: 56790a984472fbe4a809c1ab1b0e4c79
m_LoadPath:
m_Id: 8abc09617b79e8b4994b07cc672cbbe5
m_BundleMode: 0
m_AssetBundleProviderType:
m_AssemblyName: Unity.ResourceManager, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
m_ClassName: UnityEngine.ResourceManagement.ResourceProviders.AssetBundleProvider
m_BundleNaming: 1
m_AssetLoadMode: 0

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading