Nucleus Support Forum Index

Find on the forum:
any terms  all terms  Advanced Search

RSS 2.0
Browse posts: Unanswered | Mark all read

« »
Loading Nucleus FAQ ticker...
Post new topic Reply to topic
Author Message
Monkeybrain
Nucleus PhD


Joined: 15 Dec 2005
Posts: 525
Location: Kristiansand, Norway

Post Posted: Wed Feb 25, 2009 4:50 pm   Post subject:
Reply with quote

For some strange reason _ACTIONLOG_NEWMEMBER never gets translated on my latest Nucleus install v3.40

It doesn't get translated nomatter what language I try, and I can't quite figure out where it's coming from.
The ACTIONS.php or the ADMIN.php ? Confused

I've checked the spelling in both english and norwegian language files, and they are the same.

_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Back to top

View user's profile Send private message Visit poster's website
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Wed Feb 25, 2009 5:25 pm   Post subject:
Reply with quote

That's odd, Monkeybrain. It's been in the file since the original internationalization around version 1.0. And it is in the english.php file delivered with 3.40. It looks like this:
Code:
define('_ACTIONLOG_NEWMEMBER',      'New member registration:');

Have you searched your language files for that string?

_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins

Back to top

View user's profile Send private message Visit poster's website
verbaljam
Nucleus PhD


Joined: 31 Jul 2002
Posts: 668
Location: Amsterdam, The Netherlands

Post Posted: Wed Feb 25, 2009 6:57 pm   Post subject:
Reply with quote

Ftruscot, my translation was based on the differences with the previous version. In the previous version (that came with 3.33), I noticed that many of the things relating to the 'automatically safe draft' function had not been translated, so I did that. But I only used the file for myself (it wasn't a serious effort to make a complete translation).
With the version 3.4 I looked at the differences on top of the file and which things popped up during use.
As I said, feel free to combine the translations of Pheser and me.

One suggestion: maybe it's best to clean up the whole language file and leave out all the annotations from previous versions and then combine all the functions that belong together.
Assuming that a newer language file will work with previous versions of Nucleus as well, of course.

_________________
verbal jam
http://www.verbaljam.nl

Back to top

View user's profile Send private message Visit poster's website
verbaljam
Nucleus PhD


Joined: 31 Jul 2002
Posts: 668
Location: Amsterdam, The Netherlands

Post Posted: Wed Feb 25, 2009 7:02 pm   Post subject:
Reply with quote

Monkeybrain wrote:
For some strange reason _ACTIONLOG_NEWMEMBER never gets translated on my latest Nucleus install v3.40

It doesn't get translated nomatter what language I try, and I can't quite figure out where it's coming from.
The ACTIONS.php or the ADMIN.php ? Confused

I've checked the spelling in both english and norwegian language files, and they are the same.


Is there a chance that the real string must be:
_ACTIONLOG_NEW_MEMBER ?
Maybe you can give this a try...

PS: ftruscot: the string is present in the Dutch language file.

_________________
verbal jam
http://www.verbaljam.nl

Back to top

View user's profile Send private message Visit poster's website
Monkeybrain
Nucleus PhD


Joined: 15 Dec 2005
Posts: 525
Location: Kristiansand, Norway

Post Posted: Wed Feb 25, 2009 7:17 pm   Post subject:
Reply with quote

Yes, the string is in my language file, but it never gets into the actionlog whenever a new member signs up. I always get the string-name in my log.

As I said, I've tried with the english file aswell, and that doesn't work either. So something is most likely wrong with whatever function that's responsible for putting it in there.

I've managed to chuck out most of the new translations for the v3.40 now, this is I think the last one I can't seem to make work.

I'l give verbaljam's tip a go and see what happens.

_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Back to top

View user's profile Send private message Visit poster's website
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Wed Feb 25, 2009 7:28 pm   Post subject:
Reply with quote

Monkeybrain, if you see _ACTIONLOG_NEWMEMBER in your browser, then that is the constant that isn't being translated (defined) when your page loads the language file. It's really odd that that one constant isn't getting defined.

Verbaljam, we've been putting new constants at the top of the file to make it easier for language file translators to know which new constants they must define. By recombining them into the original structure of the file, it would be a little harder to find the new ones. I know there are programs that will compare files and display the diffs, but not everyone knows about these things.

What made this file different is that there were actually a lot of new constants, some that should have been in 3.3x, but weren't. These got spread out in a couple sections at the top and a big one at the bottom.

Plus, it would be a whole lot of work to file each of these new constants into their proper sections in the file.

_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins

Back to top

View user's profile Send private message Visit poster's website
Monkeybrain
Nucleus PhD


Joined: 15 Dec 2005
Posts: 525
Location: Kristiansand, Norway

Post Posted: Thu Feb 26, 2009 11:55 pm   Post subject:
Reply with quote

No luck on translating the strings, and now I've got both _ACTIONLOG_NEWMEMBER and _ACTIONLOG_NEW_MEMBER defined in both english and norwegian language files.

Looking at the entries in the actionlog trough phpMyAdmin, reveals they also contain the stringname, rather than any translation. So my guess is the translation should be applied before it gets posted into the actionlog?

I've tried moving the definations all the way up in the language files, but nothing seems to help.
I'm kinda lost on where to look next...

It's not a big deal tho, as I can live with it as it is. Only i get to see the actionlog anyway.

Thnx for the tips tho..

_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Back to top

View user's profile Send private message Visit poster's website
ftruscot
Nucleus Guru
Nucleus Guru


Joined: 22 Feb 2006
Posts: 7449
Location: Massachusetts

Post Posted: Fri Feb 27, 2009 12:14 am   Post subject:
Reply with quote

If those constants are in the db table, then they aren't going to be translated when they are retrieved and saved. You could write a mysql query to replace them with some english, or norwegien, strings, but ...

It indicates that when those users registered, the language file of the admin area was missing that translation, or that the registration process failed to load the language file (unlikely because config.php has to get loaded sometime).

_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Check out my plugins

Back to top

View user's profile Send private message Visit poster's website
Monkeybrain
Nucleus PhD


Joined: 15 Dec 2005
Posts: 525
Location: Kristiansand, Norway

Post Posted: Fri Feb 27, 2009 12:59 am   Post subject:
Reply with quote

Well I now realise that those entries are most likely added by NP_phpBB plugin,
as the entries are added when new users register on the forum, and also auto-creates them as users of the blog.

Might be worth having a look at the plugin code then perhaps?

_________________
Is your question not solved yet?
Search our FAQ,
read the Documentation, or
browse the list of available plugins.

Back to top

View user's profile Send private message Visit poster's website
Post new topic Reply to topic
Display posts from previous:   

Goto page Previous  1, 2, 3

Page 3 of 3

All times are GMT + 1 Hour

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2001, 2002 phpBB Group