Skip to content

Commit

Permalink
Unicode added to translation class and usage with Tamil in example re…
Browse files Browse the repository at this point in the history
…gister.php

Indian Flag image taken from http://www.famfamfam.com/lab/icons/flags/famfamfam_flag_icons.zip
Flag png image dimensions 16 x 11 px, 96 dpi
  • Loading branch information
apmuthu committed Oct 17, 2014
1 parent a8c0901 commit e1dbf81
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 6 deletions.
11 changes: 9 additions & 2 deletions translation/css/default.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ h4 {
form.register{
width:800px;
margin: 20px auto 0px auto;
height:530px;
height:580px;
background-color:#fff;
padding:5px;
-moz-border-radius:20px;
Expand All @@ -67,7 +67,7 @@ form.register fieldset.row1
margin-bottom:15px;
}
form.register fieldset.row1 label{
width:140px;
width:160px;
float: left;
text-align: right;
margin-right: 6px;
Expand Down Expand Up @@ -242,5 +242,12 @@ p.agreement label{
background:transparent url(../img/us.png) no-repeat top left;
margin:3px;
}
.flag_tamil{
width:16px;
height:11px;
float:right;
background:transparent url(../img/ta_in.png) no-repeat top left;
margin:3px;
}


Binary file added translation/img/ta_in.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 10 additions & 4 deletions translation/register.php
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
<?php
require_once('class.translation.php');

if(isset($_GET['lang']))
$encoding = "charset=ISO-8859-15";
if(isset($_GET['lang'])) {
$translate = new Translator($_GET['lang']);
else
if (strtolower($_GET['lang']) == 'ta_in') $encoding = 'UTF-8';
} else
$translate = new Translator('en');

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title><?php $translate->__('CSS Registration Form'); ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-15"/>
<meta http-equiv="Content-Type" content="text/html; <?php echo $encoding; ?>"/>
<link rel="stylesheet" type="text/css" href="css/default.css"/>
</head>
<body>
<form action="" class="register">
<h1><?php $translate->__('Registration'); ?><a class="flag_deutsch" title="deutsch" href="register.php?lang=de"></a><a class="flag_english" title="english" href="register.php"></a></h1>
<h1><?php $translate->__('Registration'); ?>
<a class="flag_tamil" title="tamil" href="register.php?lang=ta_in"></a>
<a class="flag_deutsch" title="deutsch" href="register.php?lang=de"></a>
<a class="flag_english" title="english" href="register.php"></a></h1>
<fieldset class="row1">
<legend><?php $translate->__('Account Details'); ?></legend>
<p>
Expand Down
Binary file modified translation/screenshot.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 43 additions & 0 deletions translation/ta_in.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
CSS Registration Form=CSS பதிவு படிவம்
Registration=பதிவு
Account Details=கணக்கு விவரம்
Email=மின்னஞ்சல்
Repeat email=மறுமுறை மின்னஞ்சல்
Password=கடவுச்சொல்
Repeat Password=மறுமுறை கடவுச்சொல்
obligatory fields=கடமையான துறைகள்
Personal Details=சொந்த விவரங்கள்
Name=பெயர்
Phone=தொலைபேசி
Street=தெரு
City=நகரம்
Country=நாடு
United States=அமெரிக்கா
Website=இணையத்தளம்
Further Information=மேலும் தகவல்
Gender=பால்
Male=ஆண்
Female=பெண்
Birthdate=பிறந்தநாள்
January=ஜனவரி
February=பிப்ரவரி
March=மார்ச்
April=ஏப்ரல்
May=மே
June=ஜூன்
July=ஜூலை
August=ஆகஸ்ட்
September=செப்டம்பர்
October=அக்டோபர்
November=நவம்பர்
December=டிசம்பர்
Nationality=தேசியம்
Helpful Information=உதவியாக தகவல்கள்
Children=பிள்ளைகள்
Here comes some explaining text, sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo.=இங்கே சில விளக்கி உரை வருகிறது, sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, Eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo .
Terms and Mailing=விதிமுறைகள் மற்றும் அஞ்சல்
I accept the=நான் ஏற்றுக்கொள்கிறேன்
Terms and Conditions=விதிமுறைகள் மற்றும் நிபந்தனைகள்
I want to receive personalized offers by your site=நான் உங்கள் தளத்தில் மூலம் தனிப்பயனாக்கப்பட்ட சலுகைகளை பெற வேண்டும்
Allow partners to send me personalized offers and related services=கூட்டாளிகள் என்னை தனிப்பயனாக்கப்பட்ட சலுகைகள் மற்றும் தொடர்புடைய சேவைகளை அனுப்ப அனுமதிக்கவும்
Register=பதிவு செய்ய

0 comments on commit e1dbf81

Please sign in to comment.