sTEFANs Subversion Web Contol (SWC)
Inc-Resources
[ class tree: Swc ] [ index: Swc ] [ all elements ]

Source for file en.php

Documentation is available at en.php

  1. <?php
  2. /* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3. SVN Web Control
  4. Copyright ©2006 by sTEFANs
  5. Created on 13.03.2006
  6. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  7. This program is free software; you can redistribute it and/or modify
  8. it under the terms of the GNU General Public License as published by
  9. the Free Software Foundation; either version 2 of the License, or
  10. (at your option) any later version.
  11.  
  12. This program is distributed in the hope that it will be useful,
  13. but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. GNU General Public License for more details.
  16.  
  17. You should have received a copy of the GNU General Public License
  18. along with this program; if not, write to the Free Software
  19. Foundation, Inc., 59 Temple Place - Suite 330,
  20. Boston, MA 02111-1307, USA.
  21. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  22. */
  23.  
  24. /**
  25.  * Translation and localistation resource file for English (general).
  26.  * 
  27.  * @see _default.php
  28.  * @package Swc
  29.  * @subpackage Inc-Resources
  30.  * @author Stefan Schraml
  31.  * @copyright Copyright ©2006 by sTEFANs
  32.  * @license http://opensource.org/licenses/lgpl-license.php GNU General Public License
  33.  * @version v1.1.0
  34.  * @since v1.0.0
  35.  */
  36.  
  37. /*
  38.  * This function translates a text identified by $key 
  39.  * to the language of the file. the function should provide
  40.  * some default text if the given key is unknown.
  41.  * @param defined $key A translation key as defined witin
  42.  * <b>inc/translation_keys.inc.php</b>
  43.  * @return string The translated text.
  44.  * 
  45.  * @since v1.0.0
  46.  */
  47. /** @ignore */
  48. function Translate($key){
  49.     static $translation_table NULL;
  50.     if ($translation_table == NULL){
  51.         $translation_table array();
  52.         $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.';
  53.         $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".';
  54.         $translation_table[TK_ERROR_MISSING_CONFIG'No project could be found or "SVN Web Control" is not configured correctly.';
  55.         $translation_table[TK_NO_PROJECT_TITLE'Project missing';
  56.         $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>';
  57.         $translation_table[TK_RESULT_TITLE_REP_LIST'Repository Listing';
  58.         $translation_table[TK_RESULT_TITLE_WS_STATUS'Webspace Status';
  59.         $translation_table[TK_RESULT_TITLE_WS_LOG'Webspace Log';
  60.         $translation_table[TK_RESULT_TITLE_WS_INFO'Webspace Info';
  61.         $translation_table[TK_RESULT_TITLE_WS_UPDATE'Webspace Update';
  62.         $translation_table[TK_RESULT_TITLE_WS_CLEANUP'Webspace Clean-up';
  63.         $translation_table[TK_RESULT_TITLE_WS_SWITCH'Webspace switched';
  64.         $translation_table[TK_RESULT_TITLE_WS_CHECKOUT'Webspace checked-out';
  65.         $translation_table[TK_RESULT_SVN_HELP_TITLE'Argument for SVN Commandline';
  66.         $translation_table[TK_RESULT_SVN_HELP_HEADER'The following tags are replaced:<br/>';
  67.         $translation_table[TK_RESULT_SVN_HELP_REP_SHORT'%rep%: Root directory for project repository<br/>';
  68.         $translation_table[TK_RESULT_SVN_HELP_REP_LONG'%repository%: Root directory for project repository<br/>';
  69.         $translation_table[TK_RESULT_SVN_HELP_WS_SHORT'%ws%: Root directory for webspace<br/>';
  70.         $translation_table[TK_RESULT_SVN_HELP_WS_LONG'%webspace%: Root directory for webspace<br/>';
  71.         $translation_table[TK_RESULT_TITLE_SVNLOOK_HELP'svnlook help';
  72.         $translation_table[TK_RESULT_TITLE_SVN_HELP'svn help';
  73.         $translation_table[TK_RESULT_TITLE_SVNADMIN_HELP'svnadmin help';
  74.         $translation_table[TK_RESULT_TITLE_SVNVERSION_HELP'svnversion help';
  75.         $translation_table[TK_RESULT_ERROR_CMD_NOT_EXEC'SVN command could not be executed';
  76.         $translation_table[TK_RESULT_ERROR_NO_CMD'No command applied';
  77.         $translation_table[TK_RESULT_ERROR_NO_SVN_CMD__CMD'%s<br/>is an unknown SVN command<br/>and has not been executed.';
  78.         $translation_table[TK_RESULT_CMD_EXEC'SVN Kommando ausgeführt';
  79.         $translation_table[TK_WEBSPACE_STATUS_LIST_HEADER'       Update   Revisions  Author       Directory of file<br/>';
  80.         $translation_table[TK_CTRL_ERROR_NO_WEBSPACE'Webspace is not available. Please check-out the webspace.';
  81.         $translation_table[TK_CTRL_ERROR_CONFIG_NOT_FOUND'SVN Web Control - project configuration could not be found.';
  82.         $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>';
  83.         $translation_table[TK_CTRL_ERROR_NO_CONFIG__PROJECTNAME'Either project configuration for projekt "%s" is missing or SVN Web Control is not configured correctly.';
  84.         $translation_table[TK_CTRL_BY_SVN__VERSION'controlled by Subversion %s';
  85.         $translation_table[TK_CTRL_ERROR_NO_CONFIG'Error: Project configuration is missing.';
  86.         $translation_table[TK_CTRL_TITLE_SELECT_PROJECT'Please choose a project.';
  87.         $translation_table[TK_CTRL_TITLE_HEAD'Repository Head';
  88.         $translation_table[TK_CTRL_TITLE_HEAD_SHORT'Head:';
  89.         $translation_table[TK_CTRL_TITLE_REVISION'Revision';
  90.         $translation_table[TK_CTRL_TITLE_REVISION_SHORT'Rev.';
  91.         $translation_table[TK_CTRL_TITLE_WS'Webspace';
  92.         $translation_table[TK_CTRL_TITLE_WS_SHORT'Webspace:';
  93.         $translation_table[TK_CTRL_WARN_WS_OUTDATED'Webspace is outdated!';
  94.         $translation_table[TK_CTRL_ACTION_UPDATE'Update';
  95.         $translation_table[TK_CTRL_ACTION_CHECKOUT'Check-out';
  96.         $translation_table[TK_CTRL_LABEL_PROJECTS'Projects:';
  97.         $translation_table[TK_CTRL_ACTION_REFRESH'Refresh SWC';
  98.         $translation_table[TK_CTRL_ACTION_SHOW_PROJECTPAGE'Project Page';
  99.         $translation_table[TK_CTRL_ACTION_SHOW_REPOSITORY'Repository';
  100.         $translation_table[TK_CTRL_ACTION_SHOW_WEBSVN'Web SVN';
  101.         $translation_table[TK_CTRL_ACTION_SHOW_WS_INFO'Webspace Info';
  102.         $translation_table[TK_CTRL_ACTION_SHOW_WS_STATUS'Webspace Status';
  103.         $translation_table[TK_CTRL_ACTION_SHOW_WS_LOG'Webspace Log';
  104.         $translation_table[TK_CTRL_ACTION_SHOW_WS_CLEANUP'Webspace Clean-up';
  105.         $translation_table[TK_CTRL_ACTION_SHOW_ARCHIVE_PAGE'Spaceballs';
  106.         $translation_table[TK_CTRL_LABEL_SVN_CMD'SVN-Command';
  107.         $translation_table[TK_CTRL_ACTION_SVN_CMD'execute!';
  108.         $translation_table[TK_CTRL_ACTION_SVN_HELP'SVN Help';
  109.         $translation_table[TK_CTRL_ACTION_SWITCH_TO_HEAD'Switch to latest revision (head)';
  110.         $translation_table[TK_CTRL_LABEL_SWITCH_TO_TAG'Tag';
  111.         $translation_table[TK_CTRL_LABEL_SWITCH_TO_BRANCH'Branch';
  112.         $translation_table[TK_CTRL_ACTION_SWITCH'switch';
  113.         $translation_table[TK_CTRL_ACTION_OPEN_PROJECTPAGE'Open project<br/>page separatly';
  114.         $translation_table[TK_CTRL_LABEL_PIN_PROJECTPAGE'Pin<br/>project page';
  115.         $translation_table[TK_CTRL_LABEL_SEPARATE_RESULT_WINDOW'Show result in<br/>separate window';
  116.         $translation_table[TK_CTRL_LABEL_SHOW_SWITCHBAR'Show<br/>switch bar';
  117.         $translation_table[TK_CTRL_LABEL_SHOW_CMDBAR'Show<br/>command bar';
  118.         $translation_table[TK_CTRL_LABEL_FRAME_SIZE'Set frame size to';
  119.         $translation_table[TK_CTRL_LABEL_FRAME_WIDTH'';
  120.         $translation_table[TK_CTRL_LABEL_FRAME_HEIGHT'x';
  121.         $translation_table[TK_CTRL_ACTION_SET_FRAME_SIZE'go';
  122.         $translation_table[TK_CTRL_ACTION_MINIMIZE'Compact';
  123.         $translation_table[TK_CTRL_ACTION_SWC_HELP'Help';
  124.         $translation_table[TK_CTRL_PAGE_TITLE'SVN Web Control';
  125.         $translation_table[TK_CTRL_LABEL_CREATE_ARCHIVE'Create a Spaceball from current Webspace named';
  126.         $translation_table[TK_CTRL_ACTION_CREATE_ARCHIVE'Create';
  127.         $translation_table[TK_CTRL_LABEL_OVERWRITE_ARCHIVE'Overwrite Spaceball if exists';
  128.         $translation_table[TK_DETAILS_DEFAULT_TEXT'No command';
  129.         $translation_table[TK_DETAILS_LABEL_CMDLINE'Command line';
  130.         $translation_table[TK_DETAILS_LABEL_RESULT_CODE'Result';
  131.         $translation_table[TK_DETAILS_LABEL_OUTPUT'Output';
  132.         $translation_table[TK_DETAILS_LABEL_ERROR'Error';
  133.         $translation_table[TK_DETAILS_NO_ERROR'No error';
  134.         $translation_table[TK_INDEX_PAGE_TITLE'SVN Web Control';
  135.         $translation_table[TK_ARCHIVE_PAGE_TITLE'Spaceballs - Webspace File Archives';
  136.         $translation_table[TK_CTRL_ACTION_NO_PROJECT'- Select a project -';
  137.         $translation_table[TK_INDEX_PROJECT_FRAME_TITLE'Project page';
  138.         $translation_table[TK_PATH_TO_SWC_HELP'./inc/resources/en_swc_help.php';
  139.         $translation_table[TK_ERROR_ARCHIVE_DIR_IS_FILE_NOT_DIR__PATH'Spaceball root directory &gt;%s&lt; is not a directory.<br/>Please check project configuration (GetArchiveDir()).';
  140.         $translation_table[TK_ERROR_ARCHIVE_DIR_NOT_EXIST__PATH'Spaceball root directory &gt;%s&lt; is not accessable.<br/>Please check project configuration (GetArchiveDir()) and directory rights.';
  141.         $translation_table[TK_RESULT_NO_SPACEBALLS'No Spaceballs available.';
  142.         $translation_table[TK_SB_LIST_LABEL_SPACEBALLS'Spaceball';
  143.         $translation_table[TK_SB_LIST_LABEL_REVISION'Revision';
  144.         $translation_table[TK_SB_LIST_LABEL_TIMESTAMP'Created at';
  145.         $translation_table[TK_SB_LIST_LABEL_FILESIZE'Ballsize';
  146.         $translation_table[TK_ERROR_SPACEBALL_EXISTS'Spaceball could not be created because file exists and cannot be overwritten.';
  147.         $translation_table[TK_ERROR_SPACEBALL_EXISTS_NO_OVERWRITE'Spaceball already exists and shall not be overwritten.';
  148.         $translation_table[TK_SB_MSG_SPACEBALL_CREATION_SUCCESSFULL__NAME'Created Spaceball %s successfully';
  149.         $translation_table[TK_ERROR_SPACEBALL_EMPTY_WEBSPACE'Webspace is empty. Spaceball is not created.';
  150.         $translation_table[TK_ERROR_SPACEBALL_GENERAL_ERROR'Spaceball could not be created.';
  151.     }
  152.     if (!isset($translation_table[$key])){
  153.         return '!!-en-Key-is-missing:'.$key;
  154.     }
  155.     return $translation_table[$key];
  156. }
  157.  
  158. /*
  159.  * Returns a localised timestamp representation 
  160.  * for the given timestamp.
  161.  * @param int $timestamp A numerical PHP timestamp 
  162.  * (as e.g. provided by <b>strtotime()</b> command.
  163.  * @param boolean $short Whether or not (default) the timestamp
  164.  * should be returned in short or long format.
  165.  * @return string A localised timestamp string.
  166.  * 
  167.  * @since v1.0.0
  168.  */
  169. /** @ignore */
  170. function FormatTimestamp($timestamp$short false){
  171.     $ts date('Y-m-d H:i'$timestamp);
  172.     if (!$short){
  173.         $ts .= ' (CW '.date('W'$timestamp).', '.date('z.'$timestamp).' DoY)';
  174.     }
  175.     return $ts
  176. }
  177.  
  178. ?>

Documentation generated on Fri, 03 Nov 2006 18:44:58 +0100 by phpDocumentor 1.3.0RC6
for sTEFANs POWERED BY eBC.bz