Proyectos de Subversion Moodle

Rev

| Ultima modificación | Ver Log |

Rev Autor Línea Nro. Línea
1 efrain 1
<?php
2
 
3
/**
4
 * Licensed to Jasig under one or more contributor license
5
 * agreements. See the NOTICE file distributed with this work for
6
 * additional information regarding copyright ownership.
7
 *
8
 * Jasig licenses this file to you under the Apache License,
9
 * Version 2.0 (the "License"); you may not use this file except in
10
 * compliance with the License. You may obtain a copy of the License at:
11
 *
12
 * http://www.apache.org/licenses/LICENSE-2.0
13
 *
14
 * Unless required by applicable law or agreed to in writing, software
15
 * distributed under the License is distributed on an "AS IS" BASIS,
16
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17
 * See the License for the specific language governing permissions and
18
 * limitations under the License.
19
 *
20
 * PHP Version 7
21
 *
22
 * @file     CAS/Language/Spanish.php
23
 * @category Authentication
24
 * @package  PhpCAS
25
 * @author   Iván-Benjamín García Torà <ivaniclixx@gmail.com>
26
 * @license  http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
27
 * @link     https://wiki.jasig.org/display/CASC/phpCAS
28
 */
29
 
30
/**
31
 * Spanish language class
32
 *
33
 * @class    CAS_Languages_Spanish
34
 * @category Authentication
35
 * @package  PhpCAS
36
 * @author   Iván-Benjamín García Torà <ivaniclixx@gmail.com>
37
 * @license  http://www.apache.org/licenses/LICENSE-2.0  Apache License 2.0
38
 * @link     https://wiki.jasig.org/display/CASC/phpCAS
39
 *
40
 
41
 * @sa @link internalLang Internationalization @endlink
42
 * @ingroup internalLang
43
 */
44
class CAS_Languages_Spanish implements CAS_Languages_LanguageInterface
45
{
46
 
47
    /**
48
     * Get the using server string
49
     *
50
     * @return string using server
51
     */
52
    public function getUsingServer()
53
    {
54
        return 'usando servidor';
55
    }
56
 
57
    /**
58
     * Get authentication wanted string
59
     *
60
     * @return string authentication wanted
61
     */
62
    public function getAuthenticationWanted()
63
    {
64
        return '¡Autentificación CAS necesaria!';
65
    }
66
 
67
    /**
68
     * Get logout string
69
     *
70
     * @return string logout
71
     */
72
    public function getLogout()
73
    {
74
        return '¡Salida CAS necesaria!';
75
    }
76
 
77
    /**
78
     * Get the should have been redirected string
79
     *
80
     * @return string should habe been redirected
81
     */
82
    public function getShouldHaveBeenRedirected()
83
    {
84
        return 'Ya debería haber sido redireccionado al servidor CAS. Haga click <a href="%s">aquí</a> para continuar.';
85
    }
86
 
87
    /**
88
     * Get authentication failed string
89
     *
90
     * @return string authentication failed
91
     */
92
    public function getAuthenticationFailed()
93
    {
94
        return '¡Autentificación CAS fallida!';
95
    }
96
 
97
    /**
98
     * Get the your were not authenticated string
99
     *
100
     * @return string not authenticated
101
     */
102
    public function getYouWereNotAuthenticated()
103
    {
104
        return '<p>No estás autentificado.</p><p>Puedes volver a intentarlo haciendo click <a href="%s">aquí</a>.</p><p>Si el problema persiste debería contactar con el <a href="mailto:%s">administrador de este sitio</a>.</p>';
105
    }
106
 
107
    /**
108
     * Get the service unavailable string
109
     *
110
     * @return string service unavailable
111
     */
112
    public function getServiceUnavailable()
113
    {
114
        return 'El servicio `<b>%s</b>\' no está disponible (<b>%s</b>).';
115
    }
116
}
117
?>