novicePrgrmr
novicePrgrmr

Reputation: 19385

what does this form value mean?

I know this is an easy one.... but

I am learning PHP right now and I want to know what the value "<?php _e('Pay for order', 'jigoshop'); ?>" means in this form.

<input type="submit" class="button-alt" name="pay" id="place_order" value="<?php _e('Pay for order', 'jigoshop'); ?>" />

Thanks

Upvotes: 0

Views: 944

Answers (4)

Manoj Rammoorthy
Manoj Rammoorthy

Reputation: 1430

_e() is a funtion related to localization of text related to localization (also known as translation) in Wordpress.

<input type="submit" value="<?php _e('Pay for order', 'jigoshop'); ?>">

in the above case 'Pay for order' is the value that gets echo'ed for domain jigoshop.

Upvotes: 0

Adrian
Adrian

Reputation: 122

_e() is a function of WordPress to echo text.

In this case

value="<?php _e('Pay for order','jigoshop'); ?> "

will translate into

value="Pay for order"

It seems to have no sense at all, but using _e() provides translation capabilities to all the strings echoed with that function.

Upvotes: 1

Robert
Robert

Reputation: 3074

<?php _e('Pay for order', 'jigoshop'); ?>" /> is a function call which will return a value that will show in the input box. This looks like a wordpress function but could be something else as well. Please tag the question as WordPress as well so you get a more relevant answer.

Here is a wordpress forum which explains the _e function: http://wordpress.org/support/topic/ltphp-_emystringvalue-sandbox-gt

Upvotes: 4

Kevin Ji
Kevin Ji

Reputation: 10499

I'm guessing that you're using WordPress. In that case, _e is a function that echos out a translated string, based on the language that a user decides to use. If you want to read more about translating WordPress, read WordPress's own article about translation.

Upvotes: 2

Related Questions