From 5df15bb90421c906f587ba921bdcde7be2cbe3d9 Mon Sep 17 00:00:00 2001 From: Savetheinternet Date: Wed, 23 Nov 2011 23:47:54 +1100 Subject: [PATCH] More finnish translations --- inc/locale/fi_FI/LC_MESSAGES/tinyboard.mo | Bin 1333 -> 3859 bytes inc/locale/fi_FI/LC_MESSAGES/tinyboard.po | 161 ++++++++++++++++++++++ inc/mod.php | 4 +- mod.php | 110 +++++++-------- templates/index.html | 2 +- templates/page.html | 2 +- templates/thread.html | 2 +- 7 files changed, 221 insertions(+), 60 deletions(-) diff --git a/inc/locale/fi_FI/LC_MESSAGES/tinyboard.mo b/inc/locale/fi_FI/LC_MESSAGES/tinyboard.mo index 67d2af52b35f6a88f81423bb4702e9c4bf288f5b..5d520eb3964dcf8f1bbda0bcb05dc4d1443eb9c5 100644 GIT binary patch literal 3859 zcmZ9NUu+yl8Ner{f2i9MQW9us3qxqy{5!`E{bR0ah#lM5jqMowY>^^_#<%0U@$Kzi zc4zGzB7H%9L4Xjn4+tcr)=vl(Ay9ZIAR!B>h=;zx3xbD=hvWgIfI#p7{Jz~e+wJPU z{q4-oeDnR=@BZ}Qov$jc7m!Dh_ztBk{KcKzxEAkL>M;Bq{0dx${M0+#?t!=9``~T( ze)vy#7yKXOr|x2rsJb7@`a|3vfDgkD!YAQDI0o;9Gf?&|!TaEqKnq3h)xa&tPhICG z`d<$7UxP!8zXkcJ?{O17uR~e)V<`H62E~py;r;Np@B{GoP}cn=@K)g8pv31NQ1l(b zS@HL=z$YND)EOxHo`oNRlYyUy{8SuRK(XT`DEnT966bF~(f=A0f8T(my-@VN8OCox z(f@WBzXK%?x8Q^DuTcCuKu|@`K`45TKsoQxFn%10zo#HSHNx!(tcUR;l=m+}RH`pQ zv7-$|PXQ&5*P+Dyn^4aCZW#Xn%DF#;%>zpP1d9G6IQdg}3Noes3`PG+ z`%vQkdU*eHD0+VhB@VxX;@=;k)b(vB@wxeyM6>^{|zYl|235LzX|*Ulyx_u*#Gyy|AhGi94h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7eU7)5g-xY9zYtb};_rLpdP&-#tXn2R|4O{rR4&Jkhe}3h zsnHyL0SDu= $config['mod']['newboard']) { - $body .= '
  • Create new board
  • '; + $body .= '
  • ' . _('Create new board') . '
  • '; } return $body; } @@ -173,7 +173,7 @@ global $config, $mod; $boards = listBoards(); - $__boards = '
  • '; + $__boards = '
  • '; foreach($boards as &$_board) { $__boards .= '
  • ' . '' . diff --git a/mod.php b/mod.php index 6edd0289..f1954b2f 100644 --- a/mod.php +++ b/mod.php @@ -100,7 +100,7 @@ ($notice['subject'] ? $notice['subject'] : - 'no subject' + '' . _('no subject') . '' ) . ' — by ' . (isset($notice['username']) ? @@ -114,7 +114,7 @@ $fieldset['Noticeboard'] .= '
      ' . $_body . '
  • '; } - $fieldset['Noticeboard'] .= 'View all entires
  • '; + $fieldset['Noticeboard'] .= '' . _('View all entires') . ''; $query = prepare("SELECT COUNT(*) AS `count` FROM `pms` WHERE `to` = :id AND `unread` = 1"); $query->bindValue(':id', $mod['id']); @@ -122,49 +122,49 @@ $count = $query->fetch(); $count = $count['count']; - $fieldset['Noticeboard'] .= '
  • PM inbox' . + $fieldset['Noticeboard'] .= '
  • ' . _('PM Inbox') . ($count > 0 ? ' (' . $count . ' unread)' : '') . '
  • '; - $fieldset['Noticeboard'] .= '
  • News
  • '; + $fieldset['Noticeboard'] .= '
  • ' . _('News') . '
  • '; } if(hasPermission($config['mod']['reports'])) { - $fieldset['Administration'] .= '
  • Report queue
  • '; + $fieldset['Administration'] .= '
  • ' . _('Report queue') . '
  • '; } if(hasPermission($config['mod']['view_banlist'])) { - $fieldset['Administration'] .= '
  • Ban list
  • '; + $fieldset['Administration'] .= '
  • ' . _('Ban list') . '
  • '; } if(hasPermission($config['mod']['manageusers'])) { - $fieldset['Administration'] .= '
  • Manage users
  • '; + $fieldset['Administration'] .= '
  • ' . _('Manage users') . '
  • '; } if(hasPermission($config['mod']['modlog'])) { - $fieldset['Administration'] .= '
  • Moderation log
  • '; + $fieldset['Administration'] .= '
  • ' . _('Moderation log') . '
  • '; } if(hasPermission($config['mod']['rebuild'])) { - $fieldset['Administration'] .= '
  • Rebuild static files
  • '; + $fieldset['Administration'] .= '
  • ' . _('Rebuild static files') . '
  • '; } if(hasPermission($config['mod']['rebuild']) && $config['cache']['enabled']) { - $fieldset['Administration'] .= '
  • Clear cache
  • '; + $fieldset['Administration'] .= '
  • ' . _('Clear cache') . '
  • '; } if(hasPermission($config['mod']['show_config'])) { - $fieldset['Administration'] .= '
  • Show configuration
  • '; + $fieldset['Administration'] .= '
  • ' . _('Show configuration') . '
  • '; } if(hasPermission($config['mod']['themes'])) { - $fieldset['Themes'] .= '
  • Manage themes
  • '; + $fieldset['Themes'] .= '
  • ' . _('Manage themes') . '
  • '; } if(hasPermission($config['mod']['search'])) { $fieldset['Search'] .= '
  • ' . - ' ' . + ' ' . '' . - '' . + '' . '
    ' . - '

    (Search is case-insensitive, and based on keywords. To match exact phrases, use "quotes". Use an asterisk (*) for wildcard.)

    ' . + '

    ' . _('(Search is case-insensitive, and based on keywords. To match exact phrases, use "quotes". Use an asterisk (*) for wildcard.)') . '

    ' . '
  • '; } @@ -221,19 +221,19 @@ } } - $fieldset['Logout'] .= '
  • Logout
  • '; + $fieldset['Logout'] .= '
  • ' . _('Logout') . '
  • '; // TODO: Statistics, etc, in the dashboard. $body = ''; foreach($fieldset as $title => $data) { if($data) - $body .= "
    {$title}
      {$data}
    "; + $body .= '
    ' . _($title) . '
      ' . $data . '
    '; } echo Element('page.html', Array( 'config'=>$config, - 'title'=>'Dashboard', + 'title'=>_('Dashboard'), 'body'=>$body, '__mod'=>true ) @@ -269,7 +269,7 @@ $boards[$_b['id']] = $_b['uri']; } - $body = ''; + $body = '
    UserIP addressAgoBoardAction
    '; $query = prepare("SELECT `mods`.`id`,`username`,`ip`,`board`,`time`,`text` FROM `modlogs` INNER JOIN `mods` ON `mod` = `mods`.`id` ORDER BY `time` DESC LIMIT :limit"); $query->bindValue(':limit', $config['mod']['modlog_page'], PDO::PARAM_INT); @@ -297,7 +297,7 @@ echo Element('page.html', Array( 'config'=>$config, - 'title'=>'Moderation log', + 'title'=>_('Moderation log'), 'body'=>$body, 'mod'=>true ) @@ -487,19 +487,19 @@ markup($theme['description']); $body .= '' . - '' . + '' . '' . '' . '' . - '' . + '' . '' . '' . '' . - '' . + '' . '' . '' . '' . - '' . + '' . '' . '' . '' . - '' . + '' . '' . @@ -525,11 +525,11 @@ } if(!empty($themes_in_use)) - $body .= '

    Uninstall all themes.

    '; + $body .= '

    ' . _('Uninstall all themes.') . '

    '; echo Element('page.html', Array( 'config'=>$config, - 'title'=>'Select theme', + 'title'=>_('Manage themes'), 'body'=>$body, 'mod'=>true ) @@ -564,16 +564,16 @@ if(hasPermission($config['mod']['noticeboard_post'])) { $body .= '
    New post
    ' . _('User') . '' . _('IP address') . '' . _('Ago') . '' . _('Board') . '' . _('Action') . '
    Name' . _('Name') . '' . utf8tohtml($theme['name']) . '
    Version' . _('Version') . '' . utf8tohtml($theme['version']) . '
    Description' . _('Description') . '' . $theme['description'] . '
    Thumbnail' . _('Thumbnail') . '
    Actions' . _('Actions') . '
    ' . '' . - '' . + '' . '' . '' . - '' . + '' . '' . '' . - '' . + '' . '' . '' . - '' . + '' . '
    ' . $mod['username'] . '
    Subject' . _('Subject') . '
    Body' . _('Body') . '
    ' . ''; } @@ -590,7 +590,7 @@ ($notice['subject'] ? $notice['subject'] : - 'no subject' + '' . _('no subject') . '' ) . ' — by ' . (isset($notice['username']) ? @@ -606,7 +606,7 @@ echo Element('page.html', Array( 'config'=>$config, - 'title'=>'Noticeboard', + 'title'=>_('Noticeboard'), 'body'=>$body, 'mod'=>true ) @@ -647,19 +647,19 @@ $body .= '
    New post
    ' . '' . - '' . + '' . (hasPermission($config['mod']['news_custom']) ? '' : '') . '' . - '' . + '' . '' . '' . - '' . + '' . '' . '' . - '' . + '' . '
    Name' . _('Name') . '' . $mod['username'] . '
    Subject' . _('Subject') . '
    Body' . _('Body') . '
    ' . '
    '; } @@ -676,7 +676,7 @@ ($news['subject'] ? $news['subject'] : - 'no subject' + '' . _('no subject') . '' ) . ' — by ' . $news['name'] . @@ -688,7 +688,7 @@ echo Element('page.html', Array( 'config'=>$config, - 'title'=>'News', + 'title'=>_('News'), 'body'=>$body, 'mod'=>true ) @@ -699,7 +699,7 @@ $query->execute() or error(db_error($query)); if($query->rowCount() == 0) { - $body = '

    (No private messages for you.)

    '; + $body = '

    (' . _('No private messages for you.') . ')

    '; } else { $unread_pms = 0; @@ -721,7 +721,7 @@ echo Element('page.html', Array( 'config'=>$config, - 'title'=>'PM Inbox (' . ($query->rowCount() == 0 ? 'empty' : $unread_pms . ' unread') . ')', + 'title'=>_('PM Inbox') . ' (' . ($query->rowCount() == 0 ? _('empty') : $unread_pms . ' ' . _('unread')) . ')', 'body'=>$body, 'mod'=>true ) @@ -992,7 +992,7 @@ } elseif(preg_match('/^\/users$/', $query)) { if(!hasPermission($config['mod']['manageusers'])) error($config['error']['noaccess']); - $body = '
    '; + $body = '
    IDUsernameTypeBoardsLast action
    '; $query = query("SELECT *, (SELECT `time` FROM `modlogs` WHERE `mod` = `id` ORDER BY `time` DESC LIMIT 1) AS `last`, (SELECT `text` FROM `modlogs` WHERE `mod` = `id` ORDER BY `time` DESC LIMIT 1) AS `action` FROM `mods` ORDER BY `type` DESC,`id`") or error(db_error()); while($_mod = $query->fetch()) { @@ -1043,14 +1043,14 @@ $body .= '
    ' . _('ID') . '' . _('Username') . '' . _('Type') . '' . _('Boards') . '' . _('Last action') . '
    '; if(hasPermission($config['mod']['createusers'])) { - $body .= '

    Create new user

    '; + $body .= '

    ' . _('Create new user') . '

    '; } $body .= '
    '; echo Element('page.html', Array( 'config'=>$config, - 'title'=>'Manage users', + 'title'=>_('Manage users'), 'body'=>$body ,'mod'=>true ) @@ -1365,7 +1365,7 @@ echo Element('page.html', Array( 'config'=>$config, - 'title'=>'Report queue (' . $count['count'] . ')', + 'title'=>_('Report queue') . ' (' . $count['count'] . ')', 'body'=>$body, 'mod'=>true )); @@ -1525,7 +1525,7 @@ $body = '

    (There are no active bans.)

    '; } else { $body = '
    '; - $body .= ''; + $body .= '
    IP addressReasonBoardSetExpiresStaff
    '; while($ban = $query->fetch()) { $body .= @@ -1557,7 +1557,7 @@ (isset($ban['uri']) ? sprintf($config['board_abbreviation'], $ban['uri']) : - 'all boards' + '' . _('all boards') . '' ) . '' . // Set @@ -1606,7 +1606,7 @@ echo Element('page.html', Array( 'config'=>$config, - 'title'=>'Ban list', + 'title'=>_('Ban list'), 'body'=>$body, 'mod'=>true ) @@ -1712,11 +1712,11 @@ do_array_part($config); - $body = '
    Configuration
    ' . _('IP address') . '' . _('Reason') . '' . _('Board') . '' . _('Set') . '' . _('Expires') . '' . _('Staff') . '
    ' . $data . '
    '; + $body = '
    ' . _('Configuration') . '' . $data . '
    '; echo Element('page.html', Array( 'config'=>$config, - 'title'=>'Configuration', + 'title'=>_('Configuration'), 'body'=>$body, 'mod'=>true ) @@ -2547,7 +2547,7 @@ 'deleted?' ) : - 'all boards' + '' . _('all boards') . '' ) . '' . diff --git a/templates/index.html b/templates/index.html index 46a1ff99..06dd2acc 100644 --- a/templates/index.html +++ b/templates/index.html @@ -30,7 +30,7 @@ {% if pm %}
    You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

    {% endif %} {% if config.url_banner %}{% endif %}

    {{ board.url }} - {{ board.name }}

    -
    {% if board.title %}{{ board.title }}{% endif %}

    {% if mod %}Return to dashboard{% endif %}

    +
    {% if board.title %}{{ board.title }}{% endif %}

    {% if mod %}{% trans %}Return to dashboard{% endtrans %}{% endif %}

    {% include 'post_form.html' %} diff --git a/templates/page.html b/templates/page.html index d3049392..1f200a6d 100644 --- a/templates/page.html +++ b/templates/page.html @@ -12,7 +12,7 @@ {% if pm %}
    You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

    {% endif %}

    {{ title }}

    -
    {% if subtitle %}{{subtitle}}{% endif %}

    {% if mod %}Return to dashboard{% endif %}

    +
    {% if subtitle %}{{subtitle}}{% endif %}

    {% if mod %}{% trans %}Return to dashboard{% endtrans %}{% endif %}

    {{ body }}

    Powered by Tinyboard {{ config.version }} | Tinyboard Copyright © 2010-2011 Tinyboard Development Group

    diff --git a/templates/thread.html b/templates/thread.html index 6850130c..f39a5c34 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -30,7 +30,7 @@ {% if pm %}
    You have an unread PM{% if pm.waiting > 0 %}, plus {{ pm.waiting }} more waiting{% endif %}.

    {% endif %} {% if config.url_banner %}{% endif %}

    {{ board.url }} - {{ board.name }}

    -
    {% if board.title %}{{ board.title }}{% endif %}

    {% if mod %}Return to dashboard{% endif %}

    +
    {% if board.title %}{{ board.title }}{% endif %}

    {% if mod %}{% trans %}Return to dashboard{% endtrans %}{% endif %}