WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#4088 closed defect (bug) (wontfix)

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

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

Description

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)

comment:1 rob1n7 years ago

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

comment:2 devil15917 years ago

maybe doing something like :

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

comment:3 rob1n7 years ago

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

comment:4 nbachiyski7 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.

comment:5 rob1n7 years ago

  • Resolution wontfix deleted
  • Status changed from closed to reopened

comment:6 rob1n7 years ago

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