diff --git a/inc/locale/fi_FI/LC_MESSAGES/tinyboard.mo b/inc/locale/fi_FI/LC_MESSAGES/tinyboard.mo index 67d2af52..5d520eb3 100644 Binary files a/inc/locale/fi_FI/LC_MESSAGES/tinyboard.mo and b/inc/locale/fi_FI/LC_MESSAGES/tinyboard.mo differ diff --git a/inc/locale/fi_FI/LC_MESSAGES/tinyboard.po b/inc/locale/fi_FI/LC_MESSAGES/tinyboard.po index 3a6ffb49..e01b838a 100644 --- a/inc/locale/fi_FI/LC_MESSAGES/tinyboard.po +++ b/inc/locale/fi_FI/LC_MESSAGES/tinyboard.po @@ -84,3 +84,164 @@ msgstr "Edellinen" msgid "Next" msgstr "Seuraava" +msgid "Return to dashboard" +msgstr "Palaa hallintaan" + +msgid "PM Inbox" +msgstr "Viestilaatikko" + +msgid "empty" +msgstr "tyhjä" + +msgid "unread" +msgstr "lukematon" + +msgid "No private messages for you." +msgstr "Sinulle ei ole uusia viestejä." + +msgid "Manage users" +msgstr "Hallitse käyttäjiä" + +msgid "ID" +msgstr "" + +msgid "Username" +msgstr "Käyttäjänimi" + +msgid "User" +msgstr "Käyttäjä" + +msgid "IP address" +msgstr "IP osoite" + +msgid "Type" +msgstr "Tyyppi" + +msgid "Last action" +msgstr "Viimeinen tapahtuma" + +msgid "Boards" +msgstr "Laudat" + +msgid "Create new board" +msgstr "Luo uusi lauta" + +msgid "Create new user" +msgstr "Luo uusi käyttäjä" + +msgid "News" +msgstr "Uutiset" + +msgid "no subject" +msgstr "ei aihetta" + +msgid "View all entires" +msgstr "Näytä kaikki tiedotteet" + +msgid "Dashboard" +msgstr "Hallinta" + +msgid "Noticeboard" +msgstr "Tiedotteet" + +msgid "Report queue" +msgstr "Ilmiannot" + +msgid "Ban list" +msgstr "Bannit" + +msgid "Moderation log" +msgstr "Moderaatio logi" + +msgid "Rebuild static files" +msgstr "Rakenna uudelleen" + +msgid "Show configuration" +msgstr "Näytä asetukset" + +msgid "Configuration" +msgstr "Asetukset" + +msgid "Themes" +msgstr "Teemat" + +msgid "Manage themes" +msgstr "Hallitse teemoja" + +msgid "Search" +msgstr "Etsi" + +msgid "Phrase:" +msgstr "Lause tai sana:" + +msgid "(Search is case-insensitive, and based on keywords. To match exact phrases, use \"quotes\". Use an asterisk (*) for wildcard.)" +msgstr "(Haku etsii sanoja ja lauseita myös muiden lauseiden ja sanojen sisältä. Löytääksesi tietyn fraasin käytä \"lainausmerkkejä\". Voit käyttää myös (*) merkkiä jokerina.)" + +msgid "Version" +msgstr "Versio" + +msgid "Description" +msgstr "Kuvaus" + +msgid "Thumbnail" +msgstr "" + +msgid "Uninstall all themes." +msgstr "Poista kaikki teemat" + +msgid "Reconfigure" +msgstr "Asetukset" + +msgid "Rebuild" +msgstr "Rakenna uudelleen" + +msgid "Uninstall" +msgstr "Poista" + +msgid "Install" +msgstr "Asenna" + +msgid "Use theme" +msgstr "Käytä teemaa" + +msgid "Actions" +msgstr "Toiminto" + +msgid "Body" +msgstr "Viesti" + +msgid "Ago" +msgstr "Viesti" + +msgid "Board" +msgstr "Lauta" + +msgid "Action" +msgstr "Tapahtuma" + +msgid "Set" +msgstr "Aseta" + +msgid "Expires" +msgstr "Vanhenee" + +msgid "Staff" +msgstr "Moderaattori" + +msgid "all boards" +msgstr "kaikki laudat" + +msgid "Post to news" +msgstr "Lähetä uutisiin" + +msgid "Post to noticeboard" +msgstr "Lähetä tiedotteisiin" + +msgid "Showing all %d reports." +msgstr "" + +msgid "Logout" +msgstr "Kirjaudu ulos" + + + diff --git a/inc/mod.php b/inc/mod.php index 2dcaf7e9..0b460a39 100644 --- a/inc/mod.php +++ b/inc/mod.php @@ -164,7 +164,7 @@ } if($mod['type'] >= $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'] .= '
  • '; } - $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}
    "; + $body .= '
    ' . _($title) . '
    '; } 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 %}