Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added lang/wpsocialite-fi.mo
Binary file not shown.
187 changes: 187 additions & 0 deletions lang/wpsocialite-fi.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
msgid ""
msgstr ""
"Project-Id-Version: WPSocialite\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2013-07-16 00:16+0200\n"
"PO-Revision-Date: 2013-07-16 00:16+0200\n"
"Last-Translator: Rafael Funchal <rafaelfunchal@gmail.com>\n"
"Language-Team: Timo Leiniö <timo@wpopas.fi>\n"
"Language: fi\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=n != 1;\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
"_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2\n"
"X-Poedit-Basepath: ../\n"
"X-Textdomain-Support: yes\n"
"X-Generator: Poedit 1.5.7\n"
"X-Poedit-SearchPath-0: .\n"

#: wpsocialite.php:269
msgid "WPSocialite"
msgstr "WPSocialite"

#: wpsocialite.php:276
msgid "Mode"
msgstr "Tila"

#: wpsocialite.php:282
msgid "Choose the event to which Socialite will activate."
msgstr "Valitse milloin jakonapit aktivoidaan."

#: wpsocialite.php:284
msgid "Hover"
msgstr "Kun nappeihin osuu hiirellä"

#: wpsocialite.php:285
msgid "Scroll"
msgstr "Kun sivua vieritetään"

#: wpsocialite.php:293
msgid "Apply to Excerpt"
msgstr "Ote"

#: wpsocialite.php:301
msgid "Display WPSocialite sharing buttons in the excerpt of your posts."
msgstr "Näytä jakonapit artikkelin otteen yhteydessä."

#: wpsocialite.php:309
msgid "Apply to Single only"
msgstr "Yksittäiset artikkelit"

#: wpsocialite.php:317
msgid "Display WPSocialite sharing buttons only on single posts."
msgstr "Näytä jakonapit vain yksittäisen artikkelin yhteydessä."

#: wpsocialite.php:325
msgid "Style"
msgstr "Tyyli"

#: wpsocialite.php:331
msgid "Choose the type of socialite style you would like to use."
msgstr "Valitse jakonappien tyyli."

#: wpsocialite.php:333
msgid "Large"
msgstr "Iso"

#: wpsocialite.php:334
msgid "Small"
msgstr "Pieni"

#: wpsocialite.php:342
msgid "Position"
msgstr "Sijainti"

#: wpsocialite.php:348
#, php-format
msgid ""
"Choose where you would like the social icons to appear, before or after the "
"main content. If set to <strong>Manual</strong>, you can use this code to "
"place your Social links anywhere you like in your templates files: %s"
msgstr ""
"Valitse, mihin napit sijoitetaan. Jos valitaan <strong>manuaalinen</strong>, "
"tällöin napit voi sijoittaa koodiin seuraavalla funktiolla: %s"

#: wpsocialite.php:350
msgid "Top"
msgstr "Ylös"

#: wpsocialite.php:351
msgid "Bottom"
msgstr "Alas"

#: wpsocialite.php:352
msgid "Top and Bottom"
msgstr "Ylös ja alas"

#: wpsocialite.php:353
msgid "Manual"
msgstr "Manuaalinen"

#: wpsocialite.php:361
msgid "Post Types"
msgstr "Artikkelityypit"

#: wpsocialite.php:370
msgid "Network Options"
msgstr "Verkostovaihtoehdot"

#: wpsocialite.php:379
msgid "Twitter Username"
msgstr "Twitter-käyttäjätunnus"

#: wpsocialite.php:395
msgid "Twitter Username (Share)"
msgstr "Twitter-käyttäjätunnus (jako)"

#: wpsocialite.php:434
msgid "The configuration of the WPSocialite Plugin."
msgstr "WPSocialite-asetukset"

#: wpsocialite.php:520
msgid "Select the social networks to display."
msgstr "Sosiaaliset verkostot, jotka näytetään."

#: wpsocialite.php:538
msgid "Facebook"
msgstr "Facebook"

#: wpsocialite.php:540 wpsocialite.php:541
msgid "Share on Facebook."
msgstr "Jaa Facebookissa"

#: wpsocialite.php:545
msgid "Twitter Share"
msgstr "Twitter jako"

#: wpsocialite.php:547 wpsocialite.php:548 wpsocialite.php:582
#: wpsocialite.php:583
msgid "Share on Twitter."
msgstr "Jaa Twitterissä"

#: wpsocialite.php:552
msgid "Google Plus"
msgstr "Google Plus"

#: wpsocialite.php:554 wpsocialite.php:555
msgid "Share on Google+"
msgstr "Jaa Google+"

#: wpsocialite.php:559
msgid "Linkedin"
msgstr "Linkedin"

#: wpsocialite.php:561 wpsocialite.php:562
msgid "Share on LinkedIn"
msgstr "Jaa LinkedInissä"

#: wpsocialite.php:566
msgid "Pinterest"
msgstr "Pinterest"

#: wpsocialite.php:568 wpsocialite.php:569
msgid "Pin It!"
msgstr "Pinnaa!"

#: wpsocialite.php:573
msgid "StumbleUpon"
msgstr "StumbleUpon"

#: wpsocialite.php:575 wpsocialite.php:576
msgid "Share on StumbleUpon"
msgstr "Jaa StumbleUponissa"

#: wpsocialite.php:580
msgid "Twitter Follow"
msgstr "Twitter seuraa"

#: wpsocialite.php:596
msgid "Settings"
msgstr "Asetukset"

#, fuzzy
#~ msgid "Twitter data-via"
#~ msgstr "Twitter jako"
44 changes: 40 additions & 4 deletions wpsocialite.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,11 @@ public function wpsocialite_localize_script() {
$fb_locales = array('af_ZA','ar_AR','az_AZ','be_BY','bg_BG','bn_IN','bs_BA','ca_ES','cs_CZ','cy_GB','da_DK','de_DE','el_GR','en_GB','en_US','eo_EO','es_ES','es_LA','et_EE','eu_ES','fa_IR','fi_FI','fo_FO','fr_CA','fr_FR','fy_NL','ga_IE','gl_ES','he_IL','hi_IN','hr_HR','hu_HU','hy_AM','id_ID','is_IS','it_IT','ja_JP','ka_GE','km_KH','ko_KR','ku_TR','la_VA','lt_LT','lv_LV','mk_MK','ml_IN','ms_MY','nb_NO','ne_NP','nl_NL','nn_NO','pa_IN','pl_PL','ps_AF','pt_BR','pt_PT','ro_RO','ru_RU','sk_SK','sl_SI','sq_AL','sr_RS','sv_SE','sw_KE','ta_IN','te_IN','th_TH','tl_PH','tr_TR','uk_UA','vi_VN','zh_CN','zh_HK','zh_TW');
$tw_locales = array('en','fr','de','it','es','ko','ja');
$gp_locales = array('af','am','ar','eu','bn','bg','ca','zh-HK','zh-CN','zh-TW','hr','cs','da','nl','en-GB','en-US','et','fil','fi','fr','fr-CA','gl','de','el','gu','iw','hi','hu','is','id','it','ja','kn','ko','lb','lt','ms','ml','mr','no','fa','pl','pt-BR','pt-PT','ro','ru','sr','sk','sl','es','es-419','sw','sv','ta','te','th','tr','uk','ur','vi','zu');

$fb_locale = (in_array($c5,$fb_locales))? $c5 : 'en_US';


$fb_locale = (in_array($c5,$fb_locales))? $c5 : 'en_US';
if($c5 == 'fi')
$fb_locale = 'fi_FI';
$tw_locale = (in_array($c2,$tw_locales))? $c2 : 'en';
$gp_locale = (in_array($c5,$gp_locales))? str_replace('_', '-', $c5) : (in_array($c2,$gp_locales))? $c2 : 'en';

Expand Down Expand Up @@ -386,12 +389,30 @@ public function admin_init() {
)
);
register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_twitter_username' );

add_settings_field(
$id = 'wpsocialite_twitter_username_share',
$title = __('Twitter Username (Share)','wpsocialite'),
$callback = array( $this, 'wpsocialite_text_input' ),
$page = 'discussion',
$section = 'wpsocialite',
$args = array(
'name' => 'wpsocialite_twitter_username_share',
'description' => '',
'options' => array(
'twitter_data_via' => __(''),
),
)
);

register_setting( $option_group = 'discussion', $option_name = 'wpsocialite_twitter_username_share' );

}

public function admin_footer() {
echo '<script type="text/javascript">
jQuery(document).ready(function($) {

var twitterusername = $("#wpsocialite_twitter_username").closest("tr");
var twitterfollow = $("input:checkbox[name=\'wpsocialite_networkoptions[twitter-follow]\']");
twitterusername.hide();
Expand All @@ -406,6 +427,21 @@ public function admin_footer() {
twitterusername.hide();
}
});

var twitterusernameshare = $("#wpsocialite_twitter_username_share").closest("tr");
var twittershare = $("input:checkbox[name=\'wpsocialite_networkoptions[twitter-share]\']");
twitterusernameshare.hide();

if( twittershare.is(":checked") ){
twitterusernameshare.show();
}
twittershare.on(\'change\', function() {
if(twittershare.is(":checked")){
twitterusernameshare.show();
} else {
twitterusernameshare.hide();
}
});
});
</script>';
}
Expand Down Expand Up @@ -524,8 +560,8 @@ public function wpsocialite_list_network_options( $link = null, $title = null, $
'twitter-share' => array(
'name' => __('Twitter Share','wpsocialite'),
'slug' => 'twitter-share',
'markup_large' => '<a href="http://twitter.com/share" class="socialite twitter-share" data-text="'.$twitter_title.'" data-url="'.$link.'" data-count="vertical" data-lang="'.$locale.'" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_twitter_label',__('Share on Twitter.','wpsocialite')).'</span></a>',
'markup_small' => '<a href="http://twitter.com/share" class="socialite twitter-share" data-text="'.$twitter_title.'" data-url="'.$link.'" data-count="horizontal" data-lang="'.$locale.'" data-via="" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_twitter_label',__('Share on Twitter.','wpsocialite')).'</span></a>',
'markup_large' => '<a href="http://twitter.com/share" class="socialite twitter-share" data-text="'.$twitter_title.'" data-url="'.$link.'" data-count="vertical" data-lang="'.$locale.'" data-via="'.get_option('wpsocialite_twitter_username_share').'" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_twitter_label',__('Share on Twitter.','wpsocialite')).'</span></a>',
'markup_small' => '<a href="http://twitter.com/share" class="socialite twitter-share" data-text="'.$twitter_title.'" data-url="'.$link.'" data-count="horizontal" data-lang="'.$locale.'" data-via="'.get_option('wpsocialite_twitter_username_share').'" rel="nofollow" target="_blank"><span class="vhidden">'.apply_filters('wpsocialite_share_twitter_label',__('Share on Twitter.','wpsocialite')).'</span></a>',
'external_file' => false
),
'gplus' => array(
Expand Down