Support Forum

sp-form-global-options.php Translations

CE cwwcwi0ecnuwijcowecwreiovuejwcko
cwwcwi0ecnuwijcowecwreiovuejwcko
Member

Some fields in sp-form-global-options.php with language conditional tag “sp_text” are not getting translated while they are present in the .po and .mo file. For example these lines:

$out.= sp_text('On this panel, you may set your Global Options preferences.');
$tout.= '<p class="spProfileLabel">'.sp_text('Hide Online Status').':</p>';
$out.= '<input type="submit" class="spSubmit" name="formsubmit" value="'.sp_text('Update Global Options').'" />';

This should be changed in the core I think.

8 Answers

New Answer

MP Mr Papa
Mr Papa
Member

what should be changed in core??   changed to what?

are you saying those strings in the front end profile edit (not other locations) are not getting translated? which translation are you using?

CE cwwcwi0ecnuwijcowecwreiovuejwcko
cwwcwi0ecnuwijcowecwreiovuejwcko
Member

I’m using a Dutch translation, the records are present and translated in the .mo and .po file. Other records are loaded without problem, except the ones in sp-form-global-options.php.

MP Mr Papa
Mr Papa
Member

just wanted to be sure you meant on the global options form AND ONLY the global options form…  if a similar string is used elsewhere, it might be in different translation file…  most of the front end strings are translated in the theme, not core… profile stuff is an exception…

will get with Andy (he is the localization expert of the two of us) and see what might be going on…

CE cwwcwi0ecnuwijcowecwreiovuejwcko
cwwcwi0ecnuwijcowecwreiovuejwcko
Member

“Hide Online Status”, “Update Global Options” and “On this panel, you may set your Global Options preferences.” are all present in the “front-end-nl_NL.mo” and po file. They are translated.

MP Mr Papa
Mr Papa
Member

is that front-end really appended on the file??  not what you want to call it in your languages folder… should be sp-nl_NL.mo

will have to check our glotpress site and see if we messed up the slug in 5.2…

MP Mr Papa
Mr Papa
Member

yup. was wrong on 5.2… have corrected the slug for front end (sp) and admin (spa)…  so the filenames were wrong…

if you had not done it, in your forum-languages it should be sp-nl_NL.mo…  not front-end-nl_NL.mo…

if you had already done that, will need more research with Andy as I mentioned…

CE cwwcwi0ecnuwijcowecwreiovuejwcko
cwwcwi0ecnuwijcowecwreiovuejwcko
Member

Lol that was the problem. Downloaded as front-end-nl_NL. Changed name and it fixed it :o

I guess admin-nl_NL.mo should be changed to spa-nl_NL.mo

MP Mr Papa
Mr Papa
Member

yes, correct… I have corrected the downloads on glotpress for the right name…  thanks for the heads up!