Author Topic: Customization beyond wp-config.php Translation tweaks  (Read 2594 times)

3rdmartini

  • Newbie
  • Posts: 2
Customization beyond wp-config.php Translation tweaks
« on: February 04, 2010, 09:54:45 pm »
I wanted to get rid of the word "Podcast" in the text link for downloading an episode, and I followed the directions for adding define() calls in wp-config.php.

That works fine. However, the colon is still showing up.  I just want the "Download" link to show up by itself since I'm using CSS to style it to look like a button.

Where in the plugin code is that colon so I can remove it?

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: Customization beyond wp-config.php Translation tweaks
« Reply #1 on: February 05, 2010, 12:07:05 am »
There should not be any colon printed with the download/play in new window links.

Can you reply with a link where a Colon is being printed?

3rdmartini

  • Newbie
  • Posts: 2
Re: Customization beyond wp-config.php Translation tweaks
« Reply #2 on: February 10, 2010, 05:14:20 pm »
You can see what's going on at http://theyettobenamedpodcast.com.

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: Customization beyond wp-config.php Translation tweaks
« Reply #3 on: February 11, 2010, 09:11:04 am »
Okay I got it.

The portion before and including the colon is the word Podcast + : Sorry for the confusion, I thought you meant the actual text for the download link.

The next release will include a new define where you can specify the separator character.

Code: [Select]
define("POWERPRESS_LINKS_SEPARATOR", ":" );

If you don't want to wait for the release, you can manually download and install the current development version, which should be pretty stable. Development download link: http://downloads.wordpress.org/plugin/powerpress.zip

jeffrey

  • Newbie
  • Posts: 4
Re: Customization beyond wp-config.php Translation tweaks
« Reply #4 on: May 19, 2010, 05:15:45 pm »
we have the colon problem running version 1.0.8, angelo. is this still something that might be fixed?

thanks!

jeff

ps we just started using blubrry and everyone here thinks it's great.  :D

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: Customization beyond wp-config.php Translation tweaks
« Reply #5 on: May 20, 2010, 04:04:24 pm »
Read the previous post I posted, it explains how to change the colon to anything you want.

jeffrey

  • Newbie
  • Posts: 4
Re: Customization beyond wp-config.php Translation tweaks
« Reply #6 on: May 21, 2010, 10:13:05 am »
i added the new line of code to what i already had, even though it's nearly identical to line 4:

Code: [Select]
define("POWERPRESS_LINKS_TEXT", "" );
define("POWERPRESS_PLAY_IN_NEW_WINDOW_TEXT", "" );
define("POWERPRESS_DOWNLOAD_TEXT", "" );
define("POWERPRESS_LINK_SEPARATOR", "" );
define("POWERPRESS_LINKS_SEPARATOR", "" );
define("POWERPRESS_DURATION_TEXT", "" );

with or without  the new code, the colon remains here - http://blog.thomsonsafaris.com/kilimanjaro/erica-davis-podcast - and in the blog of the original poster - http://theyettobenamedpodcast.com/.

thanks for your help!

jeff

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: Customization beyond wp-config.php Translation tweaks
« Reply #7 on: May 21, 2010, 03:58:09 pm »
Are you adding the lines to the top or to the bottom of the wp-config.php? IF you add them to the very bottom, below the require wp-settings.php line, then they will not apply. I would add them near the top, just make sure they are within the <?php   ..  ?> tags.

jeffrey

  • Newbie
  • Posts: 4
Re: Customization beyond wp-config.php Translation tweaks
« Reply #8 on: May 21, 2010, 04:37:43 pm »
the lines are up high enough and as you can see from the link to our blog, all of the text disappeared, as desired, except for the pesky colon.

i can add or remove text via
Code: [Select]
define("POWERPRESS_LINK_SEPARATOR", "" ); but
Code: [Select]
define("POWERPRESS_LINKS_SEPARATOR", "" ); has no impact.

i appreciate your help, angelo.

jeff

angelo

  • CIO, RawVoice
  • Administrator
  • Hero Member
  • *****
  • Posts: 4483
Re: Customization beyond wp-config.php Translation tweaks
« Reply #9 on: May 22, 2010, 12:21:01 pm »
Oh got it. the following is not a valid define for PowerPress, note the plural S in LINKS

Code: [Select]
define("POWERPRESS_LINKS_SEPARATOR", "" );
The define you are looking for is:

Code: [Select]
define("POWERPRESS_TEXT_SEPARATOR", "");
The "Text Separator" uses a colon by default. Sorry for the confusion.

jeffrey

  • Newbie
  • Posts: 4
Re: Customization beyond wp-config.php Translation tweaks
« Reply #10 on: May 24, 2010, 10:19:24 am »
works like a charm, angelo... thanks!

jeff