{"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
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 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 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] The text domain used during translation will differ depending on where the string is located i.e. in the theme itself, or in one of the plugins. The text domain for the theme is “salient”<\/strong>. The text domain for each of the plugins will match the name of plugin e.g. the Salient Portfolio plugin text domain is “salient-portfolio”<\/strong>, and the text domain for the Salient Core plugin is “salient-core”.<\/strong>[\/vc_column_text][\/vc_column_inner][\/vc_row_inner][\/vc_column][\/vc_row][vc_row type=”full_width_content” 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”][vc_column_text css=”.vc_custom_1523732970845{margin-top: 80px !important;border-top-width: 1px !important;padding-bottom: 50px !important;border-top-color: #d6d6d6 !important;border-top-style: solid !important;border-radius: 1px !important;}”][\/vc_column_text][\/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=”30″ text_color=”dark” text_align=”left” row_border_radius=”none” row_border_radius_applies=”bg” id=”translating” 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 When you only need to alter a few areas of text, using the plugin “Say What?<\/a>” will prove to be the easiest.[\/vc_column_text][vc_row_inner column_margin=”60px” column_direction=”default” column_direction_tablet=”default” column_direction_phone=”default” top_padding=”40″ 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\/2″ tablet_width_inherit=”default” column_border_width=”none” column_border_style=”solid” bg_image_animation=”none”][nectar_highlighted_text color_type=”regular” highlight_color=”#ff0044″ text_color=”#000000″ style=”regular_underline” underline_thickness=”2px”]Translating an item from the theme<\/em>.\u00a0 <\/strong><\/p>\n After activating the “Say What?” plugin,[\/nectar_highlighted_text]Setting The WordPress installation language<\/h4>\n
.pot Files<\/h4>\n
\n
Text Domains<\/h4>\n
Translation Examples<\/h2>\n[\/vc_column_text][vc_column_text]\n
Translating a few items (With Say What)<\/h4>\n
\n