From 02515c969f7a137bdc395f993e6aee456802dae0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Leini=C3=B6?= Date: Tue, 16 Jul 2013 18:35:54 +0300 Subject: [PATCH] Added Finnish translation Added an exception for Finnish locale in Facebook (the plugin assumes both have same locale structure which is not true) Added a setting for the data-via attribute (twitter share) --- lang/wpsocialite-fi.mo | Bin 0 -> 3280 bytes lang/wpsocialite-fi.po | 187 +++++++++++++++++++++++++++++++++++++++++ wpsocialite.php | 44 +++++++++- 3 files changed, 227 insertions(+), 4 deletions(-) create mode 100644 lang/wpsocialite-fi.mo create mode 100644 lang/wpsocialite-fi.po diff --git a/lang/wpsocialite-fi.mo b/lang/wpsocialite-fi.mo new file mode 100644 index 0000000000000000000000000000000000000000..1fcc512c2bbe0d205618d6bf691045a31944309f GIT binary patch literal 3280 zcma)-O^6&t6vs=AQ70NTe#Xy=nwXF6$;@h^_U?vkHrcplHyJaNXh0ZhdunECr>CmZ zRXw|-;z7J9Bqv1#71TW_c<~YtK@aOm5b>gd;7!!KHxc~5?w*er5Syv~O?|vq@4b5U z`j>5+-eP!mquq!0!c~kN0N=eDFFesTjNJmB2X6;o1vi6lgOlL<;8WoD;LqTeO^nTg zzkxKq=UT?D2Lo^m7=rk*wVbbjH2)e%dM|(wWp9EvgYSUXfuDdkfS-Z1{tK`Gehre` zci=AYhkX8Ta2xuYF-i7s2X6)Ug5<|^-hURvQWk(@pUV3QID!64AY5Y~gImE*bAAEd zg#I@m>Hi758~g(#Jy*l%i-_S?kmTQk@ppkAfaKrj;4bh>@E-72@B&Cqm4J)j6!;ZL z{{97$-c5MXIo$%1UJs=CGKe4Z@gn{6;BDXukm6Sdu?1^^wEjFu@qG~_yWRlzf**pk z?pu)j`VqvB{f-yK?@y5QZoV;_zXzoF?E`6DIq%Pacc4F)_s@Y8uR2I^?1K2Qm+{&T zz7BHmBarlb4I&lU{b*zdy2FR!OfjPe;Z7e)SMr|Yc7fmPQ)Y`64nq#4Z(M7%h8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001 diff --git a/lang/wpsocialite-fi.po b/lang/wpsocialite-fi.po new file mode 100644 index 0000000..9a11140 --- /dev/null +++ b/lang/wpsocialite-fi.po @@ -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 \n" +"Language-Team: Timo Leiniö \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 Manual, 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 manuaalinen, " +"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" diff --git a/wpsocialite.php b/wpsocialite.php index 735e543..5228cda 100644 --- a/wpsocialite.php +++ b/wpsocialite.php @@ -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'; @@ -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 ''; } @@ -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' => '', - 'markup_small' => '', + 'markup_large' => '', + 'markup_small' => '', 'external_file' => false ), 'gplus' => array(