title: How to generate translation file for a custom Drupal 7 module?
body: <p>I'm using CentOS 5.5 Linux (without X), PHP 5.3 and Drupal 7.0.</p>
  
  <p>The core language of my site is Russian (not English)!</p>
  
  <p>I've created a <strong>game.info</strong> and the following <strong>game.module</strong> which generates 3 blocks for the front page:</p>
  
  <pre><code>function game_block_info() {
    return array(
    'game_main' =&gt; array(
      'info' =&gt; t('Set FlashVars and show the flash game.'),
      'cache' =&gt; DRUPAL_NO_CACHE,
    ),
    'game_winner' =&gt; array(
      'info' =&gt; t('Show the winner of the last week.'),
      'cache' =&gt; DRUPAL_NO_CACHE,
    ),
    'game_leader' =&gt; array(
      'info' =&gt; t('Show the leader of the current week.'),
      'cache' =&gt; DRUPAL_NO_CACHE,
    );
  }
  
  
  function game_block_view($block_name = '') {
    global $user;
  
    if ($block_name == 'game_main') {
      if (user_is_logged_in()) {
        $content = t('User is logged in.');
      } else {
        $content = t('User is an anonymous user.');
      }
      drupal_set_message("&lt;pre&gt;$output&lt;/pre&gt;\n");
      return array(
        'subject' =&gt; t('Main Game'),
        'content' =&gt; $content,
      );
    } else if ($block_name == 'game_winner') {
      ....
    } else if ($block_name == 'game_leader') {
      ....
    }
  }
  </code></pre>
  
  <p>It works ok, but I need all strings to be in Russian and do not want to hardcode them into my game.module file.</p>
  
  <p>Do I need to create the 3rd file called <strong>game.po</strong> and add it to the game.info?</p>
  
  <p>How can I create a .po file? I would prefer a simple editing of that file if possible, without obscure tools.</p>
  
  <p>I've also tried a tool:</p>
  
  <pre><code># xgettext -n game/game.module --keyword=t
  xgettext: warning: file `game/game.module' extension `module' is unknown; will try C
  game/game.module:87: warning: unterminated character constant
  game/game.module:100: warning: unterminated character constant
  </code></pre>