PDA

View Full Version : Translation problems (editing language)


naredi
08-11-2009, 01:10 PM
Hi,

I have some problems with editing language in phpLD 3.4. The language is Swedish and I have the file sv.php in the language folder. In config.php language is set to "sv".

In step 1 I got this problem
When I go into System -> Language editor and editor and edit the swedish language it's saved in the sv.php. But the changes was not shown on site. In the templates there is {l}{/l} so it's nothing wrong there. I have tried this without change:
* Edit directly in sv.php.
*Clean the cache under Cache in admin.
*I have tried the page on different computers.

So the problem belongs to the script.

Step 2
Then I found /temp/templates/ folder and tried to clean it. Then some of the words worked fine and some not. When I made updates in the language editor, and cleaned the folder again, the language (on site) changed back to english for a couple of words. In the language editor the same word are added at the bottom of the swedish list (in english).

When I now look at the language compared to each other (Swedish and English) there are swedish words without any english translation (.:: ... ::.). These words are the same as I newly translated into swedish. I think the problem is here somewhere but since I don't know how the /temp/templates/-cache work I cant move any further.

Does any one got any solution for this?

Thanks,
Jakob

James
08-11-2009, 05:54 PM
My advice is to download both the sv and the en php files to your computer.

open both in a text editor and make the changes there.
Remember that the hashes must match

the hash is the md5 sum of the english word/phrase

naredi
08-19-2009, 09:54 AM
Now I tried to download the sv.php and en.php and there are still problems.

This line I have in en.php:
'0630d9cf52c1392cb5c56fad8356563d' => 'Regular links with reciprocal',
This line I have in sv.php:
'0630d9cf52c1392cb5c56fad8356563d' => 'Framhävd länk med tillbakalänk',
The message shown on site is: Regular links with reciprocal

Is there any cache or temp files that should be cleaned after uploading the language files?

When editing in offline I also got problems with the some coding of special chars. Isn't the coding format UTF-8?

James
08-19-2009, 04:58 PM
should be lok in your submit.tpl and make sure that the text

Regular links with reciprocal

has l tags around it.

naredi
08-20-2009, 09:53 AM
Yes in submit.tpl the line is:
{l}Regular links with reciprocal{/l}

James
08-20-2009, 05:05 PM
hmmm can you turn the options back on and grant me ftp and admin access??

naredi
08-20-2009, 05:21 PM
You now got a PM.

Thanks,
Jakob

naredi
08-21-2009, 10:00 AM
Now I found a solution for the problem.

What I did is:
1. Editing the language as normal in admin.
2. Downloading the affected .tpl-file with ftp.
3. Uploading the affected .tpl-file with ftp (not doing any changes in the .tpl-file).

I don't have any clue why you have to update the .tpl-file? I think it could be something about the temp-files but that's just a thought.

Hope this could help others with the same problem.

Thanks,
Jakob

asksugode
10-29-2009, 06:31 PM
The best that go together.

rouademunte
11-12-2009, 04:44 PM
Hello,

I have some problems with editing roumanian language.

James
11-12-2009, 11:23 PM
when you are editing the files what are you using to do it?