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. Join us on Dec 8, 2022, between 7 am & 7 pm EST, in the DOTS Dev Blitz Day 2022 - Q&A forum, Discord, and Unity3D Subreddit to learn more about DOTS directly from the Unity Developers.
    Dismiss Notice
  3. Have a look at our Games Focus blog post series which will show what Unity is doing for all game developers – now, next year, and in the future.
    Dismiss Notice

Change casing (e.g. to upper case or lower case)

Discussion in 'Localization Tools' started by CrowbarSka, Nov 2, 2021.

  1. CrowbarSka

    CrowbarSka

    Joined:
    Dec 15, 2009
    Posts:
    188
    Is there a way to change the casing of a LocalizedString?

    For example, my string says:
    "Action Points"

    I want to get that string formatted as:
    "ACTION POINTS"
    or
    "action points"

    This would save on the number of items I have to localize, as otherwise I need individual items for each casing version, which is more costly, plus then it's prone to error having different translations for each one.

    I couldn't see anything in the documenation about this but maybe I'm missing something.

    Thanks!
     
  2. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    6,865
  3. CrowbarSka

    CrowbarSka

    Joined:
    Dec 15, 2009
    Posts:
    188
    Great! Thanks for the quick response. I'll give this a try.

    EDIT: Worked a treat. Thanks
     
    Last edited: Nov 3, 2021
    karl_jones likes this.