{"id":47,"date":"2007-12-20T11:44:22","date_gmt":"2007-12-20T19:44:22","guid":{"rendered":"http:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/"},"modified":"2017-03-08T14:50:16","modified_gmt":"2017-03-08T22:50:16","slug":"second-thoughts-on-dynamic-content","status":"publish","type":"post","link":"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/","title":{"rendered":"Second thoughts on dynamic content"},"content":{"rendered":"<p>I was looking at <a href=\"http:\/\/people.mozilla.com\/~madhava\/files\/amo\/2007-10-05\/options\/themes_categorymenu.png\">one of the <abbr title=\"addons.mozilla.org\">AMO<\/abbr> v3.2 mockups<\/a> today.  There are strings like &#8220;See All Interface Tweaks Add-ons&#8221; that we&#8217;ve avoided up till now, but this isn&#8217;t the first time they&#8217;ve been proposed.  The problem we&#8217;re having is that a string like that is from two different sources &#8211; static and dynamic data.  &#8220;Interface Tweaks&#8221; is the name of one of our categories so it&#8217;s stored in the database, and the rest of the string is static, so it&#8217;s in a .po.  The static string would look something like:<\/p>\n<p><code>See All %s Add-ons<\/code><\/p>\n<p>and the dynamic string would look like:<\/p>\n<p><code>Interface Tweaks<\/code><\/p>\n<p>In English, these combine and all is well, but if the second value affects the structure of the first in a dynamic way, we can&#8217;t support the phrase on AMO.<\/p>\n<p>When I wrote the original code, I think I had two things in mind:<\/p>\n<ul>\n<li>Categories would be changing more often<\/li>\n<li>Localizers wouldn&#8217;t have direct access to SVN<\/li>\n<\/ul>\n<p>Categories have changed a bit in the past (and they&#8217;re in mid change right now, actually), but other than the convenience of a near-instant change on the site, it doesn&#8217;t seem that beneficial to change them via the web.  The second point is a big one though &#8211; by giving localizers direct access to SVN, they can update strings whenever they need to without our meddling and getting in the way.  That&#8217;s a big time saver for everyone.<\/p>\n<p>So, now I&#8217;m reconsidering the separation of some of the interface translations (add-on types, applications, and categories) from the rest of the static content.  Looking at where we currently stand, it seems like it&#8217;s more of a hassle to describe the separation and what it does than it would be to just drop everything in the .po file.  Plus we&#8217;d get the benefit of strings like &#8220;See All Interface Tweaks Add-ons.&#8221;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I was looking at one of the AMO v3.2 mockups today. There are strings like &#8220;See All Interface Tweaks Add-ons&#8221; that we&#8217;ve avoided up till now, but this isn&#8217;t the first time they&#8217;ve been proposed. The problem we&#8217;re having is &hellip; <a class=\"go\" href=\"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/\">Continue reading<\/a><\/p>\n","protected":false},"author":27,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"coauthors":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Second thoughts on dynamic content - Mozilla Web Development<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Wil Clouser\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/\",\"url\":\"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/\",\"name\":\"Second thoughts on dynamic content - Mozilla Web Development\",\"isPartOf\":{\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/#website\"},\"datePublished\":\"2007-12-20T19:44:22+00:00\",\"dateModified\":\"2017-03-08T22:50:16+00:00\",\"author\":{\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/ed34384989d96d205f4bac8a3de62631\"},\"breadcrumb\":{\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/blog.mozilla.org\/webdev\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Second thoughts on dynamic content\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/#website\",\"url\":\"https:\/\/blog.mozilla.org\/webdev\/\",\"name\":\"Mozilla Web Development\",\"description\":\"For make benefit of glorious tubes\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/blog.mozilla.org\/webdev\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/ed34384989d96d205f4bac8a3de62631\",\"name\":\"Wil Clouser\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/image\/4a6868ba94204851aa79dddbabbee688\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/656fad0dd7cc21dfc11e9b9e953598fd?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/656fad0dd7cc21dfc11e9b9e953598fd?s=96&d=mm&r=g\",\"caption\":\"Wil Clouser\"},\"description\":\"Wil solves problems on addons.mozilla.org. He's interested in security, scalability, and localization.\",\"sameAs\":[\"http:\/\/micropipes.com\/blog\/\"],\"url\":\"https:\/\/blog.mozilla.org\/webdev\/author\/wclousermozillacom\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Second thoughts on dynamic content - Mozilla Web Development","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/","twitter_misc":{"Written by":"Wil Clouser","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/","url":"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/","name":"Second thoughts on dynamic content - Mozilla Web Development","isPartOf":{"@id":"https:\/\/blog.mozilla.org\/webdev\/#website"},"datePublished":"2007-12-20T19:44:22+00:00","dateModified":"2017-03-08T22:50:16+00:00","author":{"@id":"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/ed34384989d96d205f4bac8a3de62631"},"breadcrumb":{"@id":"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.mozilla.org\/webdev\/2007\/12\/20\/second-thoughts-on-dynamic-content\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.mozilla.org\/webdev\/"},{"@type":"ListItem","position":2,"name":"Second thoughts on dynamic content"}]},{"@type":"WebSite","@id":"https:\/\/blog.mozilla.org\/webdev\/#website","url":"https:\/\/blog.mozilla.org\/webdev\/","name":"Mozilla Web Development","description":"For make benefit of glorious tubes","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.mozilla.org\/webdev\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/ed34384989d96d205f4bac8a3de62631","name":"Wil Clouser","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/blog.mozilla.org\/webdev\/#\/schema\/person\/image\/4a6868ba94204851aa79dddbabbee688","url":"https:\/\/secure.gravatar.com\/avatar\/656fad0dd7cc21dfc11e9b9e953598fd?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/656fad0dd7cc21dfc11e9b9e953598fd?s=96&d=mm&r=g","caption":"Wil Clouser"},"description":"Wil solves problems on addons.mozilla.org. He's interested in security, scalability, and localization.","sameAs":["http:\/\/micropipes.com\/blog\/"],"url":"https:\/\/blog.mozilla.org\/webdev\/author\/wclousermozillacom\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/posts\/47"}],"collection":[{"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/users\/27"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/comments?post=47"}],"version-history":[{"count":0,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/media?parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/categories?post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/tags?post=47"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/blog.mozilla.org\/webdev\/wp-json\/wp\/v2\/coauthors?post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}