如何使用 TranslatePress 翻译链接

TranslatePress lets you easily translate links within the visual translation editor in just a few clicks.

Internal links are translated automatically by TranslatePress. All the page or post links within your site are translated to their version of the currently displayed language.

Custom internal links that are added directly to the HTML (without using PHP functions to construct them) are those added in the post content for example. These links can also be automatically translated by TranslatePress if the option 在自定义链接中强制使用语言 is set to . This option is active by default and can be changed in Settings → TranslatePress → General 标签。

What’s left are links to internal media such as images, documents, or archive files, and external links. These can be translated manually from the Translation Editor interface.

Simply hover a link, click the  button and translate the link. For each language you can either place the translated link or select a resource using Add Media button. This allows you to use the WordPress Media library to select an existing image, PDF, or other files, or upload a new file.

Translating links in the visual translation editor

In this screenshot, we have translated the external link of the Wikipedia article in English, to the French version of the Wikipedia article.
Basically, we have translated the href of that anchor to point to another URL.

How to Translate PDF Links

To translate a PDF link, click the pencil icon and translate the PDF link. For each language, you can enter the translated link or choose a resource using the Add Media button. Please ensure that you have translated the PDF document into all necessary languages, as TranslatePress does not translate PDFs. You’ll need to manage the translations of the PDFs separately.

0条评论

递交一条评论

您的邮箱地址不会被公开。 必填项已用 * 标注