getString()

getString(key, provider)

Get a localized string from a string bundle.

TODO: Explain placeholder and :: notation.

Arguments:
  • key (string) – The key to look up in the string bundle
  • provider (string) – Optional The provider whose string bundle should be used to lookup the key. See Base.getStringBundleUrl().
Returns:

string – The entry in the string bundle of the specified provider matching the provided key. If that key is not found in the string bundle of the specified provider or if no provider has been specified, the string bundle of TbSync itself we be used as fallback. If the key could not be found there as well, the key itself is returned.