vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Translating the "hour" in "GMT +1 hour" (https://vborg.vbsupport.ru/showthread.php?t=52314)

TMM 04-29-2003 08:18 AM

Translating the "hour" in "GMT +1 hour"
 
Hi!

I'm currently working on translating my vB (2.2.9), however I can't figure out where to find the"hour" part of the "All times are..." on the forums index page...

Anyone?

TMM

Brad 04-29-2003 08:22 AM

Its in the files, open global.php and edit this block of code:

PHP Code:

$timediff='';
if (
$bbuserinfo['timezoneoffset']!=0) {
  if (
abs($bbuserinfo['timezoneoffset'])==1) {
    
$timediff=$bbuserinfo[timezoneoffset] hour";
  } else {
    
$timediff=$bbuserinfo[timezoneoffset] hours";
  }



TMM 04-29-2003 08:32 AM

Thanks, that fixed it!

BTW - since my site is only directed towards users in Europe (on CET); is there any way I can set this time zone as a permanent standard (so users won't even have to select it)?

Brad 04-29-2003 08:44 AM

I think thats ganna require little edits in alot of files, but im not to sure (never looked at how vB handles the time to be honest).

IMO I wouldent worry about it, even if your site is directed mainly towards people in Europe someone in japan or brazil may find it intresting.

TMM 04-29-2003 08:48 AM

Well I'd be happy to see visitors from any country, though since the site is in Norwegian that could make it somewhat less attractive... :)

Thanks for your help!

Brad 04-29-2003 08:48 AM

Acully, if you set your time offset in the admin cp incorrectly you can end up with the time zone you want as default, just make sure to edit the GTM out of the templates. But this is ganna break the user time offset, so I wouldent recomend it.

TMM 04-29-2003 08:54 AM

Ok, thanks...

Well it's not a big deal really, I'll put that issue on hold until I've taken care of more important hacking...

TMM


All times are GMT. The time now is 03:37 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01153 seconds
  • Memory Usage 1,719KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete