Make WordPress Core

Opened 17 years ago

Closed 17 years ago

#4088 closed defect (bug) (wontfix)

XML output (rss, atom, rdf ...) should translate the (more) link

Reported by: devil1591's profile devil1591 Owned by: rob1n's profile rob1n
Milestone: Priority: low
Severity: minor Version: 2.2
Component: General Keywords: rss
Focuses: Cc:


In the XML output like rss, atom, the (more) link is not translated.
This is hardcoded in wp-include/feed.php

function the_content_rss($more_link_text='(more...)', $stripteaser=0, $more_file='', $cut = 0, $encode_html = 0)

Change History (6)

#1 @rob1n
17 years ago

It's hardcoded in get_the_content(), to be specific. I'm not sure how we would go about this...

#2 @devil1591
17 years ago

maybe doing something like :

if ($more_link_text == '(more...)')
	$more_link_text = __('(more...)');

#3 @rob1n
17 years ago

  • Milestone changed from 2.2 to 2.3
  • Owner changed from anonymous to rob1n

#4 @nbachiyski
17 years ago

  • Resolution set to wontfix
  • Status changed from new to closed

Usually in the occasion of optional parameters we leave the i18n for the caller.

So, if somebody wants it translated, one should call it this way: the_content_rss(__('(more...)')...).

The call to the_content_rss should be tracked in the source and the patch should be applied there.

#5 @rob1n
17 years ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

#6 @rob1n
17 years ago

  • Milestone 2.3 deleted
  • Resolution set to wontfix
  • Status changed from reopened to closed
Note: See TracTickets for help on using tickets.