Dotclear

Ticket #1127 (closed defect: invalid)

Opened 15 years ago

Last modified 15 years ago

language string translation missing in pager

Reported by: jojojr Owned by: xave
Priority: normal Milestone: 2.2.1
Component: module:clearbricks Version: 2.2
Severity: normal Keywords:
Cc:

Description

In file \inc\clearbricks\pager\class.pager.php the 2 character strings "prev." and "next" are not translated. Fix: Around lines 130, replace:

		# Previous page
		if($this->env != 1) {
			$htmlPrev = '<a href="'.sprintf($this->page_url,$this->env-1).'">'.
			$htmlPrev .= $this->html_prev.'</a>&nbsp;';
		}
		
		# Next page
		if($this->env != $this->nb_pages) {
			$htmlNext = '&nbsp;<a href="'.sprintf($this->page_url,$this->env+1).'">';
			$htmlNext .= $this->html_next.'</a>';
		}

with

		# Previous page
		if($this->env != 1) {
			$htmlPrev = '<a href="'.sprintf($this->page_url,$this->env-1).'">'.
			$htmlPrev .= __($this->html_prev).'</a>&nbsp;';
		}
		
		# Next page
		if($this->env != $this->nb_pages) {
			$htmlNext = '&nbsp;<a href="'.sprintf($this->page_url,$this->env+1).'">';
			$htmlNext .= __($this->html_next).'</a>';
		}

Change History

comment:1 Changed 15 years ago by kozlika

  • Milestone changed from 2.3 to 2.2.1

comment:2 Changed 15 years ago by xave

Wrong: $this->html_prev should be initialised already translated (cf. lib.pager.php, line #25)

comment:3 Changed 15 years ago by xave

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

And practically, they are. Case closed. :)

Note: See TracTickets for help on using tickets.

Sites map