Simple Machines Community Forum

SMF Support => Language Specific Support => Topic started by: ep98 on July 13, 2006, 08:49:05 AM

Title: Bulgarian translation and $forum_copyright
Post by: ep98 on July 13, 2006, 08:49:05 AM
The translation is nearly done (allmost everything is covered) except lines 413-414
$forum_copyright =


$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Powered by ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Free Forum Software" target="_blank">SMF &copy; 2001-2005, Lewis Media</a>';


Few words have to be changed too here, but Forum says, u are use illegal version of SMF or something like that.

First version have to be like this (total conversion, which I dont like it, but some ppl prefer it).

$forum_copyright = '<a href="http://www.simplemachines.org/" title="Форум Опростени Машини" target="_blank">Създадено с ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Безплатен софтуер за създаване на форуми" target="_blank">SMF &copy; 2001-2005, Lewis Media</a>';


or version 2, which is more better to me


$forum_copyright = '<a href="http://www.simplemachines.org/" title="Simple Machines Forum" target="_blank">Създадено с ' . $forum_version . '</a> |
<a href="http://www.simplemachines.org/about/copyright.php" title="Безплатен софтуер за създаване на форуми" target="_blank">SMF &copy; 2001-2005, Lewis Media</a>';


both variations cant be done, is there a way (hopefuly for the next RC) to change this 2 tags ?

Thanks in advance.
Title: Re: Bulgarian translation and $forum_copyright
Post by: Harzem on July 13, 2006, 08:59:26 AM
You won't change or translate the copyright. It should stay as it is in english file.
Title: Re: Bulgarian translation and $forum_copyright
Post by: ep98 on July 13, 2006, 09:19:23 AM
ok, will remain as is, next trouble

the translation is in Unicode, all settings are:


$txt['lang_locale'] = 'bg_BG.UTF-8';
$txt['lang_dictionary'] = 'bg';
$txt['lang_spelling'] = 'bulgarian';

// Character set and right to left?
$txt['lang_character_set'] = 'UTF-8';
$txt['lang_rtl'] = false;


We are using cyrillic, and ltr direction.

Everything during user posts are ok, except the translated symbol for R, in cyrillic comes as english P, but now looks as ?


R in English, Р in Bulgarian


Here is displayed without problems, but not and on RC2
http://forums.cms-bg.org/index.php?topic=6.msg13#msg13

Any suggestions ?

The enviroment is:
PHP 4.4.0
Apache 2.0.55
FreeBSD x86
Title: Re: Bulgarian translation and $forum_copyright
Post by: Compuart on July 13, 2006, 03:42:23 PM
Try:
$txt['lang_character_set'] = 'windows-1251';
because that's the default cyrillic character set. Unless you're using a UTF-8 editor (with the document settings configured to be UTF-8), your text documents are most likely in this character set.
Title: Re: Bulgarian translation and $forum_copyright
Post by: ep98 on July 14, 2006, 03:42:31 AM
Do not "force me" to use the Russian charset CP1251
I allready have over 50 GPL Applications translated to Bulgarian in UTF-8, all works except SMF 1.1 RC2

Bug is discovered, it depend on the main default SMF Core theme. now the same forum uses pnpn 1.2 and works just fine.

After discovering of UTF-8 all language incompatibilites goes in hell , specialy for multi language content sites, it will be better to set the core to USE UTF-8 by default instead of ISO8859-1 it will be much more compatible.
Title: Re: Bulgarian translation and $forum_copyright
Post by: Compuart on July 14, 2006, 06:46:52 AM
Of course you are free to chose the character set yourself. Using UTF-8 should be fine in most cases, but it's not fully supported by SMF 1.1 RC2 yet. SMF 1.1 RC3 will have full UTF-8 support.
Title: Re: Bulgarian translation and $forum_copyright
Post by: ep98 on July 14, 2006, 04:27:43 PM
Yep few "manual" intervention have to be done to have fully supported UTF-8 SMF 1.1 RC2, suggestions in this style - "use the default or mostly used charset" is not a good way, better developer of the default theme have to check the code, which is better for manualy patched SMF :)

Pn-Pn 1.2 Theme designer is a step forward from the one created SMF 1.1 RC2 default core theme :)