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
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.
Çözüldümü ?
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ı
hala çözemedim:(
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. ;)
olmadı hala yazılar gözükmüyor
güncel sorun çözülmedi