Welcome to the page on internationalization of PHPTimeClock

Here, we will put the information needed to implement the use of different languages in our PHPTimeClock. This stage is under development, so this wiki sees several changes throughout this development.

To start with the activities of this topic, let's create a new folder called languages and within this will create a new file called english.php where write in the form of a list, all messages currently PHPTimeClock our sample, this will serve as the initial collection of all the texts will be translated into different languages.

This new file english.php in the future will be split into several files to make it lighter load on the system.

English.php file format is as follows:

<?php /*

  • languages/english.php ver 0.1
  • Condensed Languague file for PHPTimeClock. *
  • This first version of the file is intended to collect all the messages
  • showing PHPTimeClock for revision and improvement as well as seeking
  • to re-use code. *
  • In the future, this file will be divided into several to make
  • the load lighter.
  • * ***************************************************************************
  • Copyright (C) 2008 by phpTimeClock Team *
  • http://sourceforge.net/projects/phptimeclock *
  • *
  • This program is free software; you can redistribute it and/or modify *
  • it under the terms of the GNU General Public License as published by *
  • the Free Software Foundation; either version 2 of the License, or *
  • (at your option) any later version. *
  • *
  • This program is distributed in the hope that it will be useful, *
  • but WITHOUT ANY WARRANTY; without even the implied warranty of *
  • MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
  • GNU General Public License for more details. *
  • *
  • You should have received a copy of the GNU General Public License *
  • along with this program; if not, write to the *
  • Free Software Foundation, Inc., *
  • 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. * *************************************************************************** *
  • Format example: *
  • // Begin PATH/file.php
  • define('ERROR_MESSAGE_XXXX', 'Error message');
  • define('ENTRY_XXXX', 'Entry Text');
  • define('COMMENT_XXXX', 'Comment');
  • define('BUTTON_XXXX', 'Comment');
  • define('TEXT_XXXX', 'xxxx');
  • define('TITLE_XXXX', 'xxxx');
  • define('HEADING_TITLE_XXXX', 'xxxx');
  • define('TABLE_HEADING_XXXX', 'xxxx');
  • define('IMAGE_BUTTON_XXXX', 'xxxx');
  • define('ICON_XXXX', 'xxxx');
  • define('WARNING_XXXX', 'xxxx');
  • define('SUCSESS_MESSAGE_XXXX', 'xxxx');
  • define('OTHER_TEXT_XXXX', 'xxxx');
  • define('HTML_PARAMS', 'xxxx');
  • define('CHARSET', 'xxxx');
  • define('XXXX', 'xxxx');
  • ...
  • ... *
  • // Begin PATH/other_file.php
  • ...
  • ...
  • // Example:
  • // Beging admin/useredit.php
  • define('ERROR_MESSAGE_USERNAME', 'User name is not set!');
  • define('ERROR_MESSAGE_REAL_NAME', 'Real name must have a value.');
  • define('ENTRY_SELECT_USER_EDIT', 'Select User To Edit:'); */

?>