Constants

TD_FORCED

TD_FORCED =RCB_TD . '-forced'

MINIMAL_TRANSLATION_CODES

MINIMAL_TRANSLATION_CODES =array('fr_FR', 'fr_BE', 'fr_CA', 'it_IT', 'pl_PL', 'ro_RO', 'nl_BE', 'nl_NL_formal', 'nl_NL', 'tr_TR', 'ru_RU', 'bg_BG', 'cs_CZ', 'da_DK', 'sv_SE', 'fi', 'el', 'pt_BR', 'pt_PT', 'es_AR', 'es_CL', 'es_CO', 'es_CR', 'es_ES', 'es_GT', 'es_MX', 'es_PE', 'es_UY', 'es_VE')

See `self::getActiveMinimalTranslations`.

Properties

Methods

hints()

hints(array  $hints)

Custom hints for multilingual.

Parameters

array $hints

getActiveMinimalTranslations()

getActiveMinimalTranslations()

In `src/languages-local` we provide a set of minimal translations for texts needed in the frontend of Real Cookie Banner. All other texts are translateable through our UI and customizer.

queryArguments()

queryArguments(array  $arguments)

Query arguments `lang`.

Parameters

array $arguments

rest_api_init()

rest_api_init()

Create temporary text domain.

rest_query()

rest_query(array  $args)

Modify query for REST queries.

Parameters

array $args

Key value array of query var to query value.

createTemporaryTextDomain()

createTemporaryTextDomain()

Create a temporary text domain of the current language.

context()

context(array  $contexts)

Add the current language code as independent context.

Parameters

array $contexts

contextTranslate()

contextTranslate(string  $context)

Translate language context to human readable form.

Parameters

string $context

revisionHash()

revisionHash(array  $result)

A new revision was requested, let's recreate also for other languages.

Parameters

array $result

revisionNeedsRetrigger()

revisionNeedsRetrigger(boolean  $needs_retrigger)

Check if any of the other languages needs a revision retrigger. This is only relevant for output buffer multilingual plugins (e.g. TranslatePress).

Parameters

boolean $needs_retrigger

revisionOptionValue_pageId()

revisionOptionValue_pageId(string  $value)

Modify option value for imprint id so it gets correctly resolved to the current language post id.

Parameters

string $value

copy_blocker_cookies_meta()

copy_blocker_cookies_meta(string  $meta_value,integer  $from,integer  $to,string  $locale)

Modify content blocker `cookies` / `tcfVendors` meta field to match the translated post ids.

Parameters

string $meta_value
integer $from

Object id of source language item

integer $to

Object id of destination language item

string $locale

getLanguagesWithoutEssentialGroup()

getLanguagesWithoutEssentialGroup()

Get all languages within a `AbstractSyncPlugin` (like WPML or PolyLang) which does currently not hold any essential group. This is necessary e.g. to copy content to newly added languages.

compInstance()

compInstance()

Get compatibility language instance.