title: PHP Localization Best Practices? gettext?
body: <p>We are in the process of making our website international, allowing multiple languages.</p>
  
  <p>I've looked into php's "gettext" however, if I understand it right, I see a big flaw:</p>
  
  <p>If my webpage has let's say "Hello World" as a static text. I can put the string as <code>&lt;?php echo gettext("Hello World"); ?&gt;</code>, generate the po/mo files using a tool. Then I would give the file to a translator to work on.</p>
  
  <p>A few days later we want to change the text in English to say "Hello Small World"?
  Do I change the value in gettext? Do I create an english PO file and change it there?
  If you change the gettext it will consider it as a new string and you'll instantly loose the current translation ...</p>
  
  <p>It seems to me that gradually, the content of the php file will have old text everywhere.
  Or people translating might have to be told "when you see Hello World, instead, translate Hello Small World".</p>
  
  <p>I don't know I'm getting confused.</p>
  
  <p>In other programming languages, I've seen that they use keywords such as <code>web.home.featured.HelloWorld</code>. </p>
  
  <p>What is the best way to handle translations in PHP?</p>
  
  <p>Thanks</p>