Skip to content

Commit

Permalink
Merge pull request #27 from ramazansubasi/master
Browse files Browse the repository at this point in the history
Turkish Language File added + No Print for Guests -- P.S: this plugin doesn't conform to my writing rules, but I can't be arsed to 'fix' it. I can't be anal all the time...
  • Loading branch information
Nao committed Apr 3, 2015
2 parents 71274c0 + 35245e3 commit 38ae6cd
Show file tree
Hide file tree
Showing 7 changed files with 96 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>
25 changes: 25 additions & 0 deletions mentions/plugin.turkish.php
@@ -0,0 +1,25 @@
<?php
/**
* WeMentions' plugins language file
*
* @package Dragooon:WeMentions
* @author Ramazan Subaşi "subram" <Email subasiramazan@gmail.com> <Url http://ramazansubasi.com>
* @copyright 2013, Shitiz "Dragooon" Garg <mail@dragooon.net>
* @license
* Licensed under "New BSD License (3-clause version)"
* http://www.opensource.org/licenses/BSD-3-Clause
* @version 1.0
*/

$txt['notifier_mentions_title'] = 'Uye Etiketleme';
$txt['notifier_mentions_desc'] = 'Uyelerin diger uyeleri @<uye adı> seklinde etiketlemesine ve bildirimlere izin ver';
$txt['notifier_mentions_subject'] = 'Bir yorumda senden bahsedildi!';
$txt['notifier_mentions_html'] = '{MEMBER_LINK} Bu yorumda etiketlendin "{OBJECT_LINK}".';
$txt['notifier_mentions_text'] = '{MEMBER_NAME} seni su yorumda etiketledi: "{OBJECT_NAME}". Yorumu buradan okuyabilirsin:
{OBJECT_URL}';
$txt['permissionname_mention_member'] = 'Uye Etiketleme';
$txt['permissionhelp_mention_member'] = 'Uyeleri @ isaret ile etiketlemeye ve bildirimlere izin verir';



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 38ae6cd

Please sign in to comment.