How to find a locale key in vanilla

Unknown
edited November 2016 in Product

Click on this link and change Start a New Discussion by what you want.
The longer the sentence the better chance you have to find the result quickly.

Usually the text will be surrounded by t() like t('Start a New Discussion') or t('LocaleTokenWarning', 'This is a warning!').
In the second example, what you need to redefine is LocaleTokenWarning

Note: The current link will let you search in the Vanilla, Addons and Internal repositories (Which is enough in most cases)
If you want to search in another repository you just have to add repo:{NAMESPACE}/{REPOSITORY}. Example: repo:vanillaforums/vanilla-clients

Comments

  • There can also be translations inside smarty templates. They will be using {t c="Example Text"} or {t c='Example Text'}

  • Unknown
    edited October 2017

    I'd note that sometimes it might be easier to search the locales repo (in the tx-source repo).

    If you change "Start a new Discussion" in the search of bar of this page you can search the file that defines the source for everything in transifex.