Free articles, health educational articles, publish submit articles. 
               
               
  Number Times Read : 116    Word Count: 513  
Categories

Acne (1417)
Addiction (51)
Adsense (102)
Adult (36)
Advertising (1060)
Advice (421)
Affiliate-Programs (346)
Aging (139)
Alternative-Medicine (595)
Article-Marketing (2045)
Article-Writing (193)
Arts and Crafts (750)
Arts-Entertainment (2841)
Ask-An-Expert (117)
Automotive (1574)
Awards (12)
Book-Marketing (106)
Book-Reviews (211)
Break-up (104)
Breast-Cancer (104)
Broadband-Internet (1033)
Business (17423)
Business Management (364)
Business-Opportunities (584)
Cancer Survival (67)
Career (693)
Cars-and-Trucks (195)
Causes-Organizations (10)
Cheating (98)
Colon-Cancer (12)
Communications (450)
Computer-Certification (266)
Computer-Games (161)
Computers (2885)
Computers and Technology (1188)
Consumer-Electronics (233)
Cosmetic-Surgery (85)
Culture (79)
Culture-Society (2404)
Data-Recovery (32)
Death (20)
Death-Dying (7)
Debt-Consolidation (169)
Dentistry (236)
Digital-Products (42)
Disease-Illness (379)
Drop-Shipping (9)
Email-Marketing (55)
Environment (467)
Etiquette (7)
Eye-Care (55)
Family Concerns (1264)
Fashion (2202)
Finance (8807)
Finances (800)
Financial-Planning (40)
Fitness-Equipment (879)
Food and Drinks (614)
Food-Drink (477)
Free-Stuff (7)
Gambling-Casinos (39)
Gambling-Problem (6)
Games (244)
Games Consoles (34)
Hair-Loss (275)
Health-Fitness (7725)
Hobbies (1828)
Home Management (2464)
Home-Based-Business (936)
Home-Family (2222)
Home-Improvement (2863)
Human-Resources (50)
Import-Export (12)
Infants-Toddlers (24)
Information-Technology (146)
Inspirational (29)
Intellectual-Property (24)
Interior-Design (285)
Internet (1241)
Internet-Business (2591)
Internet-Law (61)
Internet-Marketing (681)
Jobs (190)
Legal (1101)
Logistics (128)
Martial-Arts (19)
Medical Business (236)
Medical-Business (27)
Medicines and Remedies (438)
Medicines-Remedies (44)
Mens-Issues (47)
Mobile-Phones (103)
New-Age (13)
Online-Shopping (236)
Operating-Systems (4)
Opinions (62)
Pay-Per-Click (9)
Personal-Development (74)
Pets (1086)
Pets-Animals (217)
Politics (79)
PPC-Advertising (33)
Product-Reviews (808)
Prostate-Cancer (2)
Real Estate (1298)
Recreation (320)
Recreation-Sports (7108)
Reference-Education (4567)
Relationships (1129)
Religion (216)
Self Help (515)
Self-Improvement (492)
Short Stories (7)
Site-Promotion (18)
Skin-Cancer (6)
Social-Networking (57)
Society (326)
Spyware-Viruses (12)
Stock-Market (61)
Stress-Management (75)
Tools-Resources (50)
Traffic-Generation (90)
Vehicles (493)
Video-Conferencing (9)
Web-Design (1082)
Web-Development (476)
Web-Hosting (191)
Weight-Loss (532)
Wellness, Fitness and Di (1529)
Womens Interest (271)
World Affairs (36)
Writing-Speaking (532)
 
Stats
Total Articles: 107445
Total Authors: 19168
Total Downloads: 10088918


Newest Member
Mariad Warnes

 
Bookmark and Share


   

Tips on Making Website Globalized



By : Alan Smith    99 or more times read
Submitted 2010-01-25 05:22:43
Whatever website text be it a word, sentence, paragraph, link or whatever is stored in a backend database and accessed by a key i.e. an integer, and a language identifier, EN for example. You may have records like: 1, EN, "Hello" and 1, TU also you might have fields that indicates on what page the text can be found that is useful later in the translation application.

For multiple languages each website content page exists one time. There is definitely no need to replicate the source code for each page. Using this approach we can build a php base application and everywhere text appeared in the HTML will be replaced with a php function that simply look like this: p("Hello",1) Here the function 'p' prints the word "Hello" in whatever the language is active at the time. Let say if English is active the function simply returns the English text that was sent to it. But if another language is in use then the function looks up that text entry in the required language and returns it. Here the active language can be stored in a GET or Session variable.

The very obvious benefit of this approach is that the text "Hello" remains in its rightful place in the page source and is easily readable and maintainable. Sometimes other approaches leaves you with nothing but a cryptic text key and you have to look up the text manually to be able to read the HTML.

Probably you aren't interested in keeping track of a large database of text id's by hand for example, Hello=1, Good bye=2, there are simple approaches to automation this. For example, when programmer writes "Hello" they simply code p("Hello"). Later on an utility runs and find the virgin "Hello", assigns it an id and simply updates the code to look like p("Hello",1). Here the same utility can check existing text entries to see if the English text has been updated or not and then make a note in the database that will also alert translators that the translation must be updated. In database people generally keep track of the current English text and the previous English text so that translators can see history of the text change.

Now what about the efficiency you ask? Just to avoid database lookups for every single text display, generally developer loads entire text database for a particular language into a Session array variable whenever user changes the language. This is fast and user does not notice this. Let say, if you have large website then you might chose to load only selected portions of the website into the array at any one time. Here the 'p' function then does a very fast array lookup to return the appropriate text. Definitely the base language requires no lookup at all since it is already passed to the function.

Copyright © 2010
Author Resource:- SPINX, Inc. - Web Design West Hollywood Company offers services like Website Design Portfolio, Website Design Bay Area, Website Design San Diego & also across the globe.
Article From Freebie Articles

Related Articles

HTML Ready Article. Click on the "Copy" button to copy into your clipboard.




Firefox users please select/copy/paste as usual
New Members
select
Sign up
select
learn more
 
Nav Menuw
Home
Login
Submit Articles
Submission Guidelines
Top Articles
Link Directory
About Us
Contact Us
Privacy Policy
RSS Feeds

Actions
Print This Article
Add To Favorites

 
Sponsors

HostPapa 100% Green Energy Hosting $5.95 per month

 

Powered By: Freebie-Articles.com - Sponsored By: Myspace Layouts - HTML Sitemap