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

Question Safely rename localization-asset-tables?

Discussion in 'Localization Tools' started by bottledgalaxy, Oct 1, 2023.

  1. bottledgalaxy

    bottledgalaxy

    Joined:
    Jul 19, 2019
    Posts:
    83
    Hi, i'm trying to compile my game on a platform with restrictions on filename characters, and looks like on the final push to it, it's complaining that filenames should be ASCII only. Here is the full error:
    ```
    [ERROR]: The path contains a restricted filename (ASCII and Windows filesystem supported filenames only). path\Builds\Build\Media\StreamingAssets\aa\localization-asset-tables-português_assets_all.bundle (0x80040336)
    ```
    (I also saw the error with the word "español")\

    I'm ASSUMING these names are being auto generated from the Localization Settings? (attached screenshot)

    I'm also sharing some more screenshots of where i'm seeing those names:
    The Addressables Group
    On the Path AddressableAssetsData\AssetGroups
    On the Path AddressableAssetsData\AssetGroups\Schemas

    So my question is, how can I safely rename these files without changing the actual Locale names?

    Thank you
     

    Attached Files:

    Last edited: Oct 2, 2023
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Hi,
    Could you please file a bug report so we can make sure this doesn't happen in the future?

    The issue is actually the addressables group name, it's safe to rename this, we don't rely on the name anywhere. You may find it regenerates the group with the same name. You can change the naming via the addressables group rules asset to prevent this
    https://docs.unity3d.com/Packages/com.unity.localization@1.4/manual/Addressables.html
     
  3. bottledgalaxy

    bottledgalaxy

    Joined:
    Jul 19, 2019
    Posts:
    83
    I tried going through that documentation, but I can't understand how to rename the files in the Group Rules Asset
     
  4. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    7,845
    Create a default addressables group naming asset, change the string table name to use {Identifier.Code} instead of {LocaleName}. Then run the addressables Analyzers so they apply the new names.
    Alternatively just rename the group manually and rebuild addressables.
     
  5. bottledgalaxy

    bottledgalaxy

    Joined:
    Jul 19, 2019
    Posts:
    83
    Awesome, that worked and fixed the build. Thank you!
     
    karl_jones likes this.