multilingual – XTRA Tutorials https://xtratheme.com/docs Documentation of XTRA WordPress Theme Sat, 28 Sep 2024 12:48:41 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.2 How to Change the Website Logo for Different Languages in WordPress? https://xtratheme.com/docs/how-to/how-to-change-the-website-logo-for-different-languages-in-wordpress/ https://xtratheme.com/docs/how-to/how-to-change-the-website-logo-for-different-languages-in-wordpress/#respond Tue, 24 Sep 2024 07:12:08 +0000 https://xtratheme.com/docs/?p=4424

Set a Different Logo for Multiple Languages

Step 1
Xtra
To change the logo for different languages in a WordPress website, you can follow these steps. This method assumes you’re using a multilingual plugin like WPML or Polylang, which allows you to manage different language content, including the logo.
To set separate logos for different languages, string translation is required.

WPML Plugin

  1. Go to WPML > String Translation page.
  2. Scroll down and click on the Translate texts in admin screens > link at the bottom of the page.
  3. Search for the site_logo as you can see in the attached screenshot.
  4. Select the string.
  5. Click on the Add to String Translation button.
  6.  Then click on “« Return to String Translation” link
  7. Add the translated logo ID as translation, you may get the logo ID from

The screenshot below is an example of translating strings in the WPML plugin.

Wpml string translation plus icon

Plylang Plugin

  1. Go to Languages > String Translations in the WordPress dashboard. This page lists all the strings (texts) that you can translate for your site, such as the site title, widgets, menus, and plugin texts.
  2. Use the search box to find the specific string you want to translate.
  3. Polylang automatically detects many site strings (including themes and plugins) and displays them in the table.
  4. Once you find the string, click on the input fields next to the language you want to translate.
  5. Enter your translation for each language.
  6. Click on the Save button.

The screenshot below is an example of translating strings in the Polylang plugin.

Translations table
]]>
https://xtratheme.com/docs/how-to/how-to-change-the-website-logo-for-different-languages-in-wordpress/feed/ 0
How to Translate Pages and Key Options with WPML? https://xtratheme.com/docs/how-to/how-to-translate-pages-and-key-options-with-wpml/ https://xtratheme.com/docs/how-to/how-to-translate-pages-and-key-options-with-wpml/#respond Wed, 28 Aug 2024 11:32:34 +0000 https://xtratheme.com/docs/?p=3758

Description and Screenshot

Step 1
XTRA

Translate your WordPress site using WPML

Translating pages and important options in the Xtra WordPress theme using WPML (WordPress Multilingual Plugin) and String Translation involves several steps. Below is a detailed guide on how to achieve this:

Channels4_banner

Step 1: Install and Activate WPML

Go to your WordPress Dashboard.

Navigate to “Plugins” > “Add New”.

In the search bar, type “WPML” and install the necessary components:

WPML Multilingual CMS (core plugin)

WPML String Translation

WPML Translation Management

Activate these plugins.


Step 2: Set Up WPML

After activation, WPML will guide you through the initial setup wizard.

Select your default language for the website.

Add additional languages you want to use on your site.

Configure language switcher options to allow users to switch between languages easily.


Step 3: Translate Pages and Posts

Create or Edit a Page/Post:

Go to “Pages” > “All Pages” or “Posts” > “All Posts”.

Choose the page or post you want to translate.

Translate Using WPML:

On the editing screen, you’ll see a WPML language box on the right side.

Click the “+” icon next to the language you want to translate into.

This will duplicate the page/post into the selected language, where you can input the translated content.

After translation, publish the translated page/post.


Step 4: Translate Theme Options Using WPML String Translation

Access Theme Options:

Navigate to “Appearance” > “Customize” or Theme Options if your theme has a specific panel for this.

Identify Strings to Translate:

Look for any text options, such as site title, tagline, footer text, etc., that need translation.

Go to “WPML” > “String Translation”:

Here, you’ll see a list of strings (text elements) used in your theme and plugins.

Search for the Relevant Strings:

Use the search bar to find specific strings related to the Xtra theme options.

Strings are often grouped by domain, such as “admin_texts_theme_mods_xtra” for theme modifications.

Translate the Strings:

Click on the string you want to translate.

Enter the translated text for each language.

Save the translations.


Step 5: Translate Menus

Go to “Appearance” > “Menus”.

Create or Edit a Menu:

After saving the default language menu, switch to other languages using the language selector at the top of the menu screen.

Translate the menu items by creating or adjusting the menu for each language.

Assign the Translated Menus to the correct theme locations.


Step 6: Translate Widgets

Go to “Appearance” > “Widgets”.

Translate Widget Content:

WPML allows you to translate widget content by duplicating widgets and assigning them to specific languages.

Alternatively, some widgets can be translated directly via the String Translation interface.


Step 7: Verify Translations

Preview Your Site:

Use the language switcher to preview your site in different languages.

Check All Translations:

Ensure that all pages, posts, theme options, menus, and widgets are correctly translated and displayed.

Tips

You may want to know …

 

  • Automatic Translation: WPML offers automatic translation options that can speed up the process if you have a lot of content.
  • SEO Configuration: Make sure to configure SEO settings for each language using WPML’s integration with SEO plugins like Yoast SEO.
  • By following these steps, you can effectively translate pages, theme options, and other important elements in the Xtra WordPress theme using WPML and String Translation.

 

For better and more comprehensive learning, visit the WPML documentation website.

]]>
https://xtratheme.com/docs/how-to/how-to-translate-pages-and-key-options-with-wpml/feed/ 0
How to Translate Pages and Key Options Using Polylang: A Step-by-Step Guide? https://xtratheme.com/docs/how-to/how-to-translate-pages-and-key-options-using-polylang-a-step-by-step-guide/ https://xtratheme.com/docs/how-to/how-to-translate-pages-and-key-options-using-polylang-a-step-by-step-guide/#respond Wed, 28 Aug 2024 10:38:32 +0000 https://xtratheme.com/docs/?p=3747

Description and Screenshot

Step 1
XTRA

Translate your WordPress site using Polylang

Polylang is a popular WordPress plugin that allows you to create a multilingual website by translating your content into different languages. Below is a step-by-step guide on how to translate pages and important options using Polylang:

Polylang

Step 1: Install and Activate Polylang

 

  1. Go to your WordPress Dashboard.
  2. Navigate to “Plugins” > “Add New”.
  3. In the search bar, type “Polylang”.
  4. Install the plugin and then click Activate.


Step 2: Set Up Your Languages

 

  1. Once activated, go to “Languages” > “Languages” in your WordPress dashboard.
  2. Add Languages:

Click the “Add New Language” button.

Select your desired languages from the drop-down list.

Set the language code, flag, and order if necessary.

Repeat this process to add all the languages you want on your site.


Step 3: Configure Polylang Settings

 

  1. Go to “Languages” > “Settings”.
  2. Choose Default Language:

Select which language you want to be the default language of your site.

  1. URL Settings:

Choose how you want to structure your URLs for different languages (e.g., by using subdomains, directories, or parameters).

  1. Synchronization:

Configure the synchronization options to decide which content elements (like media, categories, etc.) should be shared across translations.


Step 4: Translate Pages and Posts

 

  1. Create a New Page or Post:

Go to “Pages” > “Add New” or “Posts” > “Add New” to create a new page or post.

  1. Add Content in Default Language:

Write your content in your default language.

Publish or save the draft.

  1. Add Translation:

After saving the default language page, you will see language options in the Polylang meta box or language switcher section.

Click the “+” icon next to the language you want to translate the page into.

This will create a new page or post where you can enter the translation.

Translate the content into the desired language and publish it.

Polylang will automatically link this translated page to the original page.


Step 5: Translate Menus

 

  1. Go to “Appearance” > “Menus”.
  2. Create or edit a menu for the default language.
  3. After saving the menu, switch the language using the language selector at the top of the page.
  4. Create a new menu for each additional language by repeating the steps.
  5. Assign the translated menus to the appropriate theme locations.


Step 6: Translate Widgets

 

  1. Go to “Appearance” > “Widgets”.
  2. Select the widget area where you want to add or translate widgets.
  3. Add widgets as usual.
  4. Configure widget visibility:

Use the language settings in the widget options to display the widget only for specific languages.

This can be done by clicking the “Languages” option in the widget settings.


Step 7: Translate Custom Post Types, Taxonomies, and Options

 

Custom Post Types:

Ensure that your custom post types are set to be translatable under “Languages” > “Settings” > “Custom Post Types and Taxonomies”.

Follow the same process as translating pages and posts.

Taxonomies (Categories, Tags, etc.):

Go to “Posts” > “Categories” or “Tags”.

Translate them by clicking on the “+” icon next to the language you want to translate them into.


Theme Options:

Some themes or plugins have options that can be translated directly in the theme options panel.

If your theme or plugin is compatible with Polylang, you will see language flags next to each option that can be translated.


Step 8: Set Up Language Switcher

 

1.Add a Language Switcher to the Menu:

Go to “Appearance” > “Menus”.

Add the Polylang Language Switcher to your desired menu location.

Customize how the switcher appears (e.g., show flags, language names, etc.).

2.Add a Language Switcher as a Widget:

Go to “Appearance” > “Widgets”.

Drag and drop the Polylang Language Switcher widget into your desired widget area.

Configure its display settings.


Step 9: Verify Translations

 

  1. Preview your site in different languages by using the language switcher.
  2. Check that all content (pages, posts, menus, widgets, etc.) displays correctly in each language.
  3. Test navigation to ensure that users can switch between languages smoothly.



Use Polylang’s String Translation

Step1:

1.Go to “Languages” > “String translations in your WordPress dashboard.

2.On the String Translations page, you will see a list of strings (text elements) used in your theme and plugins.

3.Find Theme-Related Strings:

You might need to search through this list to locate strings related to your theme.

Use the search filter to quickly find the specific strings.

4.Translate the Strings:

For each string you want to translate, click on the field corresponding to the different languages and enter the translated text.

For example, if you have a theme option in English and you want to translate it to another language, you would enter the translation in the appropriate language field.


Step 2: Save Translations

After entering all the translations, make sure to Save the changes.


Step 3: Verify Translations

Preview your site in different languages using the language switcher to ensure that the translations are correctly displayed.

By following these steps, you can successfully translate the theme options in WordPress using Polylang’s String Translation feature.

Tips

You may want to know …

  • SEO Configuration: Polylang works well with popular SEO plugins like Yoast SEO. Make sure to configure the SEO settings for each language.
  • Consistency: Ensure that your translations are consistent across your site to provide a seamless user experience.
  • By following these steps, you can effectively translate your WordPress site using Polylang and manage a multilingual site.

For better and more comprehensive learning, visit the Polylang documentation website.

]]>
https://xtratheme.com/docs/how-to/how-to-translate-pages-and-key-options-using-polylang-a-step-by-step-guide/feed/ 0
Theme Translation & Multilingual https://xtratheme.com/docs/how-to/theme-translation-multilingual/ https://xtratheme.com/docs/how-to/theme-translation-multilingual/#respond Sat, 15 Jun 2024 11:39:58 +0000 https://xtratheme.com/docs/?p=3133

Method 1: Loco Translate (Free)

Step 1

Loco Translate plugin provides in-browser editing of WordPress translation files and integration with automatic translation services.

  1. You can download and install Loco Translate plugin from here
  2. Check out Loco Translate documentation from here

Method 2: PolyLang Translate (Free)

Step 1

With Polylang fully integrated to WordPress and using only its built-in core features (taxonomies), keep steady performances on your site and create a multilingual site featuring from just one extra language to 10 or more depending on your needs. There is no limit in the number of languages added and WordPress’ language packs are automatically downloaded when ready.

  1. You can download and install PolyLang Translate plugin from here
  2. Check out PolyLang Translate documentation from here

Method 3: WPML Translate (Premium)

Step 1

WPML is a plugin for WordPress. Simply put, plugins extend the functionality of the basic WordPress CMS. In our case, WPML makes WordPress run multilingual. WPML lets authors write content in different languages and translate content. It also includes advanced features for translation management and an interface for professional content translation. Using WPML requires no technical or programming skills. Site admins can install it and turn their site multilingual, without any coding. WPML includes a complete API, for integrating with other plugins and translation systems. This way, developers can easily use WPML and turn their products into multilingual.

  1. You can download and install WPML Translate plugin from here
  2. Check out WPML Translate documentation from here

Method 4: Poedit Software

Step 1

Poedit is a shareware and cross-platform gettext catalog editor to aid in the process of language localisation. According to WordPress developer Thord Hedengren, Poedit is “one of the most popular programs” for editing portable language files.

  1. You can download and install Poedit application from here
  2. Check out Poedit documentation from here
]]>
https://xtratheme.com/docs/how-to/theme-translation-multilingual/feed/ 0