{"id":920249,"date":"2016-06-20T15:57:06","date_gmt":"2016-06-20T15:57:06","guid":{"rendered":"https:\/\/wpml.org\/?p=920249"},"modified":"2016-08-26T12:10:30","modified_gmt":"2016-08-26T12:10:30","slug":"translate-photo-gallery-plugin-using-wpml","status":"publish","type":"post","link":"https:\/\/wpml.org\/th\/compatibility\/2016\/06\/translate-photo-gallery-plugin-using-wpml\/","title":{"rendered":"Create Multilingual Galleries Using Photo Gallery and WPML"},"content":{"rendered":"<h2><img decoding=\"async\" class=\"aligncenter wp-image-924830 size-full\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Photo-Gallery.png\" alt=\"Photo Gallery\" width=\"680\" height=\"205\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Photo-Gallery.png 680w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Photo-Gallery-150x45.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Photo-Gallery-300x90.png 300w\" sizes=\"(max-width: 680px) 100vw, 680px\" \/><\/h2>\n<h2>Introduction<\/h2>\n<p>Photo Gallery is one of the great plugins to create your image galleries in WordPress. Its integration with WPML will allow you to translate your galleries.<\/p>\n<h2>What you will need<\/h2>\n<ul>\n<li><a href=\"https:\/\/wordpress.org\/plugins\/photo-gallery\/\">Photo Gallery<\/a> plugin (version 2.1.31 or above).<\/li>\n<li>A recent version of <a href=\"https:\/\/wpml.org\/purchase\/\">WPML<\/a> (version 3.3.8 or above) and the String Translation add-on.<\/li>\n<li>WordPress (version 4.5.2 or above).<\/li>\n<\/ul>\n<h2>Essential resources<\/h2>\n<ul>\n<li>WPML\u2019s <a href=\"https:\/\/wpml.org\/documentation\/getting-started-guide\/\">Getting Started Guide<\/a> will help you set up WPML in a few minutes.<\/li>\n<li>The <a href=\"https:\/\/web-dorado.com\/wordpress-gallery\/installing.html\">Photo Gallery step-by-step guide<\/a> provides detailed instructions on how to create, customize and insert galleries into pages.<\/li>\n<\/ul>\n<h2>Getting started<\/h2>\n<ul>\n<li>Install and activate the WPML plugin.<\/li>\n<li>Install and activate the Photo Gallery plugin.<\/li>\n<\/ul>\n<h2>Translation<\/h2>\n<p>We will be creating two galleries: one will be inserted in our default language gallery page and the other into our secondary language gallery page.<\/p>\n<h2>Create the image gallery (for the default and secondary languages)<\/h2>\n<div class=\"embed-responsive embed-responsive-16by9\"><iframe width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/VPwP3Ng8czg?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/div>\n<ol>\n<li>On your WordPress dashboard, navigate to \u201cPhoto Gallery\u201d &gt; \u201cAdd Galleries\/Images\u201d and click on the \u201cAdd new\u201d button.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-new-gallery.png\"><img decoding=\"async\" class=\"aligncenter wp-image-920414\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-new-gallery-300x108.png\" alt=\"Add new gallery\" width=\"500\" height=\"180\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-new-gallery-300x108.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-new-gallery-150x54.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-new-gallery-768x277.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-new-gallery-1024x369.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-new-gallery.png 1335w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<ol start=\"2\">\n<li>Fill in the \u201cName\u201d field and the \u201cDescription\u201d field (in case you want to add a description to your gallery).<\/li>\n<li>Click on the \u201cAdd images\u201d button.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Gallery-name-ana-description.png\"><img decoding=\"async\" class=\"aligncenter wp-image-920365\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Gallery-name-ana-description-300x125.png\" alt=\"Gallery name ana description\" width=\"500\" height=\"209\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Gallery-name-ana-description-300x125.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Gallery-name-ana-description-150x63.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Gallery-name-ana-description-768x321.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Gallery-name-ana-description-1024x428.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Gallery-name-ana-description.png 1334w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<ol start=\"4\">\n<li>Click on the \u201cUpload files\u201d button and choose the images that you want to add to your gallery.<\/li>\n<li>Select the images that you want to add to your gallery or click on the \u201cSelect all\u201d button.<\/li>\n<li>Click on the \u201cAdd selected images to gallery\u201d button; add your images titles, description and tags.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-selected-images-to-gallery.png\"><img decoding=\"async\" class=\"aligncenter wp-image-920378\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-selected-images-to-gallery-300x188.png\" alt=\"Add selected images to gallery\" width=\"500\" height=\"314\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-selected-images-to-gallery-300x188.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-selected-images-to-gallery-150x94.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-selected-images-to-gallery.png 715w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<ol start=\"7\">\n<li>Click on the \u201cSave\u201d button. With that, we have created the image gallery that will be inserted into our default language (in this tutorial it is \u201cEnglish\u201d) gallery page.<\/li>\n<li>Repeat the same process to create the secondary language gallery (in our case, it is French). Remember to add your translated textual content when creating the gallery.<\/li>\n<\/ol>\n<h2>Create and translate the gallery page<\/h2>\n<div class=\"embed-responsive embed-responsive-16by9\"><iframe width=\"700\" height=\"394\" src=\"https:\/\/www.youtube.com\/embed\/2v37thlGvIA?feature=oembed\" frameborder=\"0\" allowfullscreen><\/iframe><\/div>\n<ol>\n<ol>\n<li>Navigate to \u201cPages\u201d &gt; \u201cAdd New\u201d.<\/li>\n<li>Add the page title (Buildings gallery).<\/li>\n<li>Click on the \u201cInsert photo gallery\u201d icon <img decoding=\"async\" class=\"alignnone size-full wp-image-920343\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-gallery-icon.png\" alt=\"Insert gallery icon\" width=\"30\" height=\"23\" \/>\u00a0.<\/li>\n<\/ol>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-default-language-gallery-page.png\"><img decoding=\"async\" class=\"aligncenter wp-image-920400\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-default-language-gallery-page-300x135.png\" alt=\"Add default language gallery page\" width=\"500\" height=\"226\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-default-language-gallery-page-300x135.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-default-language-gallery-page-150x68.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-default-language-gallery-page-768x347.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-default-language-gallery-page-1024x462.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-default-language-gallery-page.png 1331w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<ol>\n<ol start=\"4\">\n<li>From the gallery drop down menu, select the first gallery that we have created (in our case, it is \u201cBuildings gallery\u201d) and click on the \u201cInsert\u201d button.<\/li>\n<\/ol>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-default-language-gallery.png\"><img decoding=\"async\" class=\"aligncenter wp-image-920427\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-default-language-gallery-300x160.png\" alt=\"Insert default language gallery\" width=\"500\" height=\"266\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-default-language-gallery-300x160.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-default-language-gallery-150x80.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-default-language-gallery-768x409.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-default-language-gallery.png 985w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<ol>\n<ol>\n<ol start=\"5\">\n<li>Click on the \u201cPublish\u201d button.<\/li>\n<li>Click on the <img decoding=\"async\" class=\"alignnone size-full wp-image-919955\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2013\/07\/Plus-icon.png\" alt=\"Plus icon\" width=\"16\" height=\"16\" \/>\u00a0icon, found in the language meta-box on the right, to translate the gallery page.<\/li>\n<\/ol>\n<\/ol>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-translation-to-the-gallery-page.png\"><img decoding=\"async\" class=\"aligncenter wp-image-920445 size-full\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-translation-to-the-gallery-page.png\" alt=\"Add translation to the gallery page\" width=\"247\" height=\"210\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-translation-to-the-gallery-page.png 247w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-translation-to-the-gallery-page-150x128.png 150w\" sizes=\"(max-width: 247px) 100vw, 247px\" \/><\/a><\/p>\n<ol start=\"7\">\n<li>Click on the \u201ccopy content from English\u201d button and edit the loaded text with your translation in the title and the body.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-your-translated-text-to-the-gallery-page.png\"><img decoding=\"async\" class=\"aligncenter wp-image-920456\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-your-translated-text-to-the-gallery-page-300x135.png\" alt=\"Add your translated text to the gallery page\" width=\"500\" height=\"224\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-your-translated-text-to-the-gallery-page-300x135.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-your-translated-text-to-the-gallery-page-150x67.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-your-translated-text-to-the-gallery-page-768x345.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-your-translated-text-to-the-gallery-page-1024x460.png 1024w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Add-your-translated-text-to-the-gallery-page.png 1328w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<ol start=\"8\">\n<li>Delete the gallery shortcode and click on the \u201cInsert photo gallery\u201d icon <img decoding=\"async\" class=\"alignnone size-full wp-image-920343\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-gallery-icon.png\" alt=\"Insert gallery icon\" width=\"30\" height=\"23\" \/>\u00a0. Choose the gallery that we created for the secondary language (FR-Buildings).<\/li>\n<\/ol>\n<p><a href=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-your-secondary-language-gallery.png\"><img decoding=\"async\" class=\"aligncenter wp-image-920472\" src=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-your-secondary-language-gallery-300x159.png\" alt=\"Insert your secondary language gallery\" width=\"500\" height=\"264\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-your-secondary-language-gallery-300x159.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-your-secondary-language-gallery-150x79.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-your-secondary-language-gallery-768x406.png 768w, https:\/\/wpml.org\/wp-content\/uploads\/2016\/06\/Insert-your-secondary-language-gallery.png 986w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<ol start=\"9\">\n<li>Click on the publish button.<\/li>\n<\/ol>\n<p>Now, we have loaded each instance of the gallery that we created into the right page and will display the correct gallery on each of them.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Photo Gallery is one of the great plugins  [&hellip;]<\/p>\n","protected":false},"author":76577,"featured_media":924842,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"ep_exclude_from_search":false,"footnotes":""},"categories":[1371,8],"tags":[],"class_list":["post-920249","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-compatibility","category-tutorials"],"_links":{"self":[{"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/posts\/920249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/users\/76577"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/comments?post=920249"}],"version-history":[{"count":6,"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/posts\/920249\/revisions"}],"predecessor-version":[{"id":1024084,"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/posts\/920249\/revisions\/1024084"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/media\/924842"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/media?parent=920249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/categories?post=920249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/th\/wp-json\/wp\/v2\/tags?post=920249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}