Skip to content

tp TouchPointWP Utilities Translation

James K. edited this page May 7, 2024 · 1 revision

tp\TouchPointWP\Utilities\Translation

Used for Translation management.

  • Class name: Translation
  • Namespace: \tp\TouchPointWP\Utilities
  • This is an abstract class

Methods

useCampusAsLanguage

bool tp\TouchPointWP\Utilities\Translation::useCampusAsLanguage()

Determine whether campuses should be used as a "language" field.

  • Visibility: public
  • This method is static.

Returns

  • bool -

getWpmlLangCodeForString

string|null tp\TouchPointWP\Utilities\Translation::getWpmlLangCodeForString(string string)

Take a string and return the language code that it matches. Null if no match or WPML isn't enabled.

  • Visibility: public
  • This method is static.

Arguments

  • string string

Returns

  • string|null -

Clone this wiki locally