Interface for multi-lingual plugin

package kocuj_sitemap

 Methods

Something to do after get author item

afterGetAuthorItem(integer $authorId, string $locale) : void
access public

Parameters

$authorId

integer

Author id

$locale

string

Language locale

Something to do after get authors

afterGetAuthors(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do after get blog name

afterGetBlogName() : void
access public

Something to do after get categories

afterGetCategories(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do after get category item

afterGetCategoryItem(integer $categoryId, string $locale) : void
access public

Parameters

$categoryId

integer

Category id

$locale

string

Language locale

Something to do after get custom post item

afterGetCustomPostItem(integer $customPostId, string $locale) : void
access public

Parameters

$customPostId

integer

Custom post id

$locale

string

Language locale

Something to do after get custom posts

afterGetCustomPosts(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do after get home URL

afterGetHomeURL(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do after get menu

afterGetMenu(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do after get menu item

afterGetMenuItem(integer $itemId, string $locale) : void
access public

Parameters

$itemId

integer

Menu item id

$locale

string

Language locale

Something to do after get page item

afterGetPageItem(integer $pageId, string $locale) : void
access public

Parameters

$pageId

integer

Page id

$locale

string

Language locale

Something to do after get pages

afterGetPages(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do after get post item

afterGetPostItem(integer $postId, string $locale) : void
access public

Parameters

$postId

integer

Post id

$locale

string

Language locale

Something to do after get posts

afterGetPosts(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do after get tag item

afterGetTagItem(integer $tagId, string $locale) : void
access public

Parameters

$tagId

integer

Tag id

$locale

string

Language locale

Something to do after get tags

afterGetTags(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do after get taxonomies

afterGetTaxonomies(string $taxonomy, string $locale) : void
access public

Parameters

$taxonomy

string

Taxonomy type

$locale

string

Language locale

Something to do after get taxonomy item

afterGetTaxonomyItem(integer $termId, string $taxonomy, string $locale) : void
access public

Parameters

$termId

integer

Taxonomy id

$taxonomy

string

Taxonomy type

$locale

string

Language locale

Something to do after processing

afterProcess(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do before get author item

beforeGetAuthorItem(integer $authorId, string $locale) : void
access public

Parameters

$authorId

integer

Author id

$locale

string

Language locale

Something to do before get authors

beforeGetAuthors(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do before get blog name

beforeGetBlogName() : void
access public

Something to do before get categories

beforeGetCategories(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do before get category item

beforeGetCategoryItem(integer $categoryId, string $locale) : void
access public

Parameters

$categoryId

integer

Category id

$locale

string

Language locale

Something to do before get custom post item

beforeGetCustomPostItem(integer $customPostId, string $locale) : void
access public

Parameters

$customPostId

integer

Custom post id

$locale

string

Language locale

Something to do before get custom posts

beforeGetCustomPosts(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do before get home URL

beforeGetHomeURL(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do before get menu

beforeGetMenu(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do before get menu item

beforeGetMenuItem(integer $itemId, string $locale) : void
access public

Parameters

$itemId

integer

Menu item id

$locale

string

Language locale

Something to do before get page item

beforeGetPageItem(integer $pageId, string $locale) : void
access public

Parameters

$pageId

integer

Page id

$locale

string

Language locale

Something to do before get pages

beforeGetPages(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do before get post item

beforeGetPostItem(integer $postId, string $locale) : void
access public

Parameters

$postId

integer

Post id

$locale

string

Language locale

Something to do before get posts

beforeGetPosts(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do before get tag item

beforeGetTagItem(integer $tagId, string $locale) : void
access public

Parameters

$tagId

integer

Tag id

$locale

string

Language locale

Something to do before get tags

beforeGetTags(string $locale) : void
access public

Parameters

$locale

string

Language locale

Something to do before get taxonomies

beforeGetTaxonomies(string $taxonomy, string $locale) : void
access public

Parameters

$taxonomy

string

Taxonomy type

$locale

string

Language locale

Something to do before get taxonomy item

beforeGetTaxonomyItem(integer $termId, string $taxonomy, string $locale) : void
access public

Parameters

$termId

integer

Term id

$taxonomy

string

Taxonomy type

$locale

string

Language locale

Something to do before processing

beforeProcess(string $locale) : void
access public

Parameters

$locale

string

Language locale

Check if translation plugin exists; this method checks if all functions, classes, methods, properties and global variables, which are used from translation plugin, exists

checkPlugin() : boolean
access public

Returns

booleanTranslation plugin exists (true) or not (false)

Get singleton instance

getInstance() : object
Static
access public

Returns

objectSingleton instance

Get full URL to language flag

getLanguageFlag(string $locale) : string
access public

Parameters

$locale

string

Language locale

Returns

stringURL to language flag

Get languages list

getLanguages() : array
access public

Returns

arrayLanguages list

Get translation plugin name; it is used in administration panel during the selection of multi-lingual plugin

getName() : string
access public

Returns

stringPlugin name

Get translation plugin filename with its directory

getPluginFile() : string
access public

Returns

stringTranslation plugin filename

Get plugin priority; it is used to sort translation plugins usage order; the lowest number is the first plugin in order, the highest number is the last plugin in order

getPriority() : string
access public

Returns

stringPlugin priority

Get translated author name

getTranslatedAuthorName(string $origName, integer $authorId, string $locale) : string
access public

Parameters

$origName

string

Original author name

$authorId

integer

Author id

$locale

string

Language locale

Returns

stringTranslated author name

Get translated author URL

getTranslatedAuthorURL(string $origURL, integer $authorId, string $locale) : string
access public

Parameters

$origURL

string

Original author URL

$authorId

integer

Author id

$locale

string

Language locale

Returns

stringTranslated author URL

Get translated blog name

getTranslatedBlogName(string $origText, string $locale) : string
access public

Parameters

$origText

string

Original text

$locale

string

Language locale

Returns

stringTranslated text

Get translated category title

getTranslatedCategoryTitle(string $origTitle, integer $categoryId, string $locale) : string
access public

Parameters

$origTitle

string

Original category title

$categoryId

integer

Category id

$locale

string

Language locale

Returns

stringTranslated category title

Get translated category URL

getTranslatedCategoryURL(string $origURL, integer $categoryId, string $locale) : string
access public

Parameters

$origURL

string

Original category URL

$categoryId

integer

Category id

$locale

string

Language locale

Returns

stringTranslated category URL

Get translated custom post title

getTranslatedCustomPostTitle(string $origTitle, integer $customPostId, string $locale) : string
access public

Parameters

$origTitle

string

Original custom post title

$customPostId

integer

Custom post id

$locale

string

Language locale

Returns

stringTranslated custom post title

Get translated custom post URL

getTranslatedCustomPostURL(string $origURL, integer $customPostId, string $locale) : string
access public

Parameters

$origURL

string

Original custom post URL

$customPostId

integer

Custom post id

$locale

string

Language locale

Returns

stringTranslated custom post URL

Get translated home URL

getTranslatedHomeURL(string $origURL, string $locale) : string
access public

Parameters

$origURL

string

Original home URL

$locale

string

Language locale

Returns

stringTranslated home URL

Get translated menu title

getTranslatedMenuTitle(string $origTitle, integer $menuId, string $locale) : string
access public

Parameters

$origTitle

string

Original menu title

$menuId

integer

Menu id

$locale

string

Language locale

Returns

stringTranslated menu title

Get translated menu URL

getTranslatedMenuURL(string $origURL, integer $menuId, string $locale) : string
access public

Parameters

$origURL

string

Original menu URL

$menuId

integer

Menu id

$locale

string

Language locale

Returns

stringTranslated menu URL

Get translated page title

getTranslatedPageTitle(string $origTitle, integer $pageId, string $locale) : string
access public

Parameters

$origTitle

string

Original page title

$pageId

integer

Page id

$locale

string

Language locale

Returns

stringTranslated page title

Get translated page URL

getTranslatedPageURL(string $origURL, integer $pageId, string $locale) : string
access public

Parameters

$origURL

string

Original page URL

$pageId

integer

Page id

$locale

string

Language locale

Returns

stringTranslated page URL

Get translated post title

getTranslatedPostTitle(string $origTitle, integer $postId, string $locale) : string
access public

Parameters

$origTitle

string

Original post title

$postId

integer

Post id

$locale

string

Language locale

Returns

stringTranslated post title

Get translated post URL

getTranslatedPostURL(string $origURL, integer $postId, string $locale) : string
access public

Parameters

$origURL

string

Original post URL

$postId

integer

Post id

$locale

string

Language locale

Returns

stringTranslated post URL

Get translated tag name

getTranslatedTagName(string $origName, integer $tagId, string $locale) : string
access public

Parameters

$origName

string

Original tag name

$tagId

integer

Tag id

$locale

string

Language locale

Returns

stringTranslated tag name

Get translated tag URL

getTranslatedTagURL(string $origURL, integer $tagId, string $locale) : string
access public

Parameters

$origURL

string

Original tag URL

$tagId

integer

Tag id

$locale

string

Language locale

Returns

stringTranslated tag URL

Get translated taxonomy title

getTranslatedTaxonomyTitle(string $origTitle, integer $termId, string $taxonomy, string $locale) : string
access public

Parameters

$origTitle

string

Original taxonomy title

$termId

integer

Taxonomy id

$taxonomy

string

Taxonomy type

$locale

string

Language locale

Returns

stringTranslated taxonomy title

Get translated taxonomy URL

getTranslatedTaxonomyURL(string $origURL, integer $termId, string $taxonomy, string $locale) : string
access public

Parameters

$origURL

string

Original taxonomy URL

$termId

integer

Taxonomy id

$taxonomy

string

Taxonomy type

$locale

string

Language locale

Returns

stringTranslated taxonomy URL