<?php
/**
* Lithuanian translation for pun_bbcode extension.
*
* Feel free to drop me an email whenever new translations are required.
*
* @author Artūras 'arturaz' Šlajus <x11@arturaz.net>
* @license CC BY-SA <http://creativecommons.org/licenses/by-sa/3.0/>
*/
if (!defined('FORUM')) die();
$lang_pun_bbcode = array(
'Pun BBCode Bar' => 'Naudoti BB kodo juostelę',
'Notice BBCode Bar' => 'Leisti naudotis BB kodo juostele rašant žinutes (BB kodo išplėtimas)',
'BBCode Graphical' => 'Mygtukams naudoti ikonėles',
'BBCode Graphical buttons' => 'BB kodo juostelėje mygtukams naudoti ikonėles'
)
?>
1 2011-08-10 10:09
Topic: [pun_bbcode] Lithuanian translation (0 replies, posted in PunBB 1.3 extensions)
2 2011-08-10 09:57
Re: Karma (pun_karma) (23 replies, posted in Supported extensions)
lang/Lithuanian
<?php
/**
* Lithuanian language file for pun_karma extension.
*
* If any new strings are added please email them to me and I'll happily
* translate them.
*
* @author Artūras 'arturaz' Šlajus <x11@arturaz.net>
* @license http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
* @package pun_karma
*/
if (!defined('FORUM')) die();
$lang_pun_karma = array(
'User Karma' => 'Vartotojo karma:',
'Minus mark cancel' => 'Karmos mažinimą uždraudė forumo administracija.',
'Vote error' => 'Tu negali balsuoti už savo žinutę',
'Already voted' => 'Tu jau balsavai už šią žinutę.',
'Cancel error' => 'Negali atšaukti savo karmos paskyrimo žinutei, už kurią nebalsavai.',
'Karma features' => 'Pun karma savybės',
'Karma legend' => 'Pun karma parinktys',
'Disable minus' => 'Uždrausti mažinti karmą',
'Disable minus info'=> 'Pažymėk, jeigu nori neleisti vartotojams mažinti kitų žmonių karmos.',
'Plus interval' => 'Karmos didinimo intervalas',
'Plus interval info'=> 'Laiko tarpas minutėmis, kuris turi praeiti tarp dviejų karmos padidinimų.',
'Minus interval' => 'Karmos mažinimo intervalas',
'Minus interval info'=> 'Laiko tarpas minutėmis, kuris turi praeiti tarp dviejų karmos sumažinimų.',
'Plus interval rest' => 'Turi praeiti bent %s minučių tarp karmos padidinimų.',
'Minus interval rest'=> 'Turi praeiti bent %s minučių tarp karmos sumžainimų.',
'Alt cancel' => 'Atšaukti',
'Alt thumbs up' => 'Padidinti',
'Alt thumbs down' => 'Sumažinti'
);
?>
3 2011-08-10 09:30
Topic: [pun_attachment] Fix file upload without parent directory (1 replies, posted in PunBB 1.3 extensions)
Currently file upload fails if $forum_config['attach_basefolder'] exists and is writable, but $forum_config['attach_subfolder'] does not.
This patch fixes that.
--- include/attach_func.php.orig 2011-08-10 12:28:07.000000000 +0300
+++ include/attach_func.php 2011-08-10 12:29:24.000000000 +0300
@@ -120,7 +120,13 @@
if (is_uploaded_file($uploaded_file['tmp_name']) )
{
$attach_name = attach_generate_filename();
- if (!move_uploaded_file($uploaded_file['tmp_name'], $forum_config['attach_basefolder'].$forum_config['attach_subfolder'].'/'.$attach_name))
+ $destination = $forum_config['attach_basefolder'].
+ $forum_config['attach_subfolder'].'/'.$attach_name;
+ // Ensure base directory exists, because otherwise move_uploaded_file()
+ // fails
+ mkdir(dirname($destination), 0755, true);
+
+ if (!move_uploaded_file($uploaded_file['tmp_name'], $destination))
$errors[] = sprintf($lang_profile['Move failed'], '<a href="mailto:'.forum_htmlencode($forum_config['o_admin_email']).'">'.forum_htmlencode($forum_config['o_admin_email']).'</a>');
if (empty($errors))
{