Make WordPress Core

Opened 20 years ago

Closed 19 years ago

#4088 closed defect (bug) (wontfix)

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

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

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)

#1 @rob1n
20 years ago

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

#2 @devil1591
20 years ago

maybe doing something like :

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

#3 @rob1n
20 years ago

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

#4 @nbachiyski
20 years ago

  • Resolution → wontfix
  • Status new → 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
20 years ago

  • Resolution wontfix
  • Status closed → reopened

#6 @rob1n
19 years ago

  • Milestone 2.3
  • Resolution → wontfix
  • Status reopened → closed
Note: See TracTickets for help on using tickets.