SMF Support > Language Specific Support

I have problem in Language Button Menu - Installation Instructions for 2.0 RC5

(1/1)

នី ឫទ្ថី:
I can't see anything appear.
Help me please....
I follow this instruction
http://custom.simplemachines.org/mods/index.php?action=parse;mod=2705;attach=170271;smf_version=2.0_RC5

I've got problems in the instruction
in

--- Quote ---// Do we have any languages to validate this?
   if (!empty($modSettings['userLanguage']) && (!empty($_GET['language']) || !empty($_SESSION['language'])))
      $languages = getLanguages();

--- End quote ---

I can't find it

and in

--- Quote ---./Themes/default/../core/css/index.css
Find (at the end of the file):

--- End quote ---
I can't find ?>

And where should I put db_settings.php ?

Need you answer

Branko.:
This  "Do we have any languages to validate this? " you can find in /Sources/Load.php (if use notepad++ editor find line 528)
This "And where should I put db_settings.php ?" ...not necessary (everything is automatic) when you install your mod, read this "This file should be able to execute standalone."
For css/index.css just add at the end
--- Code: ---
/***************************************
 START LANGUAGE MENU STYLES
***************************************/
/*The main language button menu container*/
#language_menu {
position: relative;
display: inline;
float: right;
padding: 10px;
}
/*Make the buttons align horizontaly*/
#language_menu form {
padding: 0;   
display: inline;
}
/* Pointer to easly identify "clickable" buttons */
#language_menu form button {
font-size:10px;
cursor: pointer;
}
/* Default cursor and different color for distinction of current language */
#language_menu form button.active {
color: #666;
cursor: default;
}
#language_menu img.langicon {
padding-right: 4px;
float: left;
margin-top: 2px;
}
#language_menu button.langflagbutton {
background: none;
border:none;
padding: 0;
margin:0;
opacity: 0.5;
}
#language_menu button.langflagbutton:hover {
opacity: 1;
}
#language_menu button.langflagbuttonactive {
background: none;
border:none;
padding: 0;
margin:0;
cursor: default;
opacity: 1;
}
/***************************************
 END LANGUAGE MENU STYLES
***************************************/


--- End code ---

នី ឫទ្ថី:
Thank you

នី ឫទ្ថី:

--- Quote from: Branko. on October 06, 2011, 06:47:52 AM ---This  "Do we have any languages to validate this? " you can find in /Sources/Load.php (if use notepad++ editor find line 528)

--- End quote ---
Yes, I saw it in  sources/Load.php and I also inserted the code as the instruction but the language button still not appear



--- Quote from: Branko. on October 06, 2011, 06:47:52 AM ---This "And where should I put db_settings.php ?" ...not necessary (everything is automatic) when you install your mod, read this "This file should be able to execute standalone."

--- End quote ---
I still not understand. I mean where should I put the host? or I could put it any where?

Branko.:
You are misunderstood...mod should install from package manager and then make changes (in places where test is failed).Click on the icon next to "replace" and you will see what to change. Parse function only will help you.In this case db_settings.php automatically adapt your database.

Navigation

[0] Message Index

Go to full version