{"id":6973,"date":"2011-03-09T12:51:31","date_gmt":"2011-03-09T12:51:31","guid":{"rendered":"http:\/\/wpml.org\/?p=6973"},"modified":"2011-03-09T12:57:16","modified_gmt":"2011-03-09T12:57:16","slug":"multilingual-nextgen-gallery","status":"publish","type":"post","link":"https:\/\/wpml.org\/es\/announcements\/2011\/03\/multilingual-nextgen-gallery\/","title":{"rendered":"Multilingual NextGen Gallery"},"content":{"rendered":"<p><strong>We&#8217;re working with NextGen Gallery author on making NextGen fully translatable. This is a first test release of the updated NGG plugin.<\/strong><\/p>\n<p>For those who&#8217;re not using NextGen Gallery, know that this is a powerful gallery management plugin for WordPress. It allows managing images\u00a0separately\u00a0from WordPress content and inserting galleries and albums anywhere in the site.<\/p>\n<p>NGG already included facilities for translating strings (like image description, alt, etc.). The problem is, there&#8217;s no way you can tell what you&#8217;re translating. If the gallery includes 5 images, it&#8217;s kinda OK, but for larger galleries, it makes managing translations impossible.<\/p>\n<h2>Knowing What You&#8217;re Translating<\/h2>\n<p>We&#8217;ve enhanced NGG&#8217;s <em>i18n<\/em> function to include names. These names allow to identify what&#8217;s being translated.<\/p>\n<p>For example, you&#8217;ll see this:<\/p>\n<figure id=\"attachment_6975\" aria-describedby=\"caption-attachment-6975\" style=\"width: 300px\" class=\"wp-caption alignnone\"><a href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/gallery-translation.png\"><img decoding=\"async\" class=\"size-medium wp-image-6975\" title=\"gallery-translation\" src=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/gallery-translation-300x105.png\" alt=\"\" width=\"300\" height=\"105\" srcset=\"https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/gallery-translation-300x105.png 300w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/gallery-translation-150x52.png 150w, https:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/gallery-translation.png 556w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><figcaption id=\"caption-attachment-6975\" class=\"wp-caption-text\">Translating texts in NextGen Gallery<\/figcaption><\/figure>\n<p>Each string for translation has a name. That name describes what you&#8217;re translating.<\/p>\n<p>So, when you see <em>pic_2_alttext<\/em>, you know that you&#8217;re translating the ALT tag for picture #2.<\/p>\n<p>Additionally, all NextGen texts are grouped under the context <em>ngg_plugin<\/em>. You can translate them separately from other Admin texts.<\/p>\n<h2>Development Version<\/h2>\n<p>These changes are fresh out of the oven. We&#8217;ve tested them and it all looks good, but we&#8217;re no NextGen experts.<\/p>\n<p>This is the updated NGG code:<\/p>\n<p><a style=\"font-size: 14px;\" class=\"button download-button\" href=\"http:\/\/wpml.org\/wp-content\/uploads\/2011\/03\/nextgen-gallery.zip\"><img decoding=\"async\" style=\"margin-bottom: -5px;\" src=\"http:\/\/d2salfytceyqoe.cloudfront.net\/wp-content\/uploads\/2008\/10\/RO-Mx1-32_arrow-drive-download.png\" alt=\"\" title=\"\" width=\"32\" height=\"32\" class=\"alignnone size-full wp-image-6069\"> nextgen-gallery.zip<\/a><\/p>\n<p>To use it, <strong>you&#8217;ll need the development version of WPML<\/strong>. It&#8217;s not quite ready for production sites, but fine for testing purposes. It&#8217;s available only for WPML clients.<\/p>\n<p>If you&#8217;re a registered WPML client, <strong>leave a message here and we&#8217;ll email it to you<\/strong>.<\/p>\n<h2>How to Test<\/h2>\n<p>All you need to do is save the NGG gallery. WPML then scans the images and registers the strings for translation. Then, head over to WPML-&gt;String Translation and filter by context <em>ngg_gallery<\/em>.<\/p>\n<p>Add the gallery to a translated page and you should see all the image texts translated.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We&#8217;re working with NextGen Gallery author on making NextGen fully translatable. This is a first test release of the updated NGG plugin. For those who&#8217;re not using NextGen Gallery, know that this is a powerful gallery management plugin for WordPress. It allows managing images\u00a0separately\u00a0from WordPress content and inserting galleries and albums anywhere in the site. [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"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":[3],"tags":[],"class_list":["post-6973","post","type-post","status-publish","format-standard","hentry","category-announcements"],"_links":{"self":[{"href":"https:\/\/wpml.org\/es\/wp-json\/wp\/v2\/posts\/6973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wpml.org\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wpml.org\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wpml.org\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wpml.org\/es\/wp-json\/wp\/v2\/comments?post=6973"}],"version-history":[{"count":11,"href":"https:\/\/wpml.org\/es\/wp-json\/wp\/v2\/posts\/6973\/revisions"}],"predecessor-version":[{"id":6987,"href":"https:\/\/wpml.org\/es\/wp-json\/wp\/v2\/posts\/6973\/revisions\/6987"}],"wp:attachment":[{"href":"https:\/\/wpml.org\/es\/wp-json\/wp\/v2\/media?parent=6973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wpml.org\/es\/wp-json\/wp\/v2\/categories?post=6973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wpml.org\/es\/wp-json\/wp\/v2\/tags?post=6973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}