Protostar
Posts: 46
Joined: 12 January 2010
Location: Bourgas,Bulgaria
|
Today I have updated my NovaBaard translation to be actual for NovaBoard V1.1.3. I tryed to change language via language switcher,but it is not working. The screen Flashes,but language stays the same(English). When I set default board language to Bulgarian via AdminCP Bulgarian translation is OK and works fine... What I should do?
Last edited by: 4J2
- Friday, Mar 12, 2010 19:57.
|
|
Top
|
|
|
Use the following URL to link to this post: http://community.novaboard.net/findpost/3554 |
Protostar
Posts: 56
Joined: 26 December 2009
Location: Ontario
|
Can I have the link to your board? It could be a cookie problem.. Is language even controlled by cookies anymore? Or is it mysql?
It's not just your translation.It appears when you select the language at the bottom the nova_lang cookie isn't created.So the board still thinks you want english.
Last edited by: AskAlex
- Wednesday, Mar 17, 2010 16:57.
PHP Code Snippet
<?php echo "Insert text here";?>
|
|
Top
|
|
|
Use the following URL to link to this post: http://community.novaboard.net/findpost/3556 |
Protostar
Posts: 27
Joined: 22 October 2009
|
yep. Same Problem. When i use in my local installed Board, then i can´t use the Languageswitcher. I must defind that over the Language Default Funktion in the ACP
|
|
Top
|
|
|
Use the following URL to link to this post: http://community.novaboard.net/findpost/3558 |
Protostar
Posts: 46
Joined: 12 January 2010
Location: Bourgas,Bulgaria
|
AskAlex  Can I have the link to your board? It could be a cookie problem.. Is language even controlled by cookies anymore? Or is it mysql?
It's not just your translation.It appears when you select the language at the bottom the nova_lang cookie isn't created.So the board still thinks you want english.
Hmmm... I made test forum to test new Novaboard and to localize potential bugs, before I proceed with updates to my other forum. The Test forum adress is http://light.1gb.bg/ Now Forum is on Bulgarian language...
Last edited by: James
- Wednesday, Mar 17, 2010 21:24.
|
|
Top
|
|
|
Use the following URL to link to this post: http://community.novaboard.net/findpost/3564 |
Head of Core Development
Posts: 222
Joined: 23 August 2009
Location: Rochdale, UK
|
Thanks for reporting this. It will be looked into.
|
|
Top
|
|
|
Use the following URL to link to this post: http://community.novaboard.net/findpost/3598 |
Protostar
Posts: 1
Joined: 27 March 2010
|
NovaBoard 1.1.3 I have same problem. Langugae switcher doesn't work...
Last edited by: Dima
- Saturday, Mar 27, 2010 17:36.
|
|
Top
|
|
|
Use the following URL to link to this post: http://community.novaboard.net/findpost/3626 |
Protostar
Posts: 56
Joined: 26 December 2009
Location: Ontario
|
If you really need this feature use the following fix if not just wait it out.
replace http://[host]/[path]/includes/pages/switcher.php with the following code Spoiler Alert Click to ViewPHP Code Snippet
<?php
/*
+--------------------------------------------------------------------------
| NovaBoard
| ========================================
| By The NovaBoard team
| Released under the Artistic License 2.0
| http://www.novaboard.net
| ========================================
|+--------------------------------------------------------------------------
| switcher.php - change theme or language from drop-down list
*/
if (!defined('NOVA_RUN')){
echo "<h1>ACCESS DENIED</h1>You cannot access this file directly.";
exit();
}
if (isset($_GET['theme'])) {
$nova_theme=escape_string($_GET['theme']);
$nova_theme=str_replace("%20"," ",$nova_theme);
}
if (isset($_GET['language'])) {
$nova_lang=$_GET['language'];
$nova_lang = escape_string($nova_lang);
mysql_query("UPDATE {$db_prefix}members SET board_lang='$nova_lang' WHERE id='$my_id'");
}
if ($_COOKIE['nova_name']==''){
setcookie("nova_theme", $nova_theme, time() +31536000);
}
else{
mysql_query("UPDATE {$db_prefix}members SET theme='$nova_theme' WHERE id='$my_id'");
}
// return to whence they came...
$referer=escape_string($_SERVER['HTTP_REFERER']);
header("HTTP/1.0 200 OK");
header("Location: $referer");
exit;
?>
You have to also replace [host]/[path]/templates/includes/footer.template.php with the following code Spoiler Alert Click to ViewPHP Code Snippet
<?php if (!defined('NOVA_RUN')){echo "<h1>ACCESS DENIED</h1>You cannot access this file directly.";exit();} ?>
<?php if ($template_hook=='start'){ ?>
<?php }elseif ($template_hook=='11'){ ?>
<?php }elseif ($template_hook=='10'){ ?>
<div class="spacer"> </div>
<table class="forum-jump" style="width: 100%;" cellspacing="0" cellpadding="0"><tr><td class="forum-jump-content-left">
<?php }elseif ($template_hook=='1'){ ?>
<!-- theme picker -->
<form method="post" action="index.php?">
<select name="switch" onchange="location.href='<?php echo "$nova_domain"; ?>/index.php?page=switcher&theme='+(this.options[this.selectedIndex].value)">
<option><?php echo $lang['footer_theme_title']; ?></option>
<optgroup label="<?php echo $lang['footer_theme']; ?>">
<?php }elseif ($template_hook=='2'){ ?>
<?php list_themes("themes/"); ?>
</optgroup>
</select>
</form>
<?php }elseif ($template_hook=='9'){ ?>
<!-- language picker -->
<form method="post" action="index.php?">
<select name="language" onchange="location.href='<?php echo "$nova_domain"; ?>/index.php?page=switcher&language='+(this.options[this.selectedIndex].value)">
<option><?php echo $lang['footer_language_title']; ?></option>
<optgroup label="<?php echo $lang['footer_language']; ?>">
<?php list_lang("lang/"); ?>
</optgroup>
</select>
</form>
</td>
<td class="forum-jump-content-right" style="text-align: right;">
<!-- quick nav -->
<form method="post" action="index.php?">
<?php if ($sef_urls=='1'){ ?>
<select name="forum" onchange="location.href='<?php echo "$nova_domain"; ?>'+escape(this.options[this.selectedIndex].value)">
<?php }else{ ?>
<select name="forum" onchange="location.href='<?php echo "$nova_domain"; ?>/index.php?'+(this.options[this.selectedIndex].value)">
<?php } ?>
<?php if ($sef_urls=='1'){ ?>
<option value=""> <?php echo $lang['footer_nav']; ?></option>
<optgroup label="<?php echo $lang['footer_nav_areas']; ?>">
<option value=""><?php echo $lang['footer_nav_forum']; ?></option>
<?php if ($can_change_site_settings=='1'){ ?>
<option value="/admin"><?php echo $lang['footer_nav_admin']; ?></option>
<?php } elseif ($can_change_forum_settings=='1'){ ?>
<option value="/admin"><?php echo $lang['footer_nav_mod']; ?></option>
<?php } ?>
<?php if (isset($_COOKIE['nova_name'])){ ?>
<option value="/myoptions"><?php echo $lang['footer_nav_user']; ?></option>
<option value="/messages"><?php echo $lang['footer_nav_messages']; ?></option>
<?php } ?>
<option value="/search"><?php echo $lang['footer_nav_search']; ?></option>
</optgroup>
<optgroup label="<?php echo $lang['footer_nav_forum_cats']; ?>">
<?php } else{ ?>
<option value=""><?php echo $lang['footer_nav']; ?></option>
<optgroup label="<?php echo $lang['footer_nav_areas']; ?>">
<option value=""><?php echo $lang['footer_nav_forum']; ?></option>
<?php if ($can_change_site_settings=='1'){ ?>
<option value="page=admin"><?php echo $lang['footer_nav_admin']; ?></option>
<?php } elseif ($can_change_forum_settings=='1'){ ?>
<option value="page=admin"><?php echo $lang['footer_nav_mod']; ?></option>
<?php } ?>
<?php if (isset($_COOKIE['nova_name'])){ ?>
<option value="page=myoptions"><?php echo $lang['footer_nav_user']; ?></option>
<option value="page=messages&act=inbox"><?php echo $lang['footer_nav_messages']; ?></option>
<?php } ?>
<option value="page=search"><?php echo $lang['footer_nav_search']; ?></option>
</optgroup>
<optgroup label="<?php echo $lang['footer_nav_forum_cats']; ?>">
<?php } ?>
<?php }elseif ($template_hook=='3'){ ?>
<?php if ($sef_urls=='1'){ ?>
<option style="font-weight: bold;" value="/forum/<?php echo "$forum_title-$parent_id"; ?>"><?php echo "$parent_name"; ?></option>
<?php } else{ ?>
<option style="font-weight: bold;" value="forum=<?php echo "$parent_id"; ?>"><?php echo "$parent_name"; ?></option>
<?php } ?>
<?php }elseif ($template_hook=='4'){ ?>
<?php if ($sef_urls=='1'){ ?>
<option value="/forum/<?php echo "$forum_title-$forum_id"; ?>">|--<?php echo "$forum_name"; ?></option>
<?php } else{ ?>
<option value="forum=<?php echo "$forum_id"; ?>">|--<?php echo "$forum_name"; ?></option>
<?php } ?>
<?php }elseif ($template_hook=='5'){ ?>
<?php if ($sef_urls=='1'){ ?>
<option value="/forum/<?php echo "$forum_title_sub-$forum_sub_id"; ?>">|---- <?php echo "$forum_sub_name"; ?></option>
<?php } else{ ?>
<option value="forum=<?php echo "$forum_sub_id"; ?>">|---- <?php echo "$forum_sub_name"; ?></option>
<?php } ?>
<?php }elseif ($template_hook=='6'){ ?>
<?php }elseif ($template_hook=='7'){ ?>
</optgroup>
</select>
</form>
</td></tr></table>
<?php } elseif ($template_hook=='8'){ ?>
<div class="spacer"> </div>
<!-- Copyright - Do NOT Remove -->
<table class="forum-jump" cellspacing="0" cellpadding="0"><tr><td class="forum-jump-content" style="vertical-align: middle;">
<span style="width: 100%; text-align: center; float: left;">
<?php echo $lang['footer_copyright']; ?>
<?php echo $lang['footer_board']; ?>
</span>
</td></tr></table>
</div>
<?php } elseif ($template_hook=='end'){ ?>
<?php } ?>>
Last edited by: AskAlex
- Sunday, Apr 11, 2010 17:18.
PHP Code Snippet
<?php echo "Insert text here";?>
|
|
Top
|
|
|
Use the following URL to link to this post: http://community.novaboard.net/findpost/3697 |
Head of Core Development
Posts: 222
Joined: 23 August 2009
Location: Rochdale, UK
|
This issue has been fixed for 1.1.4. For those wanting to fix this straight away:
- Open includes/structure.php
- Find:
PHP Code Snippet
$page = ctype_alnum($_GET['page']) ? $_GET['page'] : 'home';
- Replace with:
PHP Code Snippet
$page = ctype_alnum(str_replace('_', '', $_GET['page'])) ? $_GET['page'] : 'home';
- Save & close
|
|
Top
|
|
|
Use the following URL to link to this post: http://community.novaboard.net/findpost/3710 |
Protostar
Posts: 46
Joined: 12 January 2010
Location: Bourgas,Bulgaria
|
Jonny  ....
Thank You. Now Fixed. Host troubles...
Last edited by: 4J2
- Saturday, Jun 12, 2010 20:42.
|
|
Top
|
|
|
|
|