how to change Log In block text

how to change Log In block text

by m question -
Number of replies: 2

Hi


I want to change "Log in" in log in block in English language pack



I changed its translation in Arabic by the following steps:

SA>Labguage>customisation >arabic

 Only strings containing: Log in

String pluginname

I changed the translation and it worked

I want to change the English text to

when I follow same steps in the english pack 

I don't find the string pluginname

I tried to change other strings for example plugin 

but it didn't work


thanks









Average of ratings: -
In reply to m question

Re: how to change Log In block text

by Randy Thornton -
Picture of Documentation writers

In the default English language pack, the name of the Login block is "Login" (one word, no space) as set in component of 'block_login', stringidentifier of 'pluginname'.

The wording on the Submit button for the Login block is from core, with stringidentifier of 'login' with a standard text of "Log in" (two words, with space.)




In reply to m question

Re: how to change Log In block text

by Rahul Rai -

Hi

This is the English language file for your block. If you are not an English speaker, you can replace 'en' with your appropriate language code. All language files for blocks go under the /lang subfolder of the block's installation folder.

Moodle 2.0 and above require a name for our plugin to show in the upgrading page. We set this value, along with the capabilities we created and any other language strings we wish to use within the block, in a language package as previously mentioned (the same file where we put our string for the plugin title).

The capabilities added above need descriptions for pages that allow setting of capabilities. These should also be added to the language file.

<?php
$string['pluginname'] = 'Simple HTML block';
$string['simplehtml'] = 'Simple HTML';
$string['simplehtml:addinstance'] = 'Add a new simple HTML block';
$string['simplehtml:myaddinstance'] = 'Add a new simple HTML block to the My Moodle page';