Recent Topics

1 Jan 22, 2005 05:17    

Hi , I am so new to b2, and PHP .

I figured out I have to change _Main.php
and I have changed many default values of the Custom Skin to my own language (Kurdish ) .

but I don't know how to change the Comment Section .

for example when Peopel go to comment, they see :

Name :
Adress:
Message :
Blah Blah ...

I want to change these texts into Kurdish too ! but I cant find them in _Menu.php ...can anybody help ?
and also some other "Text Values" for example . when they click on Recent Comments, it says
" In response to: ..."
I want to convert this to Kurdish too...how I can do it ?

+ do really know what otherskin files are for , (except Menu.php and Custom.css) the other Skin files seem Useless..

My site : http://berreza.medyadaily.com

2 Jan 22, 2005 05:48

You will find the English text displayed in skins/_feedback.php (or possibly skins/skinname/_feedback.php towards the end of the file after

<!-- form to add a comment -->

You might consider making a whole new language file. Everything inside a "T_('blah blah blah')" can be translated through a language file. Being an American I figured English was close enough for me so I never bothered learning, but http://b2evolution.net/man/2004/06/16/localization_howto is the instructions for creating a new language file. You will need a free software called poedit and a bit of patience, but once you have the language done it can be included in b2evolution's future releases. I can't imagine the dev team would not include a new language!

One day I want to hang glide Kurdistan. During the war I couldn't understand the people who had to watch all the time, but when your mountains started showing up I couldn't stop! I decided if ever I could get me and a hang glider over there I would foot launch it and soar your mountains. Probably never happen - but I can dream!

3 Jan 22, 2005 06:04

Oh ! yeah Right now I found out the problem ,
in the Custom Skin's Folder
I had tried to edit the _FeedBack.php but there was nothing there except a link to import the _feedback in the "root" directory .
in fact I had to edit the _Feedback.php in the root skin folder.

thanks !
but still have a problem , when it generates the last comment page
"berreza.medyadaily.com/index.php?disp=comments " this page's encoding (charpset) is

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">


for middle eastern languages like Kurdi ,Farsi ,Arabic and... the Unicode (Charpset ) must be :UTF-8
I don't know how we can make , B2 to generate this page in UTF

(i just know a little PHP , can you tell me where should I add this code

<meta http-equiv="Content-Type" content="text/html; charset="utf-8">

in that PHP file ? normally in HTML it should be between HEAD, or before Head
)

One day I want to hang glide Kurdistan. During the war I couldn't understand the people who had to watch all the time, but when your mountains started showing up I couldn't stop! I decided if ever I could get me and a hang glider over there I would foot launch it and soar your mountains. Probably never happen - but I can dream!


Thanks for both help and your nice heart !
Kurdistan is always , a freind you westerns , and you always feel welcome here .
and it would be my pleasure to help to tranlate it to Kurdish .

(you can see a my photoblog , contain kurdistan photos ,
www.fonf.medyadaily.com
)

4 Jan 22, 2005 06:49

That line comes from _main.php but the actual charset comes from the locale selection.

<meta http-equiv="Content-Type" content="text/html; charset=<?php locale_charset() ?>" />

If you make a Kurdish locale, which you can do in the back office on the settings then regional tab, you could tell it the correct encoding as well as how you want your dates and times displayed. Plus you can add the Kurdish flag if you want. After you make up the locale you would have to set your blog and your profile to use the new locale. I THINK that's all it will take.


Form is loading...