ChineseSimplified.php 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. /**
  3. * Licensed to Jasig under one or more contributor license
  4. * agreements. See the NOTICE file distributed with this work for
  5. * additional information regarding copyright ownership.
  6. *
  7. * Jasig licenses this file to you under the Apache License,
  8. * Version 2.0 (the "License"); you may not use this file except in
  9. * compliance with the License. You may obtain a copy of the License at:
  10. *
  11. * http://www.apache.org/licenses/LICENSE-2.0
  12. *
  13. * Unless required by applicable law or agreed to in writing, software
  14. * distributed under the License is distributed on an "AS IS" BASIS,
  15. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  16. * See the License for the specific language governing permissions and
  17. * limitations under the License.
  18. *
  19. * PHP Version 5
  20. *
  21. * @file CAS/Language/ChineseSimplified.php
  22. * @category Authentication
  23. * @package PhpCAS
  24. * @author Pascal Aubry <pascal.aubry@univ-rennes1.fr>, Phy25 <caslang@phy25.com>
  25. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
  26. * @link https://wiki.jasig.org/display/CASC/phpCAS
  27. */
  28. /**
  29. * Chinese Simplified language class
  30. *
  31. * @class CAS_Languages_ChineseSimplified
  32. * @category Authentication
  33. * @package PhpCAS
  34. * @author Pascal Aubry <pascal.aubry@univ-rennes1.fr>, Phy25 <caslang@phy25.com>
  35. * @license http://www.apache.org/licenses/LICENSE-2.0 Apache License 2.0
  36. * @link https://wiki.jasig.org/display/CASC/phpCAS
  37. *
  38. * @sa @link internalLang Internationalization @endlink
  39. * @ingroup internalLang
  40. */
  41. class CAS_Languages_ChineseSimplified implements CAS_Languages_LanguageInterface
  42. {
  43. /**
  44. * Get the using server string
  45. *
  46. * @return string using server
  47. */
  48. public function getUsingServer()
  49. {
  50. return '连接的服务器';
  51. }
  52. /**
  53. * Get authentication wanted string
  54. *
  55. * @return string authentication wanted
  56. */
  57. public function getAuthenticationWanted()
  58. {
  59. return '请进行 CAS 认证!';
  60. }
  61. /**
  62. * Get logout string
  63. *
  64. * @return string logout
  65. */
  66. public function getLogout()
  67. {
  68. return '请进行 CAS 登出!';
  69. }
  70. /**
  71. * Get the should have been redirected string
  72. *
  73. * @return string should habe been redirected
  74. */
  75. public function getShouldHaveBeenRedirected()
  76. {
  77. return '你正被重定向到 CAS 服务器。<a href="%s">点击这里</a>继续。';
  78. }
  79. /**
  80. * Get authentication failed string
  81. *
  82. * @return string authentication failed
  83. */
  84. public function getAuthenticationFailed()
  85. {
  86. return 'CAS 认证失败!';
  87. }
  88. /**
  89. * Get the your were not authenticated string
  90. *
  91. * @return string not authenticated
  92. */
  93. public function getYouWereNotAuthenticated()
  94. {
  95. return '<p>你没有成功登录。</p><p>你可以<a href="%s">点击这里重新登录</a>。</p><p>如果问题依然存在,请<a href="mailto:%s">联系本站管理员</a>。</p>';
  96. }
  97. /**
  98. * Get the service unavailable string
  99. *
  100. * @return string service unavailable
  101. */
  102. public function getServiceUnavailable()
  103. {
  104. return '服务器 <b>%s</b> 不可用(<b>%s</b>)。';
  105. }
  106. }