Simple Machines Community Forum

SMF Support => Türkçe Bölümü (Turkish) => Language Specific Support => Arşiv => Aiheen aloitti: korsanuydu.com - toukokuu 08, 2009, 07:33:40 IP

Otsikko: Dil sorunu
Kirjoitti: korsanuydu.com - toukokuu 08, 2009, 07:33:40 IP
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
Otsikko: Re: Dil sorunu
Kirjoitti: Yağız... - toukokuu 08, 2009, 08:12:11 IP
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.
Otsikko: Re: Dil sorunu
Kirjoitti: Frestorm - toukokuu 08, 2009, 10:53:03 IP
Çözüldümü ?
Otsikko: Re: Dil sorunu
Kirjoitti: korsanuydu.com - toukokuu 09, 2009, 02:25:11 AP
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ı
Otsikko: Re: Dil sorunu
Kirjoitti: korsanuydu.com - toukokuu 09, 2009, 03:40:09 IP
hala çözemedim:(
Otsikko: Re: Dil sorunu
Kirjoitti: Hkan - toukokuu 09, 2009, 03:51:14 IP
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. ;)
Otsikko: Re: Dil sorunu
Kirjoitti: korsanuydu.com - toukokuu 10, 2009, 02:39:53 AP
olmadı hala yazılar gözükmüyor
Otsikko: Re: Dil sorunu
Kirjoitti: korsanuydu.com - toukokuu 10, 2009, 04:37:30 IP
güncel sorun çözülmedi