vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Static page in the appropiate language of the user. (https://vborg.vbsupport.ru/showthread.php?t=268328)

srsiempre 08-10-2011 05:50 PM

Static page in the appropiate language of the user.
 
What is the best strategy for a static page in the appropriate language of the user?

We have static pages that show basic information about our organization and on the web. Now we have Spanish, English and local language. When a user clicks on the page, we would like to display the text for the language of your profile (or your choice in the bottom of the page
http://img4.imageshack.us/img4/8489/language.th.png).

We thought that we could use a PHP Direct Evaluation, including any conditions to assess the value of the user's language, but we have no idea where to start.

Any hints?

Thank you.

kh99 08-10-2011 06:37 PM

I'm not sure of the best way, but couldn't you make the link a phrase (or make the base part of the link a parameter to a phrase), then provide a "translation" of that phrase for each language, so that the translation results in a link to a different static html file name for each language?


All times are GMT. The time now is 04:26 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.01060 seconds
  • Memory Usage 1,709KB
  • 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)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)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