<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3"
    xmlns="http://purl.org/atom/ns#"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xml:lang="en">

    <title>shortcuts</title>
    <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/index/" />
    <tagline>A collection of notes, ideas and thoughts from an American in The Netherlands</tagline>
    <modified>2011-12-28T09:52:16+00:00</modified>
    <generator url="http://www.pmachine.com/" version="1.7.1">ExpressionEngine</generator>
    <copyright>Copyright (c) 2011, admin</copyright>


    <entry>
      <title>...snnxxxks! Huh? What month is this?</title>
      <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/...snnxxxks_huh_what_month_is_this/" /> 
      <id>tag:shortcuts.nl,2011:index.php/weblog/index/1.177</id>
      <issued>2011-12-28T09:49:14+00:00</issued>
      <modified>2011-12-28T09:52:16+00:00</modified>
      <summary>Yep &#45; I&#8217;ve been busy, hence no writing.</summary>
      <created>2011-12-28T09:49:14+00:00</created>
		<author>
		  <name>admin</name>
		  <email>jtrascap@mac.com</email>
		  <url>http://www.shortcuts.nl</url>                  		</author>
      <dc:subject>Idle Chatter</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>…not even sure this counts.
</p>]]></content>
    </entry>

    <entry>
      <title>Who wants to be a millionaire?</title>
      <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/who_wants_to_be_a_millionaire/" /> 
      <id>tag:shortcuts.nl,2011:index.php/weblog/index/1.175</id>
      <issued>2011-03-02T18:00:08+00:00</issued>
      <modified>2011-03-03T11:03:10+00:00</modified>
      <summary>The most predictable way to make money on the stock market? Buy Apple stock the days before the event&#8230;</summary>
      <created>2011-03-02T18:00:08+00:00</created>
		<author>
		  <name>admin</name>
		  <email>jtrascap@mac.com</email>
		  <url>http://www.shortcuts.nl</url>                  		</author>
      <dc:subject>Gadgetry, Idle Chatter, Malarkey</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>It&#8217;s tradition. </p>

<p>1) The press wildly inflates speculation on the new Apple (insert your favorite device here) - eg, iPad with stereo speakers, card reader, dueling cameras, supre-hires screen&#8230;all kinds of stuff</p>

<p>b) Then the speculators and naysayers come out, and also odd bits of personal bad news - eg, standard ram, no card reader, Steve very sick, Jony Ive possibly leaving Apple. The stock take a significant dip. Larger stock groups buy in.</p>

<p>iii) The products come out, the bad news is debunked, and generally the reception to the (product) is good. The stock jumps back up in a few days. Big groups sell out. </p>

<p><b>Profit!</b><br />
Cynical, repeatable profit. 
</p>]]></content>
    </entry>

    <entry>
      <title>iPad 2 &#45; News around the corner</title>
      <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/ipad_2_-_news_around_the_corner/" /> 
      <id>tag:shortcuts.nl,2011:index.php/weblog/index/1.174</id>
      <issued>2011-01-18T06:52:41+00:00</issued>
      <modified>2011-01-18T08:00:43+00:00</modified>
      <summary>Now that they&#8217;ve dropped the bombshell, I expect Apple to announce the new iPad very, very soon.</summary>
      <created>2011-01-18T06:52:41+00:00</created>
		<author>
		  <name>admin</name>
		  <email>jtrascap@mac.com</email>
		  <url>http://www.shortcuts.nl</url>                  		</author>
      <dc:subject>Gadgetry, Idle Chatter, IT notes</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>Their modus operandi is to take their medicine and then start serving the treacle. </p>

<p>I expect to see an announcement card for and event soon, then hear about earnings successes in this months&#8217; conference call, and then the event where the next iPad is announced. Maybe a thinner, DVD-less MacBook Pro (I just got a current MacBook Pro so it&#8217;s time to reveal a new one, of course). </p>

<p>Boom - boom - boom.</p>

<p>With Cook still working behind the scenes as COO, Ive still designing, Shiller still shilling, Apple continues to fire on all cylinders. 
</p>]]></content>
    </entry>

    <entry>
      <title>Get well soon, Steve</title>
      <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/get_well_soon_steve/" /> 
      <id>tag:shortcuts.nl,2011:index.php/weblog/index/1.173</id>
      <issued>2011-01-18T06:49:48+00:00</issued>
      <modified>2011-01-18T06:51:50+00:00</modified>
      <summary>Take time for yourself and relax. Apple&#8217;s in good hands.</summary>
      <created>2011-01-18T06:49:48+00:00</created>
		<author>
		  <name>admin</name>
		  <email>jtrascap@mac.com</email>
		  <url>http://www.shortcuts.nl</url>                  		</author>
      <dc:subject>Gadgetry, IT notes, Personal</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[]]></content>
    </entry>

    <entry>
      <title>Contract Killer</title>
      <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/contract_killer/" /> 
      <id>tag:shortcuts.nl,2011:index.php/weblog/index/1.176</id>
      <issued>2011-01-10T19:47:09+00:00</issued>
      <modified>2011-12-28T09:43:11+00:00</modified>
      <summary>For the record, I hate &#8220;suit&#45;speak&#8221;. It shouldn&#8217;t cost €500 in legal fees to make a contract for a €2500 site. Happily, there&#8217;s a great starting point for contracts&#8230;</summary>
      <created>2011-01-10T19:47:09+00:00</created>
		<author>
		  <name>admin</name>
		  <email>jtrascap@mac.com</email>
		  <url>http://www.shortcuts.nl</url>                  		</author>
      <dc:subject>IT notes, Malarkey, Personal</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>The benefit of working with an independent web developer is the lack of onerous terms and conditions - it&#8217;s a much closer relationship than you&#8217;ll ever see from a company with more than 10 employees. We&#8217;re small and light on our feet, much like a cockroach after a nuclear war, and without the expensive infrastructure to support, small companies can often get far more work done for significantly less money. </p>

<p>Happily, Andy Clark from Stuff and Nonsense, a UK design site, has taken upon himself to supply us a great starting point: <a href="http://stuffandnonsense.co.uk/blog/about/contract_killer_the_next_hit"><b>his contract killer</b></a>, a great starting point for an easily-read, socially-friendly contract that you (probably) won&#8217;t ever need a lawyer for. Of course, it probably wouldn&#8217;t be bad to run it by a lawyer in your part of the world, just in case&#8230;&nbsp; <img src="http://www.shortcuts.nl/images/smileys/wink.gif" width="19" height="19" alt="wink" style="border:0;" /> 
</p>]]></content>
    </entry>

    <entry>
      <title>What&#8217;s your Facebook Footprint?</title>
      <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/whats_your_facebook_footprint/" /> 
      <id>tag:shortcuts.nl,2010:index.php/weblog/index/1.171</id>
      <issued>2010-11-11T21:51:13+00:00</issued>
      <modified>2010-11-11T23:14:14+00:00</modified>
      <summary>Did you know you can now download every wall post, every response, every comment, every poke, every photo or video you&#8217;ve ever put on Facebook? What&#8217;s your Facebook Footprint?</summary>
      <created>2010-11-11T21:51:13+00:00</created>
		<author>
		  <name>admin</name>
		  <email>jtrascap@mac.com</email>
		  <url>http://www.shortcuts.nl</url>                  		</author>
      <dc:subject>Idle Chatter, IT notes, Personal</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>Now you can back up every misstep, every faux pas, every whoopsie you&#8217;ve ever made in public. </p>

<p>On October 7th, Facebook announced it would begin to let people download all the personal information they&#8217;ve put on Facebook. All you need to do is:
</p><li>Top Menu: <b>Account</b></li>
<li>Choose <b>Account Settings</b></li>
<li>At the bottom of the page is <b>Download your Information</b></li>
<li>Fill in your password and click <b>Continue</b></li>

<p>It will take a bit of time for Facebook to compile it, and once you get a note that it&#8217;s ready you&#8217;ll have to prove it&#8217;s your data, but boom - one nicely organized zip file with all your assets. You prove it&#8217;s your data by identifying friends in photos not in your account, so a hacker would have to know you fairly well to download the file. </p>

<p>Off you go! 
</p>]]></content>
    </entry>

    <entry>
      <title>Everything you need to know about Fast Food</title>
      <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/everything_you_need_to_know_about_fast_food/" /> 
      <id>tag:shortcuts.nl,2010:index.php/weblog/index/1.170</id>
      <issued>2010-08-12T07:05:01+00:00</issued>
      <modified>2010-08-12T12:47:02+00:00</modified>
      <summary>Some uncomfortable notes about our life with fast food.</summary>
      <created>2010-08-12T07:05:01+00:00</created>
		<author>
		  <name>admin</name>
		  <email>jtrascap@mac.com</email>
		  <url>http://www.shortcuts.nl</url>                  Via <table cellspacing="1" cellpadding="10">
  <thead>
    <tr>
      <th scope="col">Source</th>
      <th scope="col">URL</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>Online Schools</td>
      <td>http://www.onlineschools.org</td>
    </tr>
  </tbody>
</table>...		</author>
      <dc:subject>Idle Chatter</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p><a href="http://www.onlineschools.org/blog/everything-fast-food/"><img src="http://www.shortcuts.nl/images/imagebank/previews/fastfood.png" /></a></p>

<p>This is just a bit of an interesting infographic, but as with anything on &#8220;teh interwebs&#8221;, take with some grains of NaCl. For instance, the caloric intake for an average US adult is very likely wrong. A <a href="http://www.reddit.com/r/pics/comments/d07ea/everything_you_need_to_know_about_fast_food/">thread on Reddit</a> has noted that the <a href="http://www.cdc.gov/nchs/data/nhanes/databriefs/calories.pdf">CDC has established</a> an average US adult male consumes &#8220;2475 calories and 1833 calories (per day) for females&#8221;, not 4000-calories per day as in the graphic. There&#8217;s a list of references in the graphic - check them out. </p>

<p>What this does show however is that while there&#8217;s often skewed information on the net, it can lead to good conversation and fact-checking, especially through sites like <a href="http://www.reddit.com">Reddit</a>. You just have to learn which &#8220;reddits&#8221; are worth reading and which are snark-factories. </p>

<p>Ultimately, it seems that the goal of the Internet is actually working - that the demographic born to the Internet is smarter, more politically active and more willing to share America, but that&#8217;s another post&#8230;
</p>]]></content>
    </entry>

    <entry>
      <title>Project 52&#8230;</title>
      <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/project_52/" /> 
      <id>tag:shortcuts.nl,2010:index.php/weblog/index/1.172</id>
      <issued>2010-06-14T01:01:50+00:00</issued>
      <modified>2010-12-02T10:05:51+00:00</modified>
      <summary>So what does it mean when the person starting an initiative doesn&#8217;t have time for it?</summary>
      <created>2010-06-14T01:01:50+00:00</created>
		<author>
		  <name>admin</name>
		  <email>jtrascap@mac.com</email>
		  <url>http://www.shortcuts.nl</url>                  		</author>
      <dc:subject>Idle Chatter, Personal, Project 52</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>Project 52 was a bit of an eye-opener. Think it&#8217;s hard to write? Try forcing yourself to write once a week, on something of value. </p>

<p>It seems the initiative died last week, or month&#8230;hard to tell&#8230;and the connecting website that makes all of this possible just disappeared. It&#8217;s probably not the workload for writing, but instead I believe there was a great underestimation of how much coordination was required to get this going. </p>

<p>I too found myself lost for words. Hopefully should this happen again, we&#8217;ll all be better prepared.&nbsp; <img src="http://www.shortcuts.nl/images/smileys/wink.gif" width="19" height="19" alt="wink" style="border:0;" /> </p>

<p>Until that time, I return to my regularly unscheduled schedule. 
</p>]]></content>
    </entry>

    <entry>
      <title>Font Management in OS X, 10.4&#45;10.6</title>
      <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/font_management_in_os_x_10.4-10.6/" /> 
      <id>tag:shortcuts.nl,2010:index.php/weblog/index/1.169</id>
      <issued>2010-05-31T07:28:14+00:00</issued>
      <modified>2010-05-31T11:03:15+00:00</modified>
      <summary>Fonts in OS X seems to change in every version. They&#8217;re a mystery, wrapped in a puzzle, often dotted with a umlaut and an accent&#45;grave. Whether you&#8217;re a a Flash developer wondering why your final Helvetica looks larger than it should be, or a print designer who&#8217;s output looks strangely un&#45;kerned, this link is for you&#8230;</summary>
      <created>2010-05-31T07:28:14+00:00</created>
		<author>
		  <name>admin</name>
		  <email>jtrascap@mac.com</email>
		  <url>http://www.shortcuts.nl</url>                  		</author>
      <dc:subject>Gadgetry, IT notes, Project 52</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>I know nothing about JKL Studios other than they&#8217;ve got <a href="http://www.jklstudios.com/misc/osxfonts.html">the most detailed and easy-to-understand overview</a> I&#8217;ve seen about Mac font management. </p>

<p>Read it. <br />
Learn it. <br />
Live it. </p>

<p>And <a href="http://www.jklstudios.com/misc/Font_Management_in_OS_X.pdf">download the PDF</a> for when you stupidly remove the LucidaGrande.dfont from your /System/Library/Fonts/ directory. </p>

<p>No&#8230;I admit to nothing. 
</p>]]></content>
    </entry>

    <entry>
      <title>Multiple Languages &#45; a &#8220;How&#45;To&#8221; using PutYourLightsOn&#8217;s Multi&#45;Language module</title>
      <link rel="alternate" type="text/html" href="http://www.shortcuts.nl/index.php/weblog/multiple_languages_-_a_how-to_using_putyourlightsons_multi-language_mo/" /> 
      <id>tag:shortcuts.nl,2010:index.php/weblog/index/1.168</id>
      <issued>2010-03-24T06:53:24+00:00</issued>
      <modified>2010-10-14T12:25:25+00:00</modified>
      <summary>I&#8217;m building a dual&#45;language website now that will feature English and Dutch, and I&#8217;ve been digging and culling information on this for a few weeks now. I&#8217;m putting my experiences down into this &#8220;How&#45;To&#8221; help others stuck at 2am.</summary>
      <created>2010-03-24T06:53:24+00:00</created>
		<author>
		  <name>admin</name>
		  <email>jtrascap@mac.com</email>
		  <url>http://www.shortcuts.nl</url>                  		</author>
      <dc:subject>IT notes, Project 52</dc:subject>
      <content type="text/html" mode="escaped" xml:lang="en-US"><![CDATA[<p>The focus on this is specifically using the <a href="http://www.shortcuts.nl/index.php?URL=http%3A%2F%2Fwww.putyourlightson.net%2Fprojects%2Fmulti_language">Multi Language Module from PutYourLightOn</a> but there are enough smaller tips in here that it&#8217;s worth putting in one place. There are also other means to do multiple languages that don&#8217;t require a commercial module, but this worked for me. YMMV. If this isn&#8217;t the right place, admins, let me know and I&#8217;ll move it. </p>

<p><b>Caveats:</b><br />
• This was developed  for the EE 1.6x but it should be very similar in 2.1x installations<br />
• Requires the use of jQuery for the Control Panel extension and the commercial Multi-Language Module from PutYourLightsOn.net<br />
• This presumes 2 languages, but more can be used following the guide<br />
• We try for pure EE-solutions whenever possible - no hacking or php/js and exposing the security<br />
• Since we&#8217;re describing EE tags, normally they can&#8217;t be displayed inline (because the system immediately processes them). Using the code tag will ruin the reading, so when you see something like <b>[base_path]</b> realize the parenthesis are replaced by brackets.</p>

<p><b>Start - Setting-up the different language paths and removing the index.php from the URL:</b></p>

<p>We&#8217;re presuming you have a default language (in my case English) set in your General Preferences > Site Language setting. All you need to do is add the module, add the extra languages and add some files to make sure the <b>[base_url]</b> starts out of the correct path. </p>

<p>• Install the module (follow the directions on that - easy enough)</p>

<p>• Add a additional language in the module using the <a href="http://www.shortcuts.nl/index.php?URL=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FList_of_ISO_639-1_codes">correct ISO 639-1 code</a> for your extra language (en = english, nl = dutch, es = spanish, etc) </p>

<p>• Add a directory to the root of your site for each additional language using the matching ISO 639-1 code. This is always lower-case. </p>

<p>• Modify your path.php file to add 2 new variables <b>[base_url]</b> &amp; <b>[user_language]</b>. The important bit is at the bottom:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$global_vars&nbsp;</span><span style="color: #007700">=&nbsp;array();&nbsp;</span><span style="color: #FF8000">//&nbsp;This&nbsp;array&nbsp;must&nbsp;be&nbsp;associative&nbsp;</span>
</span>
</code></div>

<p>changes to point to your default language (replace &#8220;mysite&#8221; with your site and your particular base language)</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #FF8000">//&nbsp;$global_vars&nbsp;=&nbsp;array();&nbsp;//&nbsp;This&nbsp;array&nbsp;must&nbsp;be&nbsp;associative<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #0000BB">$global_vars&nbsp;</span><span style="color: #007700">=&nbsp;array(<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"base_url"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"http://www.mysite.com/"</span><span style="color: #007700">,&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"user_language"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"en"<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #007700">);&nbsp;</span>
</span>
</code></div>

<p>• Now add .htaccess to the root using the <a href="http://www.shortcuts.nl/index.php?URL=http%3A%2F%2Fexpressionengine.com%2Fwiki%2FRemove_index.php_From_URLs%2F%23Exclude_List_Method">EXCLUDE LIST method</a> of removing the index.php. You&#8217;re including only the directories you want the system to look into:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">RewriteEngine&nbsp;on<br />RewriteCond&nbsp;</span><span style="color: #007700">$</span><span style="color: #0000BB">1&nbsp;</span><span style="color: #007700">!^(</span><span style="color: #0000BB">nl</span><span style="color: #007700">|</span><span style="color: #0000BB">css</span><span style="color: #007700">|</span><span style="color: #0000BB">images</span><span style="color: #007700">|</span><span style="color: #0000BB">system</span><span style="color: #007700">|</span><span style="color: #0000BB">themes</span><span style="color: #007700">|</span><span style="color: #0000BB">index\</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">)&nbsp;</span><span style="color: #0000BB">&#91;NC&#93;<br />RewriteRule&nbsp;</span><span style="color: #007700">^(.*)$&nbsp;/</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">/$</span><span style="color: #0000BB">1&nbsp;&#91;L&#93;&nbsp;</span>
</span>
</code></div>

<p>• The module comes with spanish and italian directory file example - use one of them and move the 3 files to the server<br />
 - index.php  = you can leave alone<br />
 - .htaccess = modify the path in the Rewrite Rule to point to your desired language, in my case it&#8217;s Dutch
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">RewriteRule&nbsp;</span><span style="color: #007700">^(.*)$&nbsp;/</span><span style="color: #0000BB">nl</span><span style="color: #007700">/</span><span style="color: #0000BB">index</span><span style="color: #007700">.</span><span style="color: #0000BB">php</span><span style="color: #007700">/$</span><span style="color: #0000BB">1&nbsp;&#91;L&#93;&nbsp;</span>
</span>
</code></div><p>
 - path.php = modify the last lines like the above default language, but this time to add the new language path
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">$global_vars&nbsp;</span><span style="color: #007700">=&nbsp;array(<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"base_url"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"http://www.mysite.com/nl/"</span><span style="color: #007700">,&nbsp;<br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #DD0000">"user_language"&nbsp;</span><span style="color: #007700">=&gt;&nbsp;</span><span style="color: #DD0000">"nl"<br /></span><span style="color: #007700">);&nbsp;</span><span style="color: #FF8000">//&nbsp;This&nbsp;array&nbsp;must&nbsp;be&nbsp;associative&nbsp;</span>
</span>
</code></div>

<p>There are enough folks out there having trouble with removing index.php - removing two of them is worth pointing out. This caught me a few times. </p>

<p>The module&#8217;s instructions are clear enough; there are 2 basic methods for language replacement: the tag method, where you add a tag via the module and it does the swapping: 
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">multi_language</span><span style="color: #007700">:</span><span style="color: #0000BB">phrase&nbsp;index</span><span style="color: #007700">=</span><span style="color: #DD0000">"hello"</span><span style="color: #0000BB">&#125;&nbsp;</span>
</span>
</code></div>

<p>and Conditionals based on your current <b>[base_path]</b>:
</p><div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"my_weblog"</span><span style="color: #0000BB">&#125;<br />&#123;if&nbsp;user_language&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">"en"</span><span style="color: #0000BB">&#125;&#123;title&#125;&#123;if</span><span style="color: #007700">:</span><span style="color: #0000BB">else&#125;&#123;title_&#123;user_language&#125;&#125;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;<br />&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;&nbsp;</span>
</span>
</code></div>

<p>You&#8217;ll note that it uses the default <b>[title]</b> but also an alternative <b>[title_]</b> field. In my custom fields, right after title I&#8217;ve added a title_nl field, keeping the lowercase iso convention. This is the method of doing dynamic content - each language element having its own field (I loop through using a FieldFrame set, for example). </p>

<p>Links are your first enemy in multiple languages, so you need to find an alternative to <b>[permalink]</b> and <b>[auto_path]</b>. Let&#8217;s re-write that example to add a link:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"my_weblog"</span><span style="color: #0000BB">&#125;<br /></span><span style="color: #007700">&lt;</span><span style="color: #0000BB">a&nbsp;href</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;base_url&#125;template_dir/template/&#123;url_title&#125;"</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;if&nbsp;user_language&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">"en"</span><span style="color: #0000BB">&#125;&#123;title&#125;<br />&nbsp;&nbsp;&#123;if</span><span style="color: #007700">:</span><span style="color: #0000BB">else&#125;&#123;title_&#123;user_language&#125;&#125;<br />&nbsp;&nbsp;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;<br /></span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;<br /></span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&#125;&nbsp;</span>
</span>
</code></div>

<p>So what happens here is that depending on your current <b>[base_path]</b>, the link does away with the <b>[title_permalink]</b> and rebuilds the path from the root up to the article. If I had a templates directory called &#8220;site&#8221; and in there an article view page called &#8220;view&#8221;, it&#8217;d look like this:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #007700">&lt;</span><span style="color: #0000BB">a&nbsp;href</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;base_url&#125;site/view/&#123;url_title&#125;"</span><span style="color: #007700">&gt;<br />&nbsp;&nbsp;</span><span style="color: #0000BB">&#123;if&nbsp;user_language&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">"en"</span><span style="color: #0000BB">&#125;&#123;title&#125;<br />&nbsp;&nbsp;&#123;if</span><span style="color: #007700">:</span><span style="color: #0000BB">else&#125;&#123;title_&#123;user_language&#125;&#125;<br />&nbsp;&nbsp;&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;<br /></span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&nbsp;</span>
</span>
</code></div>

<p>Pagination doesn&#8217;t use <b>[title_permalink]</b> but rather <b>[auto_path]</b>. Specifically for Pagination, you&#8217;d want to add a new <b>[paginate_base]</b> parameter to your <b>[entries]</b> tag:</p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;exp</span><span style="color: #007700">:</span><span style="color: #0000BB">weblog</span><span style="color: #007700">:</span><span style="color: #0000BB">entries&nbsp;weblog</span><span style="color: #007700">=</span><span style="color: #DD0000">"workshops"&nbsp;</span><span style="color: #0000BB">limit</span><span style="color: #007700">=</span><span style="color: #DD0000">"5"&nbsp;</span><span style="color: #0000BB">status</span><span style="color: #007700">=</span><span style="color: #DD0000">"open"&nbsp;<br /></span><span style="color: #0000BB">paginate_base</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;if&nbsp;user_language&nbsp;!=&nbsp;'en'&#125;&#123;user_language&#125;<br />&#123;/if&#125;/template_group/template"</span><span style="color: #0000BB">&#125;&nbsp;</span>
</span>
</code></div>

<p>This points the Pagination auto links used by <b>[if next_page]</b> <b>[if previous_page]</b> to the correct language. </p>

<p>The next time you&#8217;ll see <b>[auto_path]</b> is in a site search, and unfortunately there doesn&#8217;t seem to be a similar method for a search_base. What I&#8217;ve done in this situation is to use the weblog_id to point me to the correct category link: </p>

<div class="codeblock"><code><span style="color: #000000">
<span style="color: #0000BB">&#123;if&nbsp;weblog_id&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">"3"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">td&nbsp;width</span><span style="color: #007700">=</span><span style="color: #DD0000">"30%"&nbsp;</span><span style="color: #0000BB">valign</span><span style="color: #007700">=</span><span style="color: #DD0000">"top"</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">b</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">a&nbsp;href</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;base_url&#125;site/static/&#123;url_title&#125;"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">b</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;<br /></span><span style="color: #0000BB">&#123;if</span><span style="color: #007700">:elseif&nbsp;</span><span style="color: #0000BB">weblog_id&nbsp;</span><span style="color: #007700">==&nbsp;</span><span style="color: #DD0000">"4"</span><span style="color: #0000BB">&#125;<br />&nbsp;&nbsp;</span><span style="color: #007700">&lt;</span><span style="color: #0000BB">td&nbsp;width</span><span style="color: #007700">=</span><span style="color: #DD0000">"30%"&nbsp;</span><span style="color: #0000BB">valign</span><span style="color: #007700">=</span><span style="color: #DD0000">"top"</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">b</span><span style="color: #007700">&gt;&lt;</span><span style="color: #0000BB">a&nbsp;href</span><span style="color: #007700">=</span><span style="color: #DD0000">"&#123;base_url&#125;site/workshop/&#123;url_title&#125;"</span><span style="color: #007700">&gt;</span><span style="color: #0000BB">&#123;title&#125;</span><span style="color: #007700">&lt;/</span><span style="color: #0000BB">a</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">b</span><span style="color: #007700">&gt;&lt;/</span><span style="color: #0000BB">td</span><span style="color: #007700">&gt;<br /></span><span style="color: #0000BB">&#123;</span><span style="color: #007700">/</span><span style="color: #0000BB">if&#125;&nbsp;</span>
</span>
</code></div>

<p>and then just use different results pages for each language.
</p>]]></content>
    </entry>


</feed>
