Translation problem continuos

This is continuous message my previous message and I can not answer to that anymore. I added the code to funtion.php as instructed, but still the page is not working then I update the new function php with new texts (the new is starting TYPE AND…). Until adding the new texts, it was working well. Do you see some issues, I cannot.

'Post Archive by Month' => 'Tiedotearkisto',
				'Read More' => 'Lue lisää',
				'Below you\'ll find a list of all posts from ' => 'Tiedotteet kuukaudelta ',
				'Category Archive' => 'Kategoriat',
				'Below you\'ll find a list of all posts that have been categorized as ' => 'Tiedotteet, jonka kategoria on  ',
			'TYPE AND PRESS “ENTER” TO SEARCH' => 'KIRJOITA HAKUSANA JA PAINA ENTER',
			'Score' => 'Yhteensopivuus',
			'Search Results' => 'Hakutulos',
			'Below you'll see everything we could locate for your search of ' => 'Alla näet hakutulokset sanalla ',
			'Nothing to Show Right Now' => 'Hakusanalla ei löytynyt tuloksia',
			'It appears whatever you were looking for is no longer here or perhaps wasn't here to begin with. You might want to try starting over from the homepage to see if you can find what you're after from there.' => 'Yritä uudelleen toisella hakusanalla',
			'Not found' => 'Ei löytynyt',

This is the related to this: https://theme.co/apex/forum/t/translation-does-not-show/47461/33

Hey Anni,

Please ensure that you’re translating Type and Press “enter” to Search and not TYPE AND PRESS “ENTER” TO SEARCH. The string must be exactly the same as in the template file like in the screenshot below.

Thanks.

Hi!

I tried but it´s not working. I can not see the difference:

‘TYPE AND PRESS “ENTER” TO SEARCH’ => ‘KIRJOITA HAKUSANA JA PAINA “ENTER”’,

Hi Anni,

Are Christians recommendation, it should be like this Type and Press “enter” to Search. It shouldn’t be but “. Example,

'Post Archive by Month' => 'Tiedotearkisto',
				'Read More' => 'Lue lisää',
				'Below you\'ll find a list of all posts from ' => 'Tiedotteet kuukaudelta ',
				'Category Archive' => 'Kategoriat',
				'Below you\'ll find a list of all posts that have been categorized as ' => 'Tiedotteet, jonka kategoria on  ',
			'Type and Press “enter” to Search' => 'KIRJOITA HAKUSANA JA PAINA ENTER',
			'Score' => 'Yhteensopivuus',
			'Search Results' => 'Hakutulos',
			'Below you\'ll see everything we could locate for your search of ' => 'Alla näet hakutulokset sanalla ',
			'Nothing to Show Right Now' => 'Hakusanalla ei löytynyt tuloksia',
			'It appears whatever you were looking for is no longer here or perhaps wasn\'t here to begin with. You might want to try starting over from the homepage to see if you can find what you\'re after from there.' => 'Yritä uudelleen toisella hakusanalla',
			'Not found' => 'Ei löytynyt',

Hope this helps.

Sorry, not yet either. This is what I am trying:

				'Post Archive by Month' => 'Tiedotearkisto',
				'Read More' => 'Lue lisää',
				'Below you\'ll find a list of all posts from ' => 'Tiedotteet kuukaudelta ',
				'Category Archive' => 'Kategoriat',
				'Below you\'ll find a list of all posts that have been categorized as ' => 'Tiedotteet, jonka kategoria on  ',
			'Type and Press “enter” to Search' => 'KIRJOITA HAKUSANA JA PAINA “ENTER”',
			'Score' => 'Yhteensopivuus',
			'Search Results' => 'Hakutulos',
			'Below you\'ll see everything we could locate for your search of ' => 'Alla näet hakutulokset sanalla ',
			'Nothing to Show Right Now' => 'Hakusanalla ei löytynyt tuloksia',
			'It appears whatever you were looking for is no longer here or perhaps wasn't here to begin with. You might want to try starting over from the homepage to see if you can find what you're after from there.' => 'Yritä uudelleen toisella hakusanalla',
			'Not found' => 'Ei löytynyt',

Hi Anni,

Please try the code as it’s given :slight_smile:

It’s now correct on that part, but then the other part isn’t. Example, this is the correct line

'It appears whatever you were looking for is no longer here or perhaps wasn\'t here to begin with. You might want to try starting over from the homepage to see if you can find what you\'re after from there.' => 'Yritä uudelleen toisella hakusanalla',

But it in your new added line, it became like this

'It appears whatever you were looking for is no longer here or perhaps wasn't here to begin with. You might want to try starting over from the homepage to see if you can find what you're after from there.' => 'Yritä uudelleen toisella hakusanalla',

The sample comparison is wasn\'t and wasn't, then you\'re and you're. It is very important to escape the single quotes within single quote. Example, instead of ' ' ', it should be ' \' '. If it’s " ' " then it’s okay and there is no need for \. I have explained it from another thread :slight_smile: , and you can also check this http://www.hackingwithphp.com/2/6/2/escape-sequences.

That simple error could cause an error that will render your site down even if it’s not related to the issue you’re fixing :slight_smile: . Please do the fixes first and test the translation again.

Thanks!

Now I have a problem that we have already launched the page. Every time I try to fix this it goes down for a while. Really is there any other way to fix this than touch the function.php? This seem to be too hard.

Hello Anni,

Since you have added a custom code in functions.php to do the translation, then the only place to edit those translation is by manually editing your code in the file. If only the .po and .mo translation is working, having to install a plugin like WPML or other translation plugin should handle this smoothly.

Hope this explains your issue briefly.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.