Which of the below is recommended when creating msgid a PO file?
msgid "Available Balance:"
or
msgid "Available Balance"
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.
Sign up to join this communityThe use of each depends on your choice. If, for example, the text is in front of a field, I think it is better to use the symbol: In general, you should see if it really needs it or not. You do not have to use it or not. In the text you sent, the first option is more appropriate because the intention is to display a value in front of or below this text
Available Balance
since it can be used for other purposes. So that I don't have to have two almost identical keywords - one with :
and one without. However, with that regard, I need to add a :
in my PHP code.
May 31, 2022 at 14:22
__( 'Available Balance:', 'my-plugin' )
or__( 'Available Balance', 'my-plugin' )
? They're two different strings as far as the code is concerned. If you've got both, you should translate both.__( 'Available Balance', 'my-plugin' )
so I can use this for other purposes too,