8
Making the World Wide Web – World Wide! An overview All Rights Reserved Target Integration Ltd

Making the world wide web world wide!

Embed Size (px)

DESCRIPTION

Presentation delivered during Presentations at Target Integration by Target Integration Employees.

Citation preview

Page 1: Making the world wide web world wide!

Making the World Wide Web – World Wide!An overview

All Rights Reserved Target Integration Ltd

Page 2: Making the world wide web world wide!

g11n (or) i18n, l10n

Internationalization is the design and development of a product, application or document content that enables easy localization for target audiences that vary in culture, region, or language without engineering changes.Localization refers to the adaptation of a product, application or document content to meet the language, cultural and other requirements of a specific target market (a "locale").

All Rights Reserved Target Integration Ltd

Page 3: Making the world wide web world wide!

Localizing a website means ..

Numeric, date and time formatsUse of currencyKeyboard usageCollation and sortingSymbols, icons and colorsText and graphics containing references to objects, actions or ideas which, in a given culture, may be subject to misinterpretation or viewed as insensitive.Varying legal requirements

All Rights Reserved Target Integration Ltd

Page 4: Making the world wide web world wide!

And making a internationalized website requires …

Designing and developing in a way that removes barriers to localization or international deployment. For eg, use of unicode, correct way of handling stringsProviding support for features that may not be used until localization occurs. Eg. DTD to support bidirectional text, CSS support for vertical textEnabling code to support local, regional, language, or culturally related preferences.Separating localizable elements from source code or content

All Rights Reserved Target Integration Ltd

Page 5: Making the world wide web world wide!

Character Sets

ASCII, ISO-8859 – single byte charactersAsian Character sets need more than 7 bits to represent their characters. So, multibyte.UTF – Unicode Transformation FormatUTF-8 : each character is encoded in 1 to 4 octets (8 bits bytes) (1 octet = 8 bits)

All Rights Reserved Target Integration Ltd

Page 6: Making the world wide web world wide!

To be taken care in html & css..Mention character encoding

HTTP header: AddType 'text/html; charset=UTF-8' htmlHTML : Meta tagCSS : @charset "UTF-8";

Mention default language of the document<html lang="en-US">If the language changes somewhere in between the document, mention it specifically for that element. For eg. <p>I’m going to the <b lang="fr-FR">Café<b></p>Content-Language: en

Mention direction of the content in the page, eg. <html dir="rtl" lang="ar">Text size in translationForms should accept utf-8 data and the backend scripts can ensure it by utf-8 detection.

All Rights Reserved Target Integration Ltd

Page 7: Making the world wide web world wide!

To be taken care in php & mysql…

PHP : Iconv & mbstring functions for specific string manipulationsEnable default character set so that all (most) of the string functions use that encodingdefault_charset = "utf-8“ (php.ini)

Mysql : character_set_database & collation_database in my.cnf

All Rights Reserved Target Integration Ltd

Page 8: Making the world wide web world wide!

Tip of the day!

Usevar i = count(array);for (var j = 0; j < i; j++) {}

Instead of for (var j = 0; j < count(array); j++) {}

Thank you!

All Rights Reserved Target Integration Ltd