Japanese.php 3.3 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/Japanese.php
  22. * @category Authentication
  23. * @package PhpCAS
  24. * @author fnorif <fnorif@yahoo.co.jp>
  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. * Japanese language class. Now Encoding is UTF-8.
  30. *
  31. * @class CAS_Languages_Japanese
  32. * @category Authentication
  33. * @package PhpCAS
  34. * @author fnorif <fnorif@yahoo.co.jp>
  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. **/
  39. class CAS_Languages_Japanese implements CAS_Languages_LanguageInterface
  40. {
  41. /**
  42. * Get the using server string
  43. *
  44. * @return string using server
  45. */
  46. public function getUsingServer()
  47. {
  48. return 'サーバーを使っています。';
  49. }
  50. /**
  51. * Get authentication wanted string
  52. *
  53. * @return string authentication wanted
  54. */
  55. public function getAuthenticationWanted()
  56. {
  57. return 'CASによる認証を行います。';
  58. }
  59. /**
  60. * Get logout string
  61. *
  62. * @return string logout
  63. */
  64. public function getLogout()
  65. {
  66. return 'CASからログアウトします!';
  67. }
  68. /**
  69. * Get the should have been redirected string
  70. *
  71. * @return string should habe been redirected
  72. */
  73. public function getShouldHaveBeenRedirected()
  74. {
  75. return 'CASサーバに行く必要があります。自動的に転送されない場合は <a href="%s">こちら</a> をクリックして続行します。';
  76. }
  77. /**
  78. * Get authentication failed string
  79. *
  80. * @return string authentication failed
  81. */
  82. public function getAuthenticationFailed()
  83. {
  84. return 'CASによる認証に失敗しました。';
  85. }
  86. /**
  87. * Get the your were not authenticated string
  88. *
  89. * @return string not authenticated
  90. */
  91. public function getYouWereNotAuthenticated()
  92. {
  93. return '<p>認証できませんでした。</p><p>もう一度リクエストを送信する場合は<a href="%s">こちら</a>をクリック。</p><p>問題が解決しない場合は <a href="mailto:%s">このサイトの管理者</a>に問い合わせてください。</p>';
  94. }
  95. /**
  96. * Get the service unavailable string
  97. *
  98. * @return string service unavailable
  99. */
  100. public function getServiceUnavailable()
  101. {
  102. return 'サービス `<b>%s</b>\' は利用できません (<b>%s</b>)。';
  103. }
  104. }
  105. ?>