Home arrow Forum mod_joomla_smf_login_1_4, some strings not localized
  Welcome, Guest. Please login or register.
Did you miss your activation email?
January 08, 2009, 02:41:59 PM
Home New Posts Search Calendar


Login with username, password and session length
+  Joomla Forum
|-+  Joomla Hacks
| |-+  Joomla-SMF Forum Support
| | |-+  Joomla-SMF 1.1.x (Moderators: -Wolverine, kai920)
| | | |-+  mod_joomla_smf_login_1_4, some strings not localized
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: mod_joomla_smf_login_1_4, some strings not localized  (Read 1754 times)
Guvenc Kaplan
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
mod_joomla_smf_login_1_4, some strings not localized
« on: April 16, 2006, 01:25:21 PM »

Hi,

I installed the Joomla-SMF Login 1.4 Module.

The 'Welcome' string at Welcome username
and the 'Messages' at 'Messages(0/0)' lines are not localized. How can I make this possible?

Guvenc
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: mod_joomla_smf_login_1_4, some strings not localized
« Reply #1 on: April 16, 2006, 04:00:45 PM »

by localized you mean using a language file? 
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Guvenc Kaplan
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
Re: mod_joomla_smf_login_1_4, some strings not localized
« Reply #2 on: April 16, 2006, 04:33:47 PM »

Pls look at the file attached. All the menu items appear in my own language, except Welcome and Messages.
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: mod_joomla_smf_login_1_4, some strings not localized
« Reply #3 on: April 16, 2006, 06:06:04 PM »

The text "Welcome" can be entered in the module configuration, you need only change it.  It is the "Pre-Text" configuration.  For the messages, change the following code around line 154:

Code:
<td><a href="', sefRelToAbs($str_jsmf_url . "action=pm") ,'" class="',(($moduleclass_sfx) ? 'mainlevel'.$moduleclass_sfx : 'mainlevel' ),'">Messages (',$context['user']['messages'],'/<font color="#FF0000">',$context['user']['unread_messages'],'</font>)</a></td>

in that code change the text "Messages" to fit what you want.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Guvenc Kaplan
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
Re: mod_joomla_smf_login_1_4, some strings not localized
« Reply #4 on: April 17, 2006, 05:54:00 AM »

Many thanks for your help, did not notice that the module had a config screen.  Actually I thought there would be locale strings for both Welcome and Messages, like:

$message_welcome = $params->def( 'welcome', 0 );
$messages_title = $params->def( 'messages', 0 );
Logged
-Wolverine
Moderator
Joomla Guru
*****

Karma: +376/-34
Offline Offline

Posts: 3393


Lead Developer


View Profile WWW
Re: mod_joomla_smf_login_1_4, some strings not localized
« Reply #5 on: April 17, 2006, 09:43:04 AM »

the localized strings are coming from SMF.  There isn't one available that corresponds to "Messages" without the need to start including extra files.  I will add a field for the name of the messages link in the future builds of the module.  It is the only main link that isn't localized.
Logged

Need help?  Check Here First!
Get the JSMF User Guide
SEARCH this forum.
Guvenc Kaplan
Joomla Newbie
*

Karma: +0/-0
Offline Offline

Posts: 10


View Profile
Re: mod_joomla_smf_login_1_4, some strings not localized
« Reply #6 on: April 17, 2006, 10:55:09 AM »

Thanks a lot. Overall, very good and useful module Smiley
Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  



Login with username, password and session length

Powered by MySQL Powered by PHP Joomla Forum | Powered by SMF 1.1 RC1.
© 2001-2005, Lewis Media. All Rights Reserved.
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!

Joomla Hacks is a Joomla Components, Joomla Modules, Joomla Templates, & Joomla Mambots resource portal. None of the text or images in this public website may be copied without the expressed written consent of the authors. Copyright 2005 by JoomlaHacks.com. Powered by Joomla. All rights reserved.
Terms of Use
Joomla Hacks



Joomla Hacks
German Lang French Lang Italian Lang Spanish Lang Japanese Lang Chinese Lang
Search Contact About Advertise Blogs Topsites Submit News Register Login