简体   繁体   English

此表单值是什么意思?

[英]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. 我现在正在学习PHP,我想知道"<?php _e('Pay for order', 'jigoshop'); ?>"的这种形式的含义是"<?php _e('Pay for order', 'jigoshop'); ?>"

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

Thanks 谢谢

<?php _e('Pay for order', 'jigoshop'); ?>" /> <?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. <?php _e('Pay for order', 'jigoshop'); ?>" />是一个函数调用,它将返回一个值,该值将显示在输入框中。这看起来像wordpress函数,但也可能是其他东西。也请将该问题标记为WordPress,以便您获得更相关的信息回答。

Here is a wordpress forum which explains the _e function: http://wordpress.org/support/topic/ltphp-_emystringvalue-sandbox-gt 这是一个解释_e功能的wordpress论坛: http : _e

I'm guessing that you're using WordPress. 我猜您正在使用WordPress。 In that case, _e is a function that echos out a translated string, based on the language that a user decides to use. 在这种情况下, _e是根据用户决定使用的语言回显已翻译字符串的函数。 If you want to read more about translating WordPress, read WordPress's own article about translation . 如果您想了解有关翻译WordPress的更多信息,请阅读WordPress自己有关翻译的文章

_e() is a function of WordPress to echo text. _e()是WordPress的功能,可回显文本。

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. 似乎毫无意义,但使用_e()可为该函数所回显的所有字符串提供翻译功能。

_e() is a funtion related to localization of text related to localization (also known as translation) in Wordpress. _e()是与在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 . 在上述情况下, 'Pay for order'是域jigoshop

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM