Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Localization undifined

Discussion in 'Localization Tools' started by Foreverplane_, Aug 1, 2021.

  1. Foreverplane_

    Foreverplane_

    Joined:
    Nov 11, 2018
    Posts:
    11
    Hi!
    I got issue. Localization package (About Localization | Localization | 1.0.0-pre.10 (unity3d.com)) works well in editor, but on my android phone i got - "random key name" for Language undefined in LocalizationTable not found. What is "Language undefined"? How i can fix this? Is Localization package has fallback to some default language? If not - this is completely useless for translation purposes =(
    Please halp.
    Thanks.
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Hi,
    Can you share the full error message and log file?
     
  3. Foreverplane_

    Foreverplane_

    Joined:
    Nov 11, 2018
    Posts:
    11
    Hi!

    After researching, i fix "no translation found message" to:
    '{key}' for {locale.LocaleName} in {table.TableCollectionName} not found

    and now got this:

    'START_GAME' for English (en) in LocalizationTable not found
    UnityEngine.Localization.LocalizedString:add_StringChanged(ChangeHandler)
    StateUIContainer:SwitchTo(String)
    UIService:OnSwitch(SwitchUIStateSignal)
    System.Action1:Invoke(T)
    Zenject.SignalDeclaration:FireInternal(List1, Object)
    Zenject.SignalDeclaration:Fire(Object)
    Zenject.SignalBus:FireId(Object, TSignal)
    MainState:OnEnter()
    GlobalGameStateService:SetupStateMachine()
    GlobalGameStateService:Initialize()
    Zenject.InitializableManager:Initialize()


    For unknown reasons, all languages, except language from first column in table, are lost in the android build.
    (I tested it on the phone by switching different languages in android system settings)
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Did you build the addressable assets?
     
  5. Foreverplane_

    Foreverplane_

    Joined:
    Nov 11, 2018
    Posts:
    11
    Yes
    And this problem is also reproduced in the editor if i select "Simulate groups (advanced)" in "Play Mode Script" in addressables window.
     
  6. Foreverplane_

    Foreverplane_

    Joined:
    Nov 11, 2018
    Posts:
    11
    Good news!
    I found solution.
    When i run Addressables->Analyze->Analyze Selected Rules,
    "Check Localization String Tables" says that Localization-String-Tables-English (en) (and some others) has no schema.
    After that i compare it with working tables and fix by hand. (In inspector debug mode uncheck readonly property and add scheme to corrupted (?) tables like in working tables)

    PS:
    Just for information.
    I am working with git version control and check that the assets of these schemas, by some reasons, has never been created.
     
    karl_jones likes this.