Skip to content

Commit

Permalink
Added No Print For Guests Plugin and Topic Solved Turkish Lang Files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ramazan Subaşi committed Oct 19, 2014
1 parent 38290d0 commit 35245e3
Show file tree
Hide file tree
Showing 6 changed files with 71 additions and 0 deletions.
9 changes: 9 additions & 0 deletions NoPrintForGuests/README.md
@@ -0,0 +1,9 @@
No Print For Guests
-------------------

Simple plugin which disables print function of topics for Guests. Nothing more.

Installation
------------

Drop `nopluginforguests` folder into /<your-wedge-installation>/plugins and activate it via ACP.
19 changes: 19 additions & 0 deletions NoPrintForGuests/noprintforguests/NoPrintForGuests.php
@@ -0,0 +1,19 @@
<?php

function npfg_display_main(){

global $context;
if(we::$is_guest){ // If user is guest, delete print button
unset($context['nav_buttons']['normal']['print']);
}

}

function npfg_load_theme(){
global $context;
log_error(print_r($context, true));
if(we::$is_guest && $context['action'] == 'printpage'){ // If user is guest, and action is printpage, abort it
redirectexit();
}

}
12 changes: 12 additions & 0 deletions NoPrintForGuests/noprintforguests/plugin-info.xml
@@ -0,0 +1,12 @@
<?xml version="1.0" standalone="yes" ?>
<plugin id="CerealGuy:NoPrintForGuests">
<name>No Print For Guests</name>
<author>CerealGuy</author>
<description>Disable Print for Guests</description>
<version>1.0</version>
<hooks>
<function point="display_main" function="npfg_display_main" filename="$plugindir/NoPrintForGuests" />
<function point="load_theme" function="npfg_load_theme" filename="$plugindir/NoPrintForGuests" />
</hooks>

</plugin>
21 changes: 21 additions & 0 deletions topic_solved/lang/TopicSolved-Admin.turkish.php
@@ -0,0 +1,21 @@
<?php

$txt['topicsolved'] = 'Konu Çözüldü';
$txt['topicsolved_style'] = 'Solved Topics are displayed with a different color in the list of topics. You can configure that here - remember, topics have two different background colors, and both are configured here.';
$txt['topicsolved_bg1'] = 'The darker column background-color';
$txt['topicsolved_bg2'] = 'The lighter column background-color';
$txt['topicsolved_fg'] = 'Metin Rengi';
$txt['topicsolved_boards'] = 'Boards that topics can be solved in';

$txt['modlog_ac_solve'] = 'Mark &quot;{topic}&quot; as solved';
$txt['modlog_ac_unsolve'] = 'Mark &quot;{topic}&quot; as unsolved';

$txt['topicsolved_own'] = 'Kim kendi başlıklarını Çözüldü olarak İşaretleyebilir?';
$txt['topicsolved_any'] = 'Kim herhangi bir başlığı Çözüldü olarak işaretleyibilir?';
$txt['permissionname_topicsolved'] = 'Çözüldü olarak çözüldü';
$txt['permissionname_topicsolved_own'] = 'Kendi konuları';
$txt['permissionname_topicsolved_any'] = 'Herhangi bir konu';
$txt['permissiongroup_ts_group'] = 'Konu Çözüldü';

$txt['group_perms_name_topicsolved_own'] = 'Kendi başlıklarını Çözüldü olarak işaretle';
$txt['group_perms_name_topicsolved_any'] = 'Herhangi bir başlığı Çözüldü olarak işaretle';
7 changes: 7 additions & 0 deletions topic_solved/lang/TopicSolved-Display.turkish.php
@@ -0,0 +1,7 @@
<?php

$txt['topic_was_solved_missing_author'] = 'Bu %1$s Tarafından Çözüldü Olarak İşaretlendi ';
$txt['topic_was_solved_author'] = 'Bu konu Çözüldü Olarak İşaretlendi,';
$txt['topic_was_solved_non_author'] = 'Bu Konu %1$s Tarafından %2$s Tarihinde Çözüldü Olarak İşaretlendi.';
$txt['topic_mark_solved'] = 'Çözüldü Olarak İşaretle';
$txt['topic_mark_unsolved'] = 'Çözülmedi Olarak İşaretle';
3 changes: 3 additions & 0 deletions topic_solved/lang/TopicSolved-MessageIndex.turkish.php
@@ -0,0 +1,3 @@
<?php

$txt['quick_mod_marksolved'] = 'Çözüldü/Çözülmedi olarak İşaretle';

0 comments on commit 35245e3

Please sign in to comment.