/* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Copyright ©2006 by sTEFANs
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
* Translation and localistation resource file for English (default).
* @subpackage Inc-Resources
* @copyright Copyright ©2006 by sTEFANs
* @license http://opensource.org/licenses/lgpl-license.php GNU General Public License
* This function translates a text identified by $key
* to the language of the file. the function should provide
* some default text if the given key is unknown.
* @param defined $key A translation key as defined within
* <b>inc/translation_keys.inc.php</b>
* @return string The translated text.
* @see inc/translation_keys.inc.php
static $translation_table =
NULL;
if ($translation_table ==
NULL){
$translation_table =
array();
$translation_table[TK_ERROR_MISSING_PROJECT__PROJECT_NAME] =
'Webspace for project %s could not be found. Either the webspace is not imported properly or the project is not configured correctly.';
$translation_table[TK_ERROR_MISSING_CONFIG__PROJECT_NAME] =
'Project configuration for project %s could not be found. Maybe the project is not configured properly for "SVN Web Control".';
$translation_table[TK_ERROR_MISSING_CONFIG] =
'No project could be found or "SVN Web Control" is not configured correctly.';
$translation_table[TK_NO_PROJECT_TITLE] =
'Project missing';
$translation_table[TK_BROWSER_CANNOT_DISPLAY_FRAMES__LINK__LINK] =
'Your browser does not support embedded frames. The project page can be directly opened via this link <a href="%s" target="_blank">%s</a>';
$translation_table[TK_RESULT_TITLE_REP_LIST] =
'Repository Listing';
$translation_table[TK_RESULT_TITLE_WS_STATUS] =
'Webspace Status';
$translation_table[TK_RESULT_TITLE_WS_LOG] =
'Webspace Log';
$translation_table[TK_RESULT_TITLE_WS_INFO] =
'Webspace Info';
$translation_table[TK_RESULT_TITLE_WS_UPDATE] =
'Webspace Update';
$translation_table[TK_RESULT_TITLE_WS_CLEANUP] =
'Webspace Clean-up';
$translation_table[TK_RESULT_TITLE_WS_SWITCH] =
'Webspace switched';
$translation_table[TK_RESULT_TITLE_WS_CHECKOUT] =
'Webspace checked-out';
$translation_table[TK_RESULT_SVN_HELP_TITLE] =
'Argument for SVN Commandline';
$translation_table[TK_RESULT_SVN_HELP_HEADER] =
'The following tags are replaced:<br/>';
$translation_table[TK_RESULT_SVN_HELP_REP_SHORT] =
'%rep%: Root directory for project repository<br/>';
$translation_table[TK_RESULT_SVN_HELP_REP_LONG] =
'%repository%: Root directory for project repository<br/>';
$translation_table[TK_RESULT_SVN_HELP_WS_SHORT] =
'%ws%: Root directory for webspace<br/>';
$translation_table[TK_RESULT_SVN_HELP_WS_LONG] =
'%webspace%: Root directory for webspace<br/>';
$translation_table[TK_RESULT_TITLE_SVNLOOK_HELP] =
'svnlook help';
$translation_table[TK_RESULT_TITLE_SVN_HELP] =
'svn help';
$translation_table[TK_RESULT_TITLE_SVNADMIN_HELP] =
'svnadmin help';
$translation_table[TK_RESULT_TITLE_SVNVERSION_HELP] =
'svnversion help';
$translation_table[TK_RESULT_ERROR_CMD_NOT_EXEC] =
'SVN command could not be executed';
$translation_table[TK_RESULT_ERROR_NO_CMD] =
'No command applied';
$translation_table[TK_RESULT_ERROR_NO_SVN_CMD__CMD] =
'%s<br/>is an unknown SVN command<br/>and has not been executed.';
$translation_table[TK_RESULT_CMD_EXEC] =
'SVN Kommando ausgeführt';
$translation_table[TK_WEBSPACE_STATUS_LIST_HEADER] =
' Update Revisions Author Directory of file<br/>';
$translation_table[TK_CTRL_ERROR_NO_WEBSPACE] =
'Webspace is not available. Please check-out the webspace.';
$translation_table[TK_CTRL_ERROR_CONFIG_NOT_FOUND] =
'SVN Web Control - project configuration could not be found.';
$translation_table[TK_CTRL_GENERAL_ERROR] =
'Either <ul><li>no configuration factory (SwcConfigFactory) is defined,</li><li>funktion <b>GetSwcConfigFactory()</b> is missing(e.g. typo), or</li><li>./swc/config/std_config_factory.inc.php is not configured properly.</li></ol>';
$translation_table[TK_CTRL_ERROR_NO_CONFIG__PROJECTNAME] =
'Either project configuration for projekt "%s" is missing or SVN Web Control is not configured correctly.';
$translation_table[TK_CTRL_BY_SVN__VERSION] =
'controlled by Subversion %s';
$translation_table[TK_CTRL_ERROR_NO_CONFIG] =
'Error: Project configuration is missing.';
$translation_table[TK_CTRL_TITLE_SELECT_PROJECT] =
'Please choose a project.';
$translation_table[TK_CTRL_TITLE_HEAD] =
'Repository Head';
$translation_table[TK_CTRL_TITLE_HEAD_SHORT] =
'Head:';
$translation_table[TK_CTRL_TITLE_REVISION] =
'Revision';
$translation_table[TK_CTRL_TITLE_REVISION_SHORT] =
'Rev.';
$translation_table[TK_CTRL_TITLE_WS] =
'Webspace';
$translation_table[TK_CTRL_TITLE_WS_SHORT] =
'Webspace:';
$translation_table[TK_CTRL_WARN_WS_OUTDATED] =
'Webspace is outdated!';
$translation_table[TK_CTRL_ACTION_UPDATE] =
'Update';
$translation_table[TK_CTRL_ACTION_CHECKOUT] =
'Check-out';
$translation_table[TK_CTRL_LABEL_PROJECTS] =
'Projects:';
$translation_table[TK_CTRL_ACTION_REFRESH] =
'Refresh SWC';
$translation_table[TK_CTRL_ACTION_SHOW_PROJECTPAGE] =
'Project Page';
$translation_table[TK_CTRL_ACTION_SHOW_REPOSITORY] =
'Repository';
$translation_table[TK_CTRL_ACTION_SHOW_WEBSVN] =
'Web SVN';
$translation_table[TK_CTRL_ACTION_SHOW_WS_INFO] =
'Webspace Info';
$translation_table[TK_CTRL_ACTION_SHOW_WS_STATUS] =
'Webspace Status';
$translation_table[TK_CTRL_ACTION_SHOW_WS_LOG] =
'Webspace Log';
$translation_table[TK_CTRL_ACTION_SHOW_WS_CLEANUP] =
'Webspace Clean-up';
$translation_table[TK_CTRL_ACTION_SHOW_ARCHIVE_PAGE] =
'Spaceballs';
$translation_table[TK_CTRL_LABEL_SVN_CMD] =
'SVN-Command';
$translation_table[TK_CTRL_ACTION_SVN_CMD] =
'execute!';
$translation_table[TK_CTRL_ACTION_SVN_HELP] =
'SVN Help';
$translation_table[TK_CTRL_ACTION_SWITCH_TO_HEAD] =
'Switch to latest revision (head)';
$translation_table[TK_CTRL_LABEL_SWITCH_TO_TAG] =
'Tag';
$translation_table[TK_CTRL_LABEL_SWITCH_TO_BRANCH] =
'Branch';
$translation_table[TK_CTRL_ACTION_SWITCH] =
'switch';
$translation_table[TK_CTRL_ACTION_OPEN_PROJECTPAGE] =
'Open project<br/>page separatly';
$translation_table[TK_CTRL_LABEL_PIN_PROJECTPAGE] =
'Pin<br/>project page';
$translation_table[TK_CTRL_LABEL_SEPARATE_RESULT_WINDOW] =
'Show result in<br/>separate window';
$translation_table[TK_CTRL_LABEL_SHOW_SWITCHBAR] =
'Show<br/>switch bar';
$translation_table[TK_CTRL_LABEL_SHOW_CMDBAR] =
'Show<br/>command bar';
$translation_table[TK_CTRL_LABEL_FRAME_SIZE] =
'Set frame size to';
$translation_table[TK_CTRL_LABEL_FRAME_WIDTH] =
'';
$translation_table[TK_CTRL_LABEL_FRAME_HEIGHT] =
'x';
$translation_table[TK_CTRL_ACTION_SET_FRAME_SIZE] =
'go';
$translation_table[TK_CTRL_ACTION_MINIMIZE] =
'Compact';
$translation_table[TK_CTRL_ACTION_SWC_HELP] =
'Help';
$translation_table[TK_CTRL_PAGE_TITLE] =
'SVN Web Control';
$translation_table[TK_CTRL_LABEL_CREATE_ARCHIVE] =
'Create a Spaceball from current Webspace named';
$translation_table[TK_CTRL_ACTION_CREATE_ARCHIVE] =
'Create';
$translation_table[TK_CTRL_LABEL_OVERWRITE_ARCHIVE] =
'Overwrite Spaceball if exists';
$translation_table[TK_DETAILS_DEFAULT_TEXT] =
'No command';
$translation_table[TK_DETAILS_LABEL_CMDLINE] =
'Command line';
$translation_table[TK_DETAILS_LABEL_RESULT_CODE] =
'Result';
$translation_table[TK_DETAILS_LABEL_OUTPUT] =
'Output';
$translation_table[TK_DETAILS_LABEL_ERROR] =
'Error';
$translation_table[TK_DETAILS_NO_ERROR] =
'No error';
$translation_table[TK_INDEX_PAGE_TITLE] =
'SVN Web Control';
$translation_table[TK_ARCHIVE_PAGE_TITLE] =
'Spaceballs - Webspace File Archives';
$translation_table[TK_CTRL_ACTION_NO_PROJECT] =
'- Select a project -';
$translation_table[TK_INDEX_PROJECT_FRAME_TITLE] =
'Project page';
$translation_table[TK_PATH_TO_SWC_HELP] =
'./inc/resources/_default_swc_help.php';
$translation_table[TK_ERROR_ARCHIVE_DIR_IS_FILE_NOT_DIR__PATH] =
'Spaceball root directory >%s< is not a directory.<br/>Please check project configuration (GetArchiveDir()).';
$translation_table[TK_ERROR_ARCHIVE_DIR_NOT_EXIST__PATH] =
'Spaceball root directory >%s< is not accessable.<br/>Please check project configuration (GetArchiveDir()) and directory rights.';
$translation_table[TK_RESULT_NO_SPACEBALLS] =
'No Spaceballs available.';
$translation_table[TK_SB_LIST_LABEL_SPACEBALLS] =
'Spaceballs';
$translation_table[TK_SB_LIST_LABEL_REVISION] =
'Revision';
$translation_table[TK_SB_LIST_LABEL_TIMESTAMP] =
'Created at';
$translation_table[TK_SB_LIST_LABEL_FILESIZE] =
'Ballsize';
$translation_table[TK_ERROR_SPACEBALL_EXISTS] =
'Spaceball could not be created because file exists and cannot be overwritten.';
$translation_table[TK_ERROR_SPACEBALL_EXISTS_NO_OVERWRITE] =
'Spaceball already exists and shall not be overwritten.';
$translation_table[TK_SB_MSG_SPACEBALL_CREATION_SUCCESSFULL__NAME] =
'Created Spaceball %s successfully';
$translation_table[TK_ERROR_SPACEBALL_EMPTY_WEBSPACE] =
'Webspace is empty. Spaceball is not created.';
$translation_table[TK_ERROR_SPACEBALL_GENERAL_ERROR] =
'Spaceball could not be created.';
if (!isset
($translation_table[$key])){
return '!!-en-Key-is-missing:'.
$key;
return $translation_table[$key];
* Returns a localised timestamp representation
* for the given timestamp.
* @param int $timestamp A numerical PHP timestamp
* (as e.g. provided by <b>strtotime()</b> function).
* @param boolean $short Whether or not (default) the timestamp
* should be returned in short or long format.
* @return string A localised timestamp string.
$ts =
date('Y-m-d H:i', $timestamp);
$ts .=
' (CW '.
date('W', $timestamp).
', '.
date('z.', $timestamp).
' DoY)';