- Posts: 40
 
COMMUNITY FORUM
How to translate?
- Bart Pluijms
 - 
				
Topic Author
 - Offline
 - Senior Member
 
		Less
		More
		
			
	
		
			
	
						16 years 3 months ago				#69121
		by Bart Pluijms
	
	
		
			
	
			
			 		
													
	
				How to translate? was created by Bart Pluijms			
			
				When clicking on a tag, the page "Displaying items by tag:" shows up.
How can I translate this title?
Where do I have to put which tag?
I have tried to add it in the language file like this:
DISPLAYING ITEMS BY TAG:=Artikelen weergeven op tag:
and without the ":"
But it doesn't work.
Please help.
thanks!
					How can I translate this title?
Where do I have to put which tag?
I have tried to add it in the language file like this:
DISPLAYING ITEMS BY TAG:=Artikelen weergeven op tag:
and without the ":"
But it doesn't work.
Please help.
thanks!
Please Log in or Create an account to join the conversation.
- LocaLiceR
 - 
				
 - Offline
 - Junior Member
 
			
	
						16 years 3 months ago				#69122
		by LocaLiceR
	
	
		
			
	
			
			 		
													
	
				Replied by LocaLiceR on topic How to translate?			
			
				Hi, Bart!
Please read my post here.
					Please read my post here.
Please Log in or Create an account to join the conversation.
- Bart Pluijms
 - 
				
Topic Author
 - Offline
 - Senior Member
 
		Less
		More
		
			
	
		- Posts: 40
 
			
	
						16 years 3 months ago				#69123
		by Bart Pluijms
	
	
		
			
	
			
			 		
													
	
				Replied by Bart Pluijms on topic How to translate?			
			
				Thanks for your reply.
I have followed your instructions, but I didn't manage to translate the string.
The Debug says:
# C:\domains\pvdatilburg.nl\wwwroot\libraries\joomla\cache\handler\view.php
DISPLAYING ITEMS BY TAG:=Displaying items by tag:
So I copied DISPLAYING ITEMS BY TAG: to my nl-NL_k2.ini and I tried to translate it.
But it still doesn't work.
Now the title displays: ??Displaying items by tag: ??
Someone other ideas?
					I have followed your instructions, but I didn't manage to translate the string.
The Debug says:
# C:\domains\pvdatilburg.nl\wwwroot\libraries\joomla\cache\handler\view.php
DISPLAYING ITEMS BY TAG:=Displaying items by tag:
So I copied DISPLAYING ITEMS BY TAG: to my nl-NL_k2.ini and I tried to translate it.
But it still doesn't work.
Now the title displays: ??Displaying items by tag: ??
Someone other ideas?
Please Log in or Create an account to join the conversation.
- Birger J. Nordølum
 - 
				
 - Offline
 - Junior Member
 
		Less
		More
		
			
	
		- Posts: 20
 
			
	
						16 years 3 months ago				#69124
		by Birger J. Nordølum
	
	
		
			
	
			
			 		
													
	
				Replied by Birger J. Nordølum on topic How to translate?			
			
				Thank you for this tip. Will use this in the future.
Birger :)
					Birger :)
Please Log in or Create an account to join the conversation.
- LocaLiceR
 - 
				
 - Offline
 - Junior Member
 
			
	
						16 years 3 months ago				#69125
		by LocaLiceR
	
	
		
			
	
			
			 		
													
	
				Replied by LocaLiceR on topic How to translate?			
			
				This is because JText cannot translate strings ended with a space. Please open file /components/com_k2/views/itemlist/view.html.php in your editor.
Find the line below:
$title = JText::_('Displaying items by tag: ').JRequest::getVar('tag');
and replace it with the following code:
$title = JText::_('Displaying items by tag:').' '.JRequest::getVar('tag');
After refreshing the front-end, the 'Displaying items by tag:' string should be translated.
					Find the line below:
$title = JText::_('Displaying items by tag: ').JRequest::getVar('tag');
and replace it with the following code:
$title = JText::_('Displaying items by tag:').' '.JRequest::getVar('tag');
After refreshing the front-end, the 'Displaying items by tag:' string should be translated.
Please Log in or Create an account to join the conversation.
- Bart Pluijms
 - 
				
Topic Author
 - Offline
 - Senior Member
 
		Less
		More
		
			
	
		- Posts: 40
 
			
	
						16 years 3 months ago				#69126
		by Bart Pluijms
	
	
		
			
	
			
			 		
													
	
				Replied by Bart Pluijms on topic How to translate?			
			
				I will upload them soon in the translations directory.			
					Please Log in or Create an account to join the conversation.