Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 450... Línea 450...
450
            'Some of these keywords already exist' => 'someKeywordsExits',
450
            'Some of these keywords already exist' => 'someKeywordsExits',
451
            'Assistive Technologies label' => 'a11yTitle:label',
451
            'Assistive Technologies label' => 'a11yTitle:label',
452
            'width' => 'width',
452
            'width' => 'width',
453
            'height' => 'height',
453
            'height' => 'height',
454
            'Missing main library @library' => 'missingmainlibrary',
454
            'Missing main library @library' => 'missingmainlibrary',
-
 
455
            'Rotate Left' => 'rotateLeft',
-
 
456
            'Rotate Right' => 'rotateRight',
-
 
457
            'Crop Image' => 'cropImage',
-
 
458
            'Confirm Crop' => 'confirmCrop',
-
 
459
            'Cancel Crop' => 'cancelCrop',
455
        ];
460
        ];
Línea 456... Línea 461...
456
 
461
 
457
        if (isset($translationsmap[$message])) {
462
        if (isset($translationsmap[$message])) {
458
            return get_string($translationsmap[$message], 'core_h5p', $replacements);
463
            return get_string($translationsmap[$message], 'core_h5p', $replacements);
Línea 1755... Línea 1760...
1755
     *
1760
     *
1756
     * @param string $type Type of messages, e.g. 'info', 'error', etc
1761
     * @param string $type Type of messages, e.g. 'info', 'error', etc
1757
     * @param string $newmessage The message
1762
     * @param string $newmessage The message
1758
     * @param string $code The message code
1763
     * @param string $code The message code
1759
     */
1764
     */
1760
    private function set_message(string $type, string $newmessage = null, string $code = null) {
1765
    private function set_message(string $type, ?string $newmessage = null, ?string $code = null) {
1761
        global $SESSION;
1766
        global $SESSION;
Línea 1762... Línea 1767...
1762
 
1767
 
1763
        // We expect to get out an array of strings when getting info
1768
        // We expect to get out an array of strings when getting info
1764
        // and an array of objects when getting errors for consistency across platforms.
1769
        // and an array of objects when getting errors for consistency across platforms.