Location: PHPKode > projects > Aukyla Platform > aukyla/doc/html/translating.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <title>Aukyla PHP Framework</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link rel="StyleSheet" href="auton.css" type="text/css" media="screen">

    <div id="mainmenu">
      <a href="http://www.auton.nl/" class="home">Home</a>
    <div id="submenu">
      <a class="logo" href="http://www.auton.nl/"></a>

      <div class="head">Ads</div>
      <a href="http://sourceforge.net/"><img src="http://sourceforge.net/sflogo.php?group_id=116358&amp;type=1" alt="SourceForge.net Logo" style="padding: 2px 4px; width: 88px; height: 31px; border: 0px"></a>
      <a href="http://getfirefox.com/" title="Get Firefox - The Browser, Reloaded."><img src="http://www.mozilla.org/products/firefox/buttons/getfirefox_small.png" alt="Get Firefox" style="width: 110px; height: 32px; border: 0px"></a>
    <div id="main">
      <div class="qindex"><a class="qindexHL" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="hierarchy.html">Class&nbsp;Hierarchy</a> | <a class="qindex" href="classes.html">Alphabetical&nbsp;List</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a></div>
      <h1>Creating translations</h1>

      <p>Translations can be generated using the UNIX xgettext utility. This
        will extract all translatable strings from the given source files and
        write them to PO files. These files can be edited and saved with a
        translation program like
        <a href="http://i18n.kde.org/tools/kbabel/">KBabel</a>. Please refer
        to the manpages for xgettext for more information.</p>
      <p>Included in the Aukyla release is a small script called
        "update_messages.php", you can execute this script from the Aukyla root
        directory and specify a subdirectory as its first argument. The script
        will then extract all translatable strings from the files in this
        subdirectory and write appropriate PO and POT files to the same
        subdirectory but inside the locale/ directory. So, if you call the
        script like this: "./update_messages.php apps/ADMS", all strings from
        the PHP files inside apps/ADMS are extracted and written to PO files in
        locale/apps/ADMS where they can be translated.</p>
      <p>If you want to add a translation for a new language, just add the
        language to the file locale/languages and re-run the update_messages.php
        script for all modules you want to translate.</p>
Return current item: Aukyla Platform