On these pages are my WordPress plugins, the odd article and my Support Forum.

For my random rantings on everything else please visit my blog at Yellow Swordfish

WP Plugins


Articles

If you find any of my plugins useful, please comsider a donation towards my running costs.

Thank you

In preparation for the release of Simple:Press Version 4.0, the Support Forum has moved to a new site dedicated to the plugin. This will also be the future home for Simple:Press Forum.


Version 3.1.4 will still be available for download here in the short term.


For the support forum - and to visit our new site and to get details of version 4.0, click on the logo to take you to simplepressforum.com

This forum is currently locked - access is read only
Current User: Guest
Please consider registering

 
Search Forums:


 




Forum translation not working after update

UserPost

8:46 pm
12 Jul 2008


Elgadget

Guest

1

hello, the translation of my forum to spanish is not working after the update to 3.1.3, it whas working perfectly before, i tried selecting the “es” option in the style section, i even deleted all other language files, i uploaded the sforum-es_ES.mo file to the language folder and still everything in english. how is that possible?

8:55 pm
12 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

2

The only reason I can think of is that the way the localisation is called is being changed in WP 2.6 and we were specifically told that it was safe to use the new function as it was completely backwards compatible.

Your experience suggest that perhaps it is not. Which makes me somewhat angry…

I am afraid I will need to investigate and come back to you.

9:04 pm
12 Jul 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

3

when you upgraded to 3.1.3 you did follow the upgrade instructions and delete the entire plugin before uploading the new version?  the language folder was moved…  are you looking in the right spot?

10:19 pm
12 Jul 2008


Eleazar

Guest

4

hi, I have the same problem. I haven't done upgrade, it was fresh install and I'm sure that everything is in the right place. Language file just doesn't work!

10:29 pm
12 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

5

Are either of you up to making a little edit? If so open up the file:

sf-startup.php

Scroll down to the function:

function sf_localisation() — line 90

There are two lines of code. The top one has been commented out with two slashes. Try removing those 2 slashes and placing them in front of the line below. Does that make sense?

Save the file - resfresh your browser cache and try again…


11:44 pm
12 Jul 2008


Eleazar

Guest

6

YES! It works, thank you! Smile But there's still one little problem with TinyMCE. Buttons decsriptions are in the form like this: “advanced.bold_desc” for Bold button. Any idea why this is happening?

12:06 am
13 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

7

Good to hear it worked. Sounds like we have been given bad advice on this one.

have you set the language for the editor in the Forum > Options > Style tab? The language files for the editor are supplied by TinyMCE…

12:07 am
13 Jul 2008


clarezoe

Guest

8

Hi, I had the same problem, and solved it by edit the “sf-startup.php” file as you said.

Cool

12:08 am
13 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

9

Thanks

3:15 am
13 Jul 2008


Elgadget

Guest

10

yes it works ! thanks a lot for such a quick fix !

3:24 am
13 Jul 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

11

thanks…  hopefully, there are no more of these…

9:45 pm
13 Jul 2008


Nicolai

Guest

12

Hi Forum & Yellow swordfish

Thanks for a great forum - and i'm looking foreward to use it!  Wink

I'm working with the language problems. I need to get it to work with the danish mod.

I can see that the problem is fixed, but i can't figure the codes -though i'm not a stranger to coding.

Therefore could somebody cut n paste the answer. Thanks in advance

Best regards, Nicolai

10:20 pm
13 Jul 2008


Mr Papa

Moderator

Arizona, USA

posts 1602

13

did you make the changes as specified in post #5 above?

10:42 pm
13 Jul 2008


Nicolai

Guest

14

function sf_localisation()
{
 global $wp_version;
 
 # i18n support
 if(version_compare($wp_version, '2.6', '<'))
 {
  load_plugin_textdomain('sforum', '/wp-content/plugins/simple-forum/languages');
 } else {
  load_plugin_textdomain('sforum', SF_PLUGIN_DIR.'/languages', 'simple-forum/languages');
 }
 return;
}

I have tried, but i'm not sure it's the right slashes i'm changin'

I have painted the two slashes, which I think yellow swordfish is referring to… Embarassed

Maybe you could help me in the right way. I could the grateful

10:57 pm
13 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

15

Download the plugin again and replace the sf-startup.php file. The one in the download zip has been corrected.

12:24 am
14 Jul 2008


Nicolai

Guest

16

Thanks for taking the time to give me an answer. Smile

your new upload and the change of the config file got the job done.

Thanks again, Nicolai

12:28 am
14 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

17

My pleasure.

2:10 pm
15 Jul 2008


RecNes

Member

posts 44

18

I download new plug-in yesterday and checked out sf-startup.php file for those comment slashes. Looks like removed those slashes before I download the new version of the plug-in.

But language file doesn't loads in my installation. Function looks like below:


function sf_localisation()
{
 global $wp_version;
 
 # i18n support
 if(version_compare($wp_version, '2.6', '<'))
 {
  load_plugin_textdomain('sforum', '/wp-content/plugins/simple-forum/languages');
 } else {
  load_plugin_textdomain('sforum', SF_PLUGIN_DIR.'/languages', 'simple-forum/languages');
 }
 return;
}

I'm using WP 2.5.1 right now. Waiting for localized 2.6 vesion to upgrade

6:34 pm
15 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

19

Strange - I am most certainly able to get this to work on both 2.5 and 2.6 WP systems with that code. is anyone else having problems?

6:58 pm
15 Jul 2008


RecNes

Member

posts 44

20

Note : I also clean up my browser cache but there is nothing to change.

7:33 pm
15 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

21

lert me check… did you upgrade correctly by removing everything first? Things are in different places now…

8:23 pm
15 Jul 2008


RecNes

Member

posts 44

22

Yes I did.

I do everything step by step as wroten in the Read-Me file.

8:40 pm
15 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

23

OK Well - that's good.

I can assure you that the function call there to load the languages is exactly the same as previopus versions so I really don't know why it isn't working. And - having tested this in all WP versions from 2.04 up to 2.5.1 it worked just fine for me. Although I was using the Spanish file!

Are you planning to upgrade to WP 2.6?

10:57 pm
15 Jul 2008


RecNes

Member

posts 44

24

Interesting.

Yes I'm planning to upgrade 2.6 when it's localized.

11:21 pm
15 Jul 2008


Yellow Swordfish

Admin

Peterborough, England

posts 5252

25

I really don't know what to say - especially as it is you. I just cannot replicate this and, as far as I am aware, this is not a problem anyone else has.



Reply to Topic: Forum translation not working after update

NOTE: New Posts are subject to administrator approval before being displayed

Guest Name (Required):

Guest EMail (Required):

Guest URL (required)

Math Required!
What is the sum of: 4 + 8        (Required)

Topic Reply:


 
 

About the Stuff at Yellow Swordfish forum

Currently Online:

11 Guests

Maximum Online: 71

Forums:

Groups: 3

Forums: 16

Topics: 2068

Posts: 14091

Members:

There are 1003 members

There are 837 guests


Yellow Swordfish has made 5252 posts

Top Posters:

Mr Papa - 1602

-Radio- - 558

ovizii - 114

jfv - 82

angelic007 - 72

Administrator: Yellow Swordfish | Moderators: Yellow Swordfish, Mr Papa, -Radio-


© Simple:Press Forum - Version 3.1.4 (Build 357)