Uutiset:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu
Advertisement:

Dil sorunu

Aloittaja korsanuydu.com, toukokuu 08, 2009, 07:33:40 IP

« edellinen - seuraava »

korsanuydu.com

yeni tema yapıyorum ingilizce türkçe bir kaç çevirinin dil dosyalarında gösterilmesi gerekiyormuş ..
HardCoded Text
All text must be in the language files. If your theme uses new strings not provided by default in SMF then, create a ../languages/ThemeStrings.language.php file.

bu şkilde bana mesaj geldi

echo '<br />

    <table cellspacing="0" cellpadding="0" class="tborder" width="215">

        <tr>

            <td>

                <table cellspacing="1" width="100%" class="bordercolor">

                    <tr>

                        <td class="catbg"><a href="#" onclick="shrinkHeaderPI(!current_header_pi); return false;"><img id="upshrink_pi" src="', $settings['images_url'], '/', empty($options['collapse_header_pi']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" /></a> ', $txt['Permissions '], '</td>

                    </tr>

                </table>

            </td>

        </tr>



        <tr>

            <td><div id="upshrinkHeaderPI"', empty($options['collapse_header_pi']) ? '' : ' style="display: none;"', '>

                <table class="">

                    <tr>

                        <td>

                            <table>

                                <tr>

                                    <td><span class="smalltext">

            ', (allowedTo('post_new')) ? $txt['impossible_post_yes'] : $txt['impossible_post_no'], '<br />

            ', (allowedTo('post_reply')) ? $txt['impossible_reply_yes'] : $txt['impossible_reply_no'], '<br />

            ', (allowedTo('post_attachment')) ? $txt['impossible_attachment_yes'] : $txt['impossible_attachment_no'], '<br />

            ', (allowedTo('modify_own')) ? $txt['impossible_modify_yes'] : $txt['impossible_modify_no'], '<br /></span>

            <hr width="180" align="left" />

            <span class="smalltext">

            <a href="', $scripturl, '?action=help;page=post#bbcref">', $txt['bbc'], '</a> ', ($modSettings['enableBBC']) ? $txt['impossible'] : $txt['impossibleno'], '<br />

            <a href="', $scripturl, '?action=help;page=post#smileysref">', $txt['impossiblesmiley'], '</a> ', ($modSettings['enableBBC']) ? $txt['impossible'] : $txt['impossibleno'], '<br />

            <a href="', $scripturl, '?action=help;page=post#bbcref">', $txt['img'], '</a> ', (!in_array('img', (empty($modSettings['disabledBBC']) ? array() : explode(',', $modSettings['disabledBBC'])))) ? $txt['impossible'] : $txt['impossibleno'], '<br />

            ', $txt['html'], ' ', ($modSettings['enablePostHTML']) ? $txt['impossible'] : $txt['impossibleno'], '<br /></span>

                                    </td>

                                </tr>

                            </table>

                        </td>

                    </tr>

                </table>

            </div></td>

        </tr>

    </table>

    <br />';


yukardaki kodların ThemeStrings.Turkish.php ve ThemeStrings.English.php çıkması için ne yapmalıyım
', $txt['html'], ' ', ($modSettings['enablePostHTML']) ? $txt['impossible'] : $txt['impossibleno'],   örnek bu kod
bu dosyaları oluşturdum ama çıkmadı yardımlarınızı bekliyorum teşekkürler
SMF Pro ALPHA 2.0 RC4 Final Sürümü Yakında!
http://www.forum.birhayaldi.com

Yağız...

index.template.php dosyanizda bulun:
/* Show sticky and lock status seperate from topic icons? */
   $settings['seperate_sticky_lock'] = true;

Sonrasına ekleyin:
       loadLanguage('ThemeStrings');
Temanızın içerisine bir languages klasörü oluşturun. O dosyanın içerisine ThemeStrings.dil.php olarak dil dosyalarını atın.

Frestorm


korsanuydu.com

kodu doğru yere koydum ama çıkmadı çerivi yaptığım kodlar display ve message index dosylarında bun dan dolayı olurmu ThemeStrings.Turkish.php ve english olarak dosyada oluşturdum çıkmadı
SMF Pro ALPHA 2.0 RC4 Final Sürümü Yakında!
http://www.forum.birhayaldi.com

korsanuydu.com

SMF Pro ALPHA 2.0 RC4 Final Sürümü Yakında!
http://www.forum.birhayaldi.com

Hkan

Eğer temanın bağlantılı olduğu dil dosyalarında, temada tanımladığınız $txt kodları yoksa hata verir. Örneğin aşağıdaki kod:

echo '<br />

    <table cellspacing="0" cellpadding="0" class="tborder" width="215">

        <tr>

            <td>

                <table cellspacing="1" width="100%" class="bordercolor">

                    <tr>

                        <td class="catbg"><a href="#" onclick="shrinkHeaderPI(!current_header_pi); return false;"><img id="upshrink_pi" src="', $settings['images_url'], '/', empty($options['collapse_header_pi']) ? 'collapse.gif' : 'expand.gif', '" alt="*" title="', $txt['upshrink_description'], '" /></a> ', $txt['Permissions '], '</td>

                    </tr>

                </table>

            </td>

        </tr>



        <tr>

            <td><div id="upshrinkHeaderPI"', empty($options['collapse_header_pi']) ? '' : ' style="display: none;"', '>

                <table class="">

                    <tr>

                        <td>

                            <table>

                                <tr>

                                    <td><span class="smalltext">

            ', (allowedTo('post_new')) ? $txt['impossible_post_yes'] : $txt['impossible_post_no'], '<br />

            ', (allowedTo('post_reply')) ? $txt['impossible_reply_yes'] : $txt['impossible_reply_no'], '<br />

            ', (allowedTo('post_attachment')) ? $txt['impossible_attachment_yes'] : $txt['impossible_attachment_no'], '<br />

            ', (allowedTo('modify_own')) ? $txt['impossible_modify_yes'] : $txt['impossible_modify_no'], '<br /></span>

            <hr width="180" align="left" />

            <span class="smalltext">

            <a href="', $scripturl, '?action=help;page=post#bbcref">', $txt['bbc'], '</a> ', ($modSettings['enableBBC']) ? $txt['impossible'] : $txt['impossibleno'], '<br />

            <a href="', $scripturl, '?action=help;page=post#smileysref">', $txt['impossiblesmiley'], '</a> ', ($modSettings['enableBBC']) ? $txt['impossible'] : $txt['impossibleno'], '<br />

            <a href="', $scripturl, '?action=help;page=post#bbcref">', $txt['img'], '</a> ', (!in_array('img', (empty($modSettings['disabledBBC']) ? array() : explode(',', $modSettings['disabledBBC'])))) ? $txt['impossible'] : $txt['impossibleno'], '<br />

            ', $txt['html'], ' ', ($modSettings['enablePostHTML']) ? $txt['impossible'] : $txt['impossibleno'], '<br /></span>

                                    </td>

                                </tr>

                            </table>

                        </td>

                    </tr>

                </table>

            </div></td>

        </tr>

    </table>

    <br />';


Burada $txt['Permissions '] kodunda sanırım bir hata yapmışsınız. Permissions kelimesinden hemen sonra bir boşluk bırakmışsınız. Bundan dolayı hata veriyor olabilir. ;)

korsanuydu.com

olmadı hala yazılar gözükmüyor
SMF Pro ALPHA 2.0 RC4 Final Sürümü Yakında!
http://www.forum.birhayaldi.com

korsanuydu.com

güncel sorun çözülmedi
SMF Pro ALPHA 2.0 RC4 Final Sürümü Yakında!
http://www.forum.birhayaldi.com

Advertisement: