TranslatePress Advanced Settings

Troubleshooting | Exclude strings | Debug | Miscellaneous options | Custom language

Troubleshooting

Fix missing dynamic content

May help fix missing content inserted using JavaScript.
It shows dynamically inserted content in original language for a moment before the translation request is finished.

Disable dynamic translation

It disables detection of strings displayed dynamically using JavaScript.
Strings loaded via a server side AJAX call will still be translated.

Fix broken HTML

General attempt to fix broken or missing HTML on translated pages.

Filter Gettext wrapping from post content and title

Filters gettext wrapping such as #!trpst#trp-gettext from all updated post content and post title. Does not affect previous post content.
Database backup is recommended before switching on.

Filter Gettext wrapping from post meta

Filters gettext wrapping such as #!trpst#trp-gettext from all updated post meta. Does not affect previous post meta.
Database backup is recommended before switching on.

Exclude strings

Exclude Gettext Strings
Gettext StringDomain

Exclude these strings from being translated as Gettext strings by TranslatePress. Leave the domain empty to take into account any Gettext string.
Can still be translated through po/mo files.

Exclude strings from automatic translation
String

Do not automatically translate these strings (ex. names, technical words...)
Paragraphs containing these strings will still be translated except for the specified part.

Exclude from dynamic translation
Selector

Do not dynamically translate strings that are found in html nodes matching these selectors.
Excludes all the children of HTML nodes matching these selectors from being translated using JavaScript.
These strings will still be translated on the server side if possible.

Exclude selectors from translation
Selector

Do not translate strings that are found in html nodes matching these selectors.
Excludes all the children of HTML nodes matching these selectors from being translated.
These strings cannot be translated manually nor automatically.

Exclude selectors only from automatic translation
Selector

Do not automatically translate strings that are found in html nodes matching these selectors.
Excludes all the children of HTML nodes matching these selectors from being automatically translated.
Manual translation of these strings is still possible.

Do not translate certain paths

Choose what paths can be translated. Supports wildcard at the end of the path.
For example, to exclude https://example.com/some/path you can either use the rule /some/path/ or /some/*.
Enter each rule on it's own line. To exclude the home page use {{home}}.

Debug

Disable post container tags for post title

It disables search indexing the post title in translated languages.
Useful when the title of the post doesn't allow HTML thus breaking the page.

Disable post container tags for post content

It disables search indexing the post content in translated languages.
Useful when the content of the post doesn't allow HTML thus breaking the page.

Disable translation for gettext strings

Gettext Strings are strings outputted by themes and plugins.
Translating these types of strings through TranslatePress can be unnecessary if they are already translated using the .po/.mo translation file system.
Enabling this option can improve the page load performance of your site in certain cases. The disadvantage is that you can no longer edit gettext translations using TranslatePress, nor benefit from automatic translation on these strings.

Show regular strings tab in String Translation

Adds an additional tab on the String Translation interface that allows editing translations of user-inputted strings.

Optimize TranslatePress database tables

Click here to remove duplicate rows from the database.

Miscellaneous options

Remove duplicate hreflang

Choose which hreflang tags will appear on your website.
We recommend showing both types of hreflang tags as indicated by Google documentation.
Removing Country Locale when having multiple Country Locales of the same language (ex. English UK and English US) will result in showing one hreflang tag with link to just one of the region locales for that language.

HTML Lang Attribute Format

Change lang attribute of the html tag to a format that includes country regional or not.
In HTML, the lang attribute () should be used to specify the language of text content so that the browser can correctly display or process your content (eg. for hyphenation, styling, spell checking, etc).

Automatic Translation Memory

Serve same translation for similar text. The strings need to have a percentage of 95% similarity.
Helps prevent losing existing translation when correcting typos or making minor adjustments to the original text.
If a translation already exists for a very similar original string, it will automatically be used for the current original string.
Does not work when making changes to a text that is part of a translation block unless the new text is manually merged again in a translation block.
Each string needs to have a minimum of 50 characters.

Force slash at end of home url:

Ads a slash at the end of the home_url() function

Translate numbers and numerals

Enable translation of numbers ( e.g. phone numbers)

Exclude translated links from sitemap

Do not include translated links in sitemaps generated by SEO plugins.
Requires SEO Pack Add-on to be installed and activated.

Enable the hreflang x-default tag for language:

Enables the hreflang="x-default" for an entire language. See documentation for more details.

Date format

Customize the date formatting per each translated language.
Leave empty for default WP setting or see more information here

Show opposite language in the language switcher

Transforms the language switcher into a button showing the other available language, not the current one.
Only works when there are exactly two languages, the default one and a translation one.
This will affect the shortcode language switcher and floating language switcher as well.
To achieve this in menu language switcher go to Appearance->Menus->Language Switcher and select Opposite Language.

Open language switcher only on click

Open the language switcher shortcode by clicking on it instead of hovering.
Close it by clicking on it, anywhere else on the screen or by pressing the escape key. This will affect only the shortcode language switcher.

Marketing optin

Opt in to our security and feature updates notifications, and non-sensitive diagnostic tracking.

Custom language

Custom language
Language code * Language nameNative nameAutomatic translation codeFlag URLText RTL

To edit an existing TranslatePress language, input the language code and fill in only the columns you want to overwrite (e.g. Language name, Flag).
You can also add new custom languages. They will be available under General settings, All Languages list, where the URL slug can be edited.
For custom flag, first upload the image in media library then paste the URL.
Changing or deleting a custom language will impact translations and site URL's.
The Language code and the Automatic Translation Code should contain only alphabetical values, numerical values, "-" and "_".
The Automatic Translation codes can be found on Google ISO Codes and DeepL Target Codes.