Support

Price

Posted: April 2, 2013 at 11:57 am

Viewing 15 reply threads


Randy Tantlinger

April 2, 2013 at 11:57 am

I need to add “cost per player” next to the event price. Any suggestions on how to do this or alternatives to make sure that people know that the cost shown is per player? (golf tournament)


Randy Tantlinger

April 2, 2013 at 12:06 pm

Does a “Text Area” in the questions just add content to the page instead of being an actual question? Maybe I can use that to add content explaining that it’s cost per player?


Randy Tantlinger

April 2, 2013 at 12:28 pm

Nevermind I just answered my second question… a text area is the ability for the person to add additional text. (like the reply to area of this support forum)

Maybe I should just do a check box that says “Do you understand that cost is per player?” Unless someone can think of something else. I really want it to say “per player” next to the price.


Josh

  • Support Staff

April 2, 2013 at 2:15 pm

Hi Randy,

There are ways to do this, most of them involve making edits to template files where ever price is displayed.

A really simple way that will change this across most instances would be to “translate” the “Price” text string so it displays: “Price per player” instead of just “Price”. Here’s a link to our documentation that shows you how to do this:

https://eventespresso.com/wiki/how-to-change-wording-with-poedit/


Randy Tantlinger

April 3, 2013 at 8:02 pm

So the .po file acts as a modifier to the .index file language when placed within the same folder without having to actually upate the .index file itself? I just have to make sure it’s in the same folder next to .index?


Randy Tantlinger

April 3, 2013 at 8:07 pm

(I guess it actually creates a .mo file that modifies it.. not .po)


Randy Tantlinger

April 3, 2013 at 8:24 pm

Stupid question but I downloaded and installed Poedit.. I then went to download the .po file for US I clicked the link. I don’t see an option to download this file I just see “copy to clipboard” but I cannot paste this source text area on Poedit. It says I have to download this file and then open it with Poedit. All this is new to me sorry!


Dean

April 4, 2013 at 2:30 am

Hi Randy,

Not a stupid question at all, Github doesnt make things easy sometimes (a voice of experience here lol).

I find the best thing to do is to right click the RAW link on the right just above the code and save link as. http://d.pr/i/cAJH


Randy Tantlinger

April 4, 2013 at 4:23 pm

I’m almost there… I found the wording I want to change and then translated it to the cost per player instead of “cost”. I went to save it as a .mo (as instructed in the step by step) but it only allows me to save it as a .po file. Does it need to be a .mo file? (maybe I can just save it by putting that extension in the save as name if it really does need to be a .mo file and not .po. Then I’m to drop this file in the “languages” folder. I know how to do that (the only other file in there is index.php) how does it know to use this file that we are placing in that folder? Thanks for your help!


Randy Tantlinger

April 4, 2013 at 4:30 pm

Also so I am clear the file I would upload if the answer to the question above is .mo the file name would be event_espresso-en_US.mo ? Why within Github is there event_espresso-en_US.mo and event_espresso-en_US.po when I’m told to download event_espresso-en_US.po then convert to .mo… soo confusing!


Randy Tantlinger

April 4, 2013 at 4:38 pm

I changed “Price:” not “Cost” 🙂 So that the registration page reads “Start Time: , End Time: , Price Per Player:” I was using the word Cost instead of price FYI…


Dean

April 5, 2013 at 5:55 am

Hi Randy,

Yes there is a small but rather major bit missing from that article, so I will get it updated.

In your wp-config.php file which is in the root directory of your WordPress installation, there is a line that reads

define('WPLANG', '');

You need to change it to

define('WPLANG', 'en_US');

Of course if you are using a language other than American English you would need to change it accordingly.


Randy Tantlinger

April 5, 2013 at 7:12 pm

Thanks for that info… just let me know the answer to the other major question I had regarding .po and .mo which was that poedit only allows me to save as a .po file but the instructions say I need to upload a newly converted .mo file. I just need to know what to do THANK YOU!


Sidney Harrell

April 7, 2013 at 7:22 pm

This might help: http://codex.wordpress.org/Translating_WordPress#gettext_files. It helped me, since I didn’t know a .po file from a .mo file. Poedit probably makes you save the modified file as a .po file, then has a different tool for using that .po file to generate a .mo file.


Randy Tantlinger

April 10, 2013 at 5:42 pm

Just so everyone knows who ever reads this if you put the downloaded .po file in a folder on your desktop, make the necessary changes and then choose “save” and not try to “save as” like I did… it will automatically put a .mo file within the same folder that you have the .po file saved.  This should maybe be put in the directions?  Seems obvious but I spent a while looking around on how to save as a .mo file because the “save as” option only let you save as a .po file.


Randy Tantlinger

April 10, 2013 at 5:46 pm

The instructions do say “save”, then upload the newly generated .mo file but it was a little confusing.  Thank you Sydney and Dean for your time

Viewing 15 reply threads

The support post ‘Price’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso