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 package returning that no translation have been found

Discussion in 'Editor & General Support' started by JoaquimEugenio, Mar 12, 2021.

  1. JoaquimEugenio

    JoaquimEugenio

    Joined:
    Jul 25, 2018
    Posts:
    2
    I used the new localization package to translate all of the strings of my project. I created the tables for each phase on the game, but, even when the table has the entry, it keeps returnin the message "No translation found for 'conjuntivapresdescription' in TableEye". If I open the table to see, the entry is there in the table with the same key.
    Code (CSharp):
    1.   public string Translate(string table, string key)
    2.     {
    3.         var op = LocalizationSettings.StringDatabase.GetLocalizedStringAsync(table, key);
    4.         if (op.IsDone)
    5.         {
    6.             Debug.Log(op.Result);
    7.             Debug.Log(LocalizationSettings.SelectedLocale);
    8.             return op.Result;
    9.         }
    10.         else
    11.         {
    12.             op.Completed += (o) => valueToChange = o.Result;
    13.             Debug.Log(op.Result);
    14.             return op.Result;
    15.          
    16.         }
    17.     }
    18.  
    19.  
    20.     void OnEnable()
    21.     {
    22.         stringRef.StringChanged += UpdateString;
    23.     }
    24.  
    25.     void OnDisable()
    26.     {
    27.         stringRef.StringChanged -= UpdateString;
    28.     }
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
  3. JoaquimEugenio

    JoaquimEugenio

    Joined:
    Jul 25, 2018
    Posts:
    2
    This is the table. For example the entry "conjuntiva" is no found by the code that I posted before even when its clear that the entry exists there. And this happens to many other entries.
    I didnt use spaces or Uppercase letters because I thought that this was the cause of the bug, but now it seems like its not it.
     

    Attached Files:

  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,846
    Its looking for the entry conjuntivapresdescription which I cant see in your screen shot. I can see conjuntiva although the 2nd error does seem to be in the table.

    Can you file a bug report and include the project so we can look in to it?