Showing posts with label internationalization. Show all posts
Showing posts with label internationalization. Show all posts

Wednesday, November 28, 2007

UTF-8 issues in Joomla 1.0.x series - a guid


Is there a workaround to apply utf-8 in Joomla 1.0.x series?
Yes. Here is a quick guideline to getting Joomla 1.0.x to work with utf-8
- use MySQL version 4.1.2 or newer (older versions don't support utf-8).
- create an empty database manually before installing Joomla. Set the character set to utf8 when creating with some collation (utf8_general_ci is the default and should be OK).
- convert the language files to utf-8 (all language files including for editors, components etc.). Make sure NOT to save with the utf-8 BOM header option.
- Install Joomla using the pre-existing database. After installation check that the database has utf8 encoding for all text fields (just in case Joomla created a new database and is not working on the pre-created one).
- set 'charset=utf-8' in the _ISO define in the language file
- You should uncomment one line of code in the includes/database.php file at about line 102 (second line below)
Code:
$this->_table_prefix = $table_prefix;
//@mysql_query("SET NAMES 'utf8'", $this->_resource);    // THIS IS THE LINE TO UNCOMMENT
$this->_ticker = 0;
$this->_log = array();

Please note that the above does not make Joomla 1.0.x fully utf-8 compatible. All string functions will still be using singlebyte character functions. This works well in most cases (no guarantees). There will be some instances of garbage characters especially with diacritic Latin characters and logical error in searches and filtering features.


Blogged with Flock

Friday, November 23, 2007

Joomla International (Turkish)


Joomlayı kurdunuz ancak bazı karakter sorunlarınız var. Ne yapmalısınız?

1-Öncelikle Joomlanın dilini Türkçe yapmalısınız. Bunun için Site Genel Ayarları ndan Yerel sekmesine gelin:

Dil: Türkçe

Ülke Yereli: tr_TR olmalıdır. Tabi bunun için sürümünüz içinde Türkçe dil dosyası bulunmalıdır.

Bu ayar sonucunda sitenize eklediğiniz tüm bileşenlerde default dil olarak Türkçeyi arayacaktır. Eğer bileşenin Türkçe dil dosyası yoksa ingilizce çalışacaktır.

2- Temanızın index.php dosyasının en üstünde;

<?xml version="1.0" encoding="iso-8859-1"?>  satırını
<?xml version="1.0" encoding="iso-8859-9"?>  ile değiştirin.

3- Türkçe Dil dosyası içindeki turkish.php dosyasının üst satırlarında

<?php header ("Content-Type: text/html; charset=ISO-8859-9"); ?>   satırının olduğundan emin olun.

4-Bileşen, tema veya modüller kurulduktan sonra karakter hataları veriyorsa;
Kurmadan önce zipleri açıp; xml dosyasının en üst satırında:

<?xml version="1.0" encoding="iso-8859-9"?>  olduğundan emin olun.

5- Veritabanı işlemlerinde de her zaman latin_5_turkish_ci  seti kullanmaya dikkat edin.Böylece büyük- küçük harf hassasiyeti olmayan karşılaştırma seti kullanmış olacaksınız.


Blogged with Flock