Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
My Danish translation disapeared when I pressed Get Latest
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 12, 2015 - 3:18 pm

you do not need a different translation file...  unless you changed the text domain in the strings (not likely).. 

are you sure its a child reboot theme?  If so, it loads the reboot stuff as well.. did you follow the directions here:  https://simple-press.com/docum.....ild-theme/

Avatar
Peter Jakobsen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 13, 2015 - 2:19 am

I tested theme translation with child-theme: 

1. I checked the child-theme are active

2. I downloaded the reboot theme

3. Rename the reboot theme to child-them and oploaded it. 

Nothing happend.

Can you solve this mystery?testPO1.jpgImage EnlargertestPO2.jpgImage EnlargertestPO3.jpgImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Sep 13, 2015 - 4:32 am

The important thing is the language 'name' that your SP theme is looking for.  This is contained in the template file 'spFunctions.php'. So the first question is - do you have this file in your child theme. If not then your child theme will be reliant on the one in the parent theme.

By default, the supplied 'name' in the parent theme is exposed in the following function:

# load the theme textdomain for tranlations
add_action('init', 'spReboot_textdomain');
function spReboot_textdomain() {
    sp_theme_localisation('spReboot');
}

This shows that the language name is 'spReboot'. IF you have such a function n your CHILD theme then you need the name exposed in that function instead.

This needs to be the name of the MO file that your SP theme will use and it needs to be located in the (again by default) /wp-content/sp-resources/forum-language/sp-plugins.

Going to our translation website and downloading the reboot Danish MO file gives me a file name of 'spReboot-da_DK.mo' which is what I would expect.

However, most importantly, the Danish entry for Reboot also informs me that it is 0% translated. So that also may be the reason you are not seeing any theme related translations on your forum.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Peter Jakobsen
Member
Free Members
sp_UserOfflineSmall Offline
Sep 13, 2015 - 7:50 am

Thank You very much for your awesome support:-)

Now I got it and solved it immediately. 

Enjoy your sunday!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Sep 13, 2015 - 11:39 am

glad we could help!  enjoy yours!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626