PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Peter He  >  POT Creator  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example file
Class: POT Creator
Build application translation files for gettext
Author: By
Last change:
Date: 10 years ago
Size: 537 bytes


Class file image Download


$obj = new POTCreator;

$obj->set_root(dirname(__FILE__) . '/example');

$potfile = 'example/language/example.pot';

header('Content-type:text/html; Charset=GBK');
"<p>POT 文件位于 - The POT file located in:<br>\n{$potfile}</p>\n";
"<p>然后你就可以使用 Poedit 进行翻译啦 - Then you can translate it by Poedit.</p>\n";


For more information send a message to info at phpclasses dot org.