1. Home
  2. Docs
  3. Data Publisher
  4. Change publication language

Change publication language

Global publication language

To change the global publication language:

  • Open your WordPress dashboard
  • Go to Settings > WP Data Access > DataTables
  • Select your Front-End Language (default = English)
  • Save your settings

All publications will use this setting by default.

Change language of a specific publication

To change the language of a specific publication:

  • Edit your publication in the Data Publisher
  • Add option wpda_language to Advanced settings (see example below)
  • Save your publication

This will change the language for the edited publication only.

Example

{
	"wpda_language": "Dutch"
}

Note

Option wpda_language allows to show multiple publications on the same page using different languages.

Change Search Builder language

The Search Builder does not have a language file. Conditions and operators need to be defined in Advanced settings (see example below).

{
	"language": {
		"searchBuilder": {
			"add": "Add",
			"condition": "Condition",
			"clearAll": "Clear All",
			"delete": "X",
			"deleteTitle": "Delete filtering rule",
			"data": "Column",
			"left": "<",
			"leftTitle": "Outdent criteria",
			"logicAnd": "And",
			"logicOr": "Or",
			"right": ">",
			"rightTitle": "Indent criteria",
			"title": {
				"0": "Filters",
				"_": "Filters (%d)"
			},
			"value": "Option",
			"valueJoiner": "and",
			"conditions": {
				"number": {
					"between": "Between",
					"empty": "Empty",
					"equals": "Equals",
					"gt": "Greater Than",
					"gte": "Greater Than Equal To",
					"lt": "Less Than",
					"lte": "Less Than Equal To",
					"not": "Not",
					"notBetween": "Not Between",
					"notEmpty": "Not Empty"
				},
				"string": {
					"contains": "Contains",
					"empty": "Empty",
					"endsWith": "Ends With",
					"equals": "Equals",
					"not": "Not",
					"notContains": "Does Not Contain",
					"notEmpty": "Not Empty",
					"notEndsWith": "Does Not End With",
					"notStartsWith": "Does Not Start With",
					"startsWith": "Starts With",
				},
				"date": {
					"after": "After",
					"before": "Before",
					"between": "Between",
					"empty": "Empty",
					"equals": "Equals",
					"not": "Not",
					"notBetween": "Not Between",
					"notEmpty": "Not Empty"
				},
				"array": {
					"contains": "Contains",
					"empty": "Empty",
					"equals": "Equals",
					"not": "Not",
					"notEmpty": "Not Empty",
					"without": "Without"
				}
			}
		}
	}
}

Change Search Panes language

There is no language file for Search Panes. Language changes need to be defined in Advanced settings (see example below).

{
	"language": {
		"searchPanes": {
			"title": {
				"_": "Filters Active - %d",
				"0": "No Filters Active",
				"1": "One Filter Active"
			}
		}
	}
}

Search Builder and Search Panes languages settings combined

{
	"language": {
		"searchBuilder": {
			"add": "Add",
			"condition": "Condition",
			"clearAll": "Clear All",
			"delete": "X",
			"deleteTitle": "Delete filtering rule",
			"data": "Column",
			"left": "<",
			"leftTitle": "Outdent criteria",
			"logicAnd": "And",
			"logicOr": "Or",
			"right": ">",
			"rightTitle": "Indent criteria",
			"title": {
				"0": "Filters",
				"_": "Filters (%d)"
			},
			"value": "Option",
			"valueJoiner": "and",
			"conditions": {
				"number": {
					"between": "Between",
					"empty": "Empty",
					"equals": "Equals",
					"gt": "Greater Than",
					"gte": "Greater Than Equal To",
					"lt": "Less Than",
					"lte": "Less Than Equal To",
					"not": "Not",
					"notBetween": "Not Between",
					"notEmpty": "Not Empty"
				},
				"string": {
					"contains": "Contains",
					"empty": "Empty",
					"endsWith": "Ends With",
					"equals": "Equals",
					"not": "Not",
					"notContains": "Does Not Contain",
					"notEmpty": "Not Empty",
					"notEndsWith": "Does Not End With",
					"notStartsWith": "Does Not Start With",
					"startsWith": "Starts With",
				},
				"date": {
					"after": "After",
					"before": "Before",
					"between": "Between",
					"empty": "Empty",
					"equals": "Equals",
					"not": "Not",
					"notBetween": "Not Between",
					"notEmpty": "Not Empty"
				},
				"array": {
					"contains": "Contains",
					"empty": "Empty",
					"equals": "Equals",
					"not": "Not",
					"notEmpty": "Not Empty",
					"without": "Without"
				}
			}
		},
		"searchPanes": {
			"title": {
				"_": "Filters Active - %d",
				"0": "No Filters Active",
				"1": "One Filter Active"
			}
		}
	}
}
Was this article helpful to you? Yes No

Leave a Reply

Your email address will not be published.