{"id":9138,"date":"2018-04-13T15:20:20","date_gmt":"2018-04-13T15:20:20","guid":{"rendered":"http:\/\/themenectar.com\/docs\/salient\/?page_id=9138"},"modified":"2021-01-16T13:46:40","modified_gmt":"2021-01-16T13:46:40","slug":"translations","status":"publish","type":"page","link":"https:\/\/themenectar.com\/docs\/salient\/translations\/","title":{"rendered":"Translations"},"content":{"rendered":"[vc_row type=”in_container” full_screen_row_position=”middle” column_margin=”default” column_direction=”default” column_direction_tablet=”default” column_direction_phone=”default” scene_position=”center” text_color=”dark” text_align=”left” row_border_radius=”none” row_border_radius_applies=”bg” overlay_strength=”0.3″ gradient_direction=”left_to_right” shape_divider_position=”bottom” bg_image_animation=”none”][vc_column column_padding=”no-extra-padding” column_padding_tablet=”inherit” column_padding_phone=”inherit” column_padding_position=”all” background_color_opacity=”1″ background_hover_color_opacity=”1″ column_shadow=”none” column_border_radius=”none” column_link_target=”_self” gradient_direction=”left_to_right” overlay_strength=”0.3″ width=”1\/1″ tablet_width_inherit=”default” tablet_text_alignment=”default” phone_text_alignment=”default” column_border_width=”none” column_border_style=”solid” bg_image_animation=”none”][page_submenu alignment=”left” sticky=”true” bg_color=”#075aff” link_color=”#ffffff”][page_link link_url=”#basics” title=”Basics” id=”1589575461603-8″ tab_id=”1589575461605-10″][vc_column_text][\/vc_column_text][\/page_link][page_link link_url=”#translating” title=”Translation Examples” id=”1589575461794-0″ tab_id=”1589575461795-1″][vc_column_text][\/vc_column_text][\/page_link][page_link link_url=”#tools” title=”Recommended Tools” id=”1589575461891-9″ tab_id=”1589575461892-1″][vc_column_text][\/vc_column_text][\/page_link][\/page_submenu][\/vc_column][\/vc_row][vc_row type=”in_container” full_screen_row_position=”middle” column_margin=”default” column_direction=”default” column_direction_tablet=”default” column_direction_phone=”default” scene_position=”center” top_padding=”70″ text_color=”dark” text_align=”left” row_border_radius=”none” row_border_radius_applies=”bg” id=”basics” overlay_strength=”0.3″ gradient_direction=”left_to_right” shape_divider_position=”bottom” bg_image_animation=”none” shape_type=””][vc_column column_padding=”no-extra-padding” column_padding_tablet=”inherit” column_padding_phone=”inherit” column_padding_position=”all” background_color_opacity=”1″ background_hover_color_opacity=”1″ column_shadow=”none” column_border_radius=”none” column_link_target=”_self” gradient_direction=”left_to_right” overlay_strength=”0.3″ width=”1\/1″ tablet_width_inherit=”default” tablet_text_alignment=”default” phone_text_alignment=”default” column_border_width=”none” column_border_style=”solid” bg_image_animation=”none”][vc_column_text]\n

Basics<\/h2>\n[\/vc_column_text][\/vc_column][\/vc_row][vc_row type=”full_width_background” full_screen_row_position=”middle” column_margin=”60px” column_direction=”default” column_direction_tablet=”default” column_direction_phone=”default” scene_position=”center” text_color=”dark” text_align=”left” row_border_radius=”none” row_border_radius_applies=”bg” overlay_strength=”0.3″ gradient_direction=”left_to_right” shape_divider_position=”bottom” bg_image_animation=”none” shape_type=””][vc_column column_padding=”no-extra-padding” column_padding_tablet=”inherit” column_padding_phone=”inherit” column_padding_position=”all” background_color_opacity=”1″ background_hover_color_opacity=”1″ column_shadow=”none” column_border_radius=”none” column_link_target=”_self” gradient_direction=”left_to_right” overlay_strength=”0.3″ width=”2\/3″ tablet_width_inherit=”default” tablet_text_alignment=”default” phone_text_alignment=”default” column_border_width=”none” column_border_style=”solid” bg_image_animation=”none”][vc_column_text]Whether you’re trying to simply alter the wording of a couple of text strings, or you need to provide multiple language sets for your user, translating with .po files is what you’re looking for. A .po file will allow you to specify alternative text to be used in place of existing text in which the theme or plugin is outputting.<\/p>\n

The section covers the steps in creating a .po file that contains the set of translated strings. If you’re already familiar with creating a .po file, skip to the Recommended Tools<\/a> section.[\/vc_column_text][vc_column_text css=”.vc_custom_1589572022049{margin-top: 40px !important;}”]\n

Setting The WordPress installation language<\/h4>\n

Head over to the WordPress admin panel\u00a0>\u00a0Settings > General<\/strong>\u00a0tab\u00a0and ensure that your desired language is selected from the “Site Language” dropdown. This step is essential for ensuring the correct language file you’ll be creating gets called on your site.[\/vc_column_text][\/vc_column][vc_column column_padding=”padding-2-percent” column_padding_tablet=”inherit” column_padding_phone=”inherit” column_padding_position=”left” background_color_opacity=”1″ background_hover_color_opacity=”1″ column_shadow=”none” column_border_radius=”none” column_link_target=”_self” gradient_direction=”left_to_right” overlay_strength=”0.3″ width=”1\/3″ tablet_width_inherit=”default” tablet_text_alignment=”default” phone_text_alignment=”default” column_border_width=”none” column_border_style=”solid” bg_image_animation=”none”][image_with_animation image_url=”9143″ animation=”Fade In” hover_animation=”zoom-crop” alignment=”” img_link_large=”yes” border_radius=”none” box_shadow=”none” image_loading=”default” max_width=”100%” max_width_mobile=”default”][\/vc_column][\/vc_row][vc_row type=”full_width_background” full_screen_row_position=”middle” column_margin=”default” column_direction=”default” column_direction_tablet=”default” column_direction_phone=”default” scene_position=”center” top_padding=”50″ text_color=”dark” text_align=”left” row_border_radius=”none” row_border_radius_applies=”bg” overlay_strength=”0.3″ gradient_direction=”left_to_right” shape_divider_position=”bottom” bg_image_animation=”none” shape_type=””][vc_column column_padding=”no-extra-padding” column_padding_tablet=”inherit” column_padding_phone=”inherit” column_padding_position=”all” background_color_opacity=”1″ background_hover_color_opacity=”1″ column_shadow=”none” column_border_radius=”none” column_link_target=”_self” gradient_direction=”left_to_right” overlay_strength=”0.3″ width=”1\/1″ tablet_width_inherit=”default” tablet_text_alignment=”default” phone_text_alignment=”default” column_border_width=”none” column_border_style=”solid” bg_image_animation=”none”][vc_row_inner column_margin=”default” column_direction=”default” column_direction_tablet=”default” column_direction_phone=”default” top_padding=”20″ text_align=”left”][vc_column_inner column_padding=”no-extra-padding” column_padding_tablet=”inherit” column_padding_phone=”inherit” column_padding_position=”all” background_color_opacity=”1″ background_hover_color_opacity=”1″ column_shadow=”none” column_border_radius=”none” column_link_target=”_self” gradient_direction=”left_to_right” overlay_strength=”0.3″ width=”1\/1″ tablet_width_inherit=”default” column_border_width=”none” column_border_style=”solid” bg_image_animation=”none”][vc_column_text]\n

.pot Files<\/h4>\n

Salient includes .pot files for the theme and for each of the included Salient plugins.<\/p>\n

A .pot file is the main template file that can be used to generate new po\/mo files. It has all the translation strings left empty.\u00a0<\/strong>When you use one of the recommended tools for translating listed below, you can use this file to automatically create the .po\/.mo files in your chosen locale.<\/p>\n

The location of the .pot files is listed below:[\/vc_column_text]

\n