Modify translation for value submit button of the joomla login module - joomla

i want to translate the submit value of the login joomla module
<input type="submit" name="Submit" class="button" value="<?php echo JText::_('JLOGIN') ?>" />
Exactly where can i find "JLOGIN" text and thnks in advance.

In Joomla 1.6 or above there is a user interface for overriding specific language strings in the language manager. Go to the language manager and select the overrides tab. There are detailed instructions for use in the UI.

These are always defined in your language ini files. A quick search shows: language/en-GB/en-GB.ini. The en-GB directory will vary depending on your default language.
The current value of this text is Log in, for en-GB that is.

Related

Firefox built in dev Inspector tool, browser bug with hidden input in HTML

I use Normal Firefox with Dev Tool.
The Explanation: I use hidden input fields to store some data. So I have noticed twice, that the browser is mixing all input fields completely up, it does not understand what is what at all.
Simplified example HTML on server:
<input id="test" type="hidden" value="Hello there"><input id="something" type="hidden" value="0">
Firefox gets above HTML from server (clear cache, reload the page, nothing fixes this):
<input id="test" type="hidden" value="0"><input id="something" type="hidden" value="Hello there">
(and now thinks that id 1 is id 2 etc)
Once I Restart my browser, all gets normal again. (Like example shows, there is no human error, just nonsense) Anyone else had this, if not, then look out before hurting yourself. I don't know if normal users may actually experience this but they may. Someone can explain this...

How can I edit divs with 'contenteditable' property with Laravel Dusk?

I have a wysiwyg editor in my project, that I need to test and it has a contenteditable property. I cant type directly, as it is a simple <trix-editor> tag:
<trix-editor input="28" placeholder="Type your message here..." contenteditable="" role="textbox" trix-id="2" toolbar="trix-toolbar-2">
</trix-editor>
As you can notice, it has contenteditable attribute. I can edit it easily with Selenium IDE when running Selenium tests and it shows command edit content.
Can the same be done with Laravel Dusk?
You can edit the content with keys():
$browser->keys('[trix-id="2"]', 'Text')

AntiSamy is not allowing me to input form fields

I have a RichTextArea from CKEditor. And I recently made some changes to sanitize HTML input.
Normal things go through fine but any form fields like checkboxes, textareas, radio buttons etc are stripped out.(I am using getValidSafeHTML to sanitize my HTML).
I have tried different policy files like this thing here which is supposed to allow everything
http://code.google.com/p/owaspantisamy/downloads/detail?name=antisamy-anythinggoes-1.4.4.xml
For example,
<form method="get" name="sampleform"><input name="radio" type="radio" /> </form>
becomes
<form method="get" name="sampleform"> </form>
Anybody have any idea why this is happening?
Thanks in advance
I just found the reason why this is happening... I was using the antisamy-1.3.jar. This looks like a bug in this version of antisamy. I needed to upgrade to antisamy-1.5.3.
So just check the versions of your antisamy jars. You might be facing the same issue

Search-form action attribute with Advanced AJAX Page Loader wordpress plugin returns "more than one title tag on the page.." warning in debug mode

I'm trying to enable search functionality of the Advanced AJAX Page Loader plugin on a custom wordpress theme I'm building, but after I enter keyword into search and hit enter, loader.gif keeps on spinning and I get this message in debug mode : "WARNING: You seem to have more than one title tag on the page, this is going to cause some major problems so page title changing is disabled". It also passes the url of the website twice into the address bar and I believe this has something to do with the action attribute that's being passed by the form.
This is the site in question: http://natalija.co.nf
I left the debug mode of the AAPL plugin on for now
This is my searchform.php code:
<form method="get" id="searchform" class="searchform" action="<?php bloginfo('url'); ?>">
<input type="submit" id="searchsubmit" value="" class="btn" />
<input type="text" size="10" name="s" id="s" value="" onfocus="if(this.value==this.defaultValue)this.value='';" onblur="if(this.value=='')this.value=this.defaultValue;"/>
</form>
I managed to ajaxify the theme with this plugin but I 'm having trouble getting the search to work properly so I was wondering if anyone here can help me out with this? It is driving me crazy.
I solved it. The code in search.php needs to be wrapped with a div class="searchform".

Internationalization at HTML5

How can I change the messages of HTML5 (or doses it change according to browser's language automatically?)
For example:
<!DOCTYPE HTML>
<html>
<body>
<form action="demo_form.asp" method="get">
E-mail: <input type="email" name="user_email" /><br />
<input type="submit" />
</form>
</body>
</html>
When I run this code (from W3schools) at Opera and write a non valid e-mail address it says
Please enter a valid email address
How can I change it to another language instead of English or change the warning to what I want?
Well there are different options.
You can disable the form validation of the form (or the field) with formnovalidate and provide a custom error message with javascript (and serverside ofcourse).
You can use javascript and use the .setCustomValidity() method to provide a (custom) error message but it is intended to add extra rules to the field.
You can use x-moz-errormessage to set a custom errormessage. But using this you need to know that this is not a standard.
There are no built-in internationalisation solutions currently in HTML(5) and all proposals seem dead. However you may find the Passive Localisation JavaScript library of some use. Online demonstration can be found here.

Resources