From e16026bf8223c49acfaed515392a9a5772aa2a34 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 30 Dec 2016 08:28:20 +0000 Subject: [PATCH] acajou_from_blog_title() for displaying multilangual title on hom --- home.php | 2 +- inc/customizer.php | 27 +++ inc/extras.php | 11 + languages/acajou-backup-201612300532470.pot~ | 224 ------------------- languages/acajou.pot | 32 ++- languages/es_ES.mo | Bin 2489 -> 2999 bytes languages/es_ES.po | 32 ++- languages/fr_FR.mo | Bin 2605 -> 3045 bytes languages/fr_FR.po | 32 ++- 9 files changed, 128 insertions(+), 232 deletions(-) delete mode 100644 languages/acajou-backup-201612300532470.pot~ diff --git a/home.php b/home.php index d34d2c0..ebeefc3 100644 --- a/home.php +++ b/home.php @@ -15,7 +15,7 @@ get_header(); ?>
-

From the blog

+

diff --git a/inc/customizer.php b/inc/customizer.php index 115ee43..bddd847 100644 --- a/inc/customizer.php +++ b/inc/customizer.php @@ -135,6 +135,33 @@ function acajou_customize_register( $wp_customize ) { "type" => "textarea", ) )); + + /* + * From the blog text + * + * + */ + // Create sections for socials links + $wp_customize->add_section("acajou_from_section", array( + "title" => __("From the blog", "acajou"), + "priority" => 30, + )); + + // Typing lines + $wp_customize->add_setting("from_text", array( + "default" => "From the blog", + "transport" => "refresh", + )); + $wp_customize->add_control(new WP_Customize_Control( + $wp_customize, + "from_text", + array( + "label" => __("Replace the defaut « From the blog » text", "acajou"), + "section" => "acajou_from_section", + "settings" => "from_text", + "type" => "textarea", + ) + )); } add_action( 'customize_register', 'acajou_customize_register' ); diff --git a/inc/extras.php b/inc/extras.php index 503cbd0..567e8c7 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -411,3 +411,14 @@ function acajou_typing_machine(){ echo '

'; } } + /* + * "From the blog" + * + */ + function acajou_from_blog_title(){ + $text = __("From the blog", "acajou"); + if(get_theme_mod( 'from_text' ) && ""!=get_theme_mod( 'from_text' )) { + $text = get_theme_mod( 'from_text' ); + } + echo $text; + } diff --git a/languages/acajou-backup-201612300532470.pot~ b/languages/acajou-backup-201612300532470.pot~ deleted file mode 100644 index 11c1b1a..0000000 --- a/languages/acajou-backup-201612300532470.pot~ +++ /dev/null @@ -1,224 +0,0 @@ -# Copyright (C) 2016 Automattic -# This file is distributed under the GNU General Public License v2 or later. -msgid "" -msgstr "" -"Project-Id-Version: _s 1.0.0\n" -"Report-Msgid-Bugs-To: https://wordpress.org/tags/_s\n" -"POT-Creation-Date: 2016-02-14 21:43:07+00:00\n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" - -#: 404.php:17 -#@ _s -msgid "Oops! That page can’t be found." -msgstr "" - -#: 404.php:21 -#@ _s -msgid "It looks like nothing was found at this location. Maybe try one of the links below or a search?" -msgstr "" - -#: 404.php:33 -#@ _s -msgid "Most Used Categories" -msgstr "" - -#. translators: %1$s: smiley -#: 404.php:51 -#, php-format -#@ _s -msgid "Try looking in the monthly archives. %1$s" -msgstr "" - -#: comments.php:31 -#, php-format -#@ _s -msgctxt "comments title" -msgid "One thought on “%2$s”" -msgid_plural "%1$s thoughts on “%2$s”" -msgstr[0] "" -msgstr[1] "" - -#: comments.php:40 -#: comments.php:61 -#@ _s -msgid "Comment navigation" -msgstr "" - -#: comments.php:43 -#: comments.php:64 -#@ _s -msgid "Older Comments" -msgstr "" - -#: comments.php:44 -#: comments.php:65 -#@ _s -msgid "Newer Comments" -msgstr "" - -#: comments.php:78 -#@ _s -msgid "Comments are closed." -msgstr "" - -#: footer.php:18 -#@ _s -msgid "https://wordpress.org/" -msgstr "" - -#: footer.php:18 -#, php-format -#@ _s -msgid "Proudly powered by %s" -msgstr "" - -#: footer.php:20 -#, php-format -#@ _s -msgid "Theme: %1$s by %2$s." -msgstr "" - -#: functions.php:47 -#@ _s -msgid "Primary" -msgstr "" - -#: functions.php:102 -#@ _s -msgid "Sidebar" -msgstr "" - -#: header.php:25 -#@ _s -msgid "Skip to content" -msgstr "" - -#: header.php:45 -#@ _s -msgid "Primary Menu" -msgstr "" - -#: inc/template-tags.php:28 -#, php-format -#@ _s -msgctxt "post date" -msgid "Posted on %s" -msgstr "" - -#: inc/template-tags.php:33 -#, php-format -#@ _s -msgctxt "post author" -msgid "by %s" -msgstr "" - -#. translators: used between list items, there is a space after the comma -#: inc/template-tags.php:50 -#: inc/template-tags.php:56 -#@ _s -msgid ", " -msgstr "" - -#: inc/template-tags.php:52 -#, php-format -#@ _s -msgid "Posted in %1$s" -msgstr "" - -#: inc/template-tags.php:58 -#, php-format -#@ _s -msgid "Tagged %1$s" -msgstr "" - -#: inc/template-tags.php:65 -#@ _s -msgid "Leave a Comment on %s" -msgstr "" - -#: inc/template-tags.php:65 -#@ _s -msgid "1 Comment" -msgstr "" - -#: inc/template-tags.php:65 -#@ _s -msgid "% Comments" -msgstr "" - -#. translators: %s: Name of current post -#: inc/template-tags.php:71 -#: template-parts/content-page.php:33 -#, php-format -#@ _s -msgid "Edit %s" -msgstr "" - -#: search.php:19 -#, php-format -#@ _s -msgid "Search Results for: %s" -msgstr "" - -#: template-parts/content-none.php:14 -#@ _s -msgid "Nothing Found" -msgstr "" - -#: template-parts/content-none.php:21 -#, php-format -#@ _s -msgid "Ready to publish your first post? Get started here." -msgstr "" - -#: template-parts/content-none.php:25 -#@ _s -msgid "Sorry, but nothing matched your search terms. Please try again with some different keywords." -msgstr "" - -#: template-parts/content-none.php:31 -#@ _s -msgid "It seems we can’t find what you’re looking for. Perhaps searching can help." -msgstr "" - -#: template-parts/content-page.php:22 -#: template-parts/content.php:38 -#@ _s -msgid "Pages:" -msgstr "" - -#. translators: %s: Name of current post. -#: template-parts/content.php:33 -#, php-format -#@ _s -msgid "Continue reading %s " -msgstr "" - -#. Theme Name of the plugin/theme -msgid "_s" -msgstr "" - -#. Theme URI of the plugin/theme -#@ _s -msgid "http://underscores.me/" -msgstr "" - -#. Description of the plugin/theme -#@ _s -msgid "Hi. I'm a starter theme called _s, or underscores, if you like. I'm a theme meant for hacking so don't use me as a Parent Theme. Instead try turning me into the next, most awesome, WordPress theme out there. That's what I'm here for." -msgstr "" - -#. Author of the plugin/theme -#@ _s -msgid "Automattic" -msgstr "" - -#. Author URI of the plugin/theme -#@ _s -msgid "http://automattic.com/" -msgstr "" diff --git a/languages/acajou.pot b/languages/acajou.pot index 9847a92..abfcd22 100644 --- a/languages/acajou.pot +++ b/languages/acajou.pot @@ -13,6 +13,34 @@ msgstr "" "Language:fr\n" "MIME-Version: 1.0\n" +#: "from_text", +#: array( +#: "label" => __("Replace the defaut « From the blog » text", "acajou"), +# wpml-name: 1bae563ac73d8764dc25047a4b779d41 +msgid "Replace the defaut « From the blog » text" +msgstr "Remplacer le titre « Actualités »" + +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_from_section", array( +#: "title" => __("From the blog", "acajou"), +# wpml-name: e9e838e8eb8a156d2989faa260244799 +msgid "From the blog" +msgstr "Actualités" + +#: "typing_text", +#: array( +#: "label" => __("Type your text and use slash (/) for creating several sentences", "acajou"), +# wpml-name: dc754740f7de8b013feff530324c71b8 +msgid "Type your text and use slash (/) for creating several sentences" +msgstr "Tapez votre texte et utilisez la barre oblique (/) pour créer plusieurs phrases" + +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_typing_section", array( +#: "title" => __("Typing machine", "acajou"), +# wpml-name: 0eae6a1413df83696f931b200ba47561 +msgid "Typing machine" +msgstr "Machine à écrire" + #: #: #: @@ -207,7 +235,7 @@ msgstr "Principal" #: # wpml-name: d6c4a6ac6a732b8db88d1cfe32b5b44e msgid "and available on" -msgstr "disponible sur" +msgstr "et disponible sur " #:
#:
@@ -228,7 +256,7 @@ msgstr "Fièrement propulsé par %s" #: # wpml-name: 71a7765c3d553e44aaa308159b5a2ba6 msgid "https://wordpress.org/" -msgstr "" +msgstr "https://wordpress.org/" #: 7oL9LMpYv{K##T3hh7V|gtQ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GO&_i<|cPHs&(lvnK5Ib4=&@C5AAG%KM1f_=eip7y4M=WRq2i0+@keRDwp-1FfhX zcVi32uo;)I91|F#Yf04ekLd>{F-=QjcLEZmu{laPHUUrd(b4Zb98I^AZ_3E~eTg@RlN_5JJ-u*f9Gxr>n;0ep{ z6SYu?o3pS2)tLrVE89>TjiNdd!&;m|Rl0_H?f_}j&*tlpw9d~vEn%Wi+w|Qj`Tx-3 z3MJJ7szx1A)G$V_|d1YKh+(`e0E2&7TsZgk3Tv$J25^}^RTdIz5y=p BO0fU{ diff --git a/languages/es_ES.po b/languages/es_ES.po index b209e45..65e3ed1 100644 --- a/languages/es_ES.po +++ b/languages/es_ES.po @@ -14,6 +14,32 @@ msgstr "" "MIME-Version: 1.0\n" "X-Generator: Poedit 1.5.4\n" +# wpml-name: 1bae563ac73d8764dc25047a4b779d41 +#: "from_text", array( "label" => __("Replace the defaut « From blog » +#: text", "acajou"), +msgid "Replace the defaut « From the blog » text" +msgstr "Sustituir el título \"Noticias\"" + +# wpml-name: e9e838e8eb8a156d2989faa260244799 +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_from_section", array( "title" => +#: __("From the blog", "acajou"), +msgid "From the blog" +msgstr "Noticias" + +# wpml-name: dc754740f7de8b013feff530324c71b8 +#: "typing_text", array( "label" => __("Type your text and use slash (/) for +#: creating several sentences", "acajou"), +msgid "Type your text and use slash (/) for creating several sentences" +msgstr "Escriba su texto y utilice la barra (/) para crear varias oraciones" + +# wpml-name: 0eae6a1413df83696f931b200ba47561 +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_typing_section", array( "title" => +#: __("Typing machine", "acajou"), +msgid "Typing machine" +msgstr "Máquina de escribir" + # wpml-name: 7dce122004969d56ae2e0245cb754d35 #: __( 'Theme color', 'acajou' ), msgid "Theme color" -msgstr "" +msgstr "Color del tema" # wpml-name: 582d0217bdd3280c7fef224c83846d47 #: "github_url", array( "label" => __("Enter Github url", "acajou"), @@ -197,7 +223,7 @@ msgstr "Principal" #: href="https://github.com/samuelguebo/acajou"> #: Github

msgid "and available on" -msgstr "" +msgstr "y disponible en " # wpml-name: e2b8f1326fea2c94cdc3bccda878a9d6 #:
class="small-6 large-6 columns">

#: Github

msgid "https://wordpress.org/" -msgstr "" +msgstr "https://wordpress.org/" # wpml-name: ed9e37872f818f1e8903eba505917478 #: Ep4?d_M{r)z`Ld9WcKD)ECGynPT?zy>7 z=hYs}ZarlvYp4sU$D54Vg!h|iDA!tynTgkN7T&|T_#Ee8Q|rWa7tZE-RpWXyc5=N7 zIm`hX-FK+@jv({Z%uf?1<`?YX#yOmX7f=&iLJo6-W&m$t8?L8Oe?LyguN!{T=--Qz z=^wx@97fImJ+8)+IF0qq7$;ijGHT(Qs0r_2J3c{8^a7{hYt#;!89Wu|;1*nhdTs!9 zzk(aEhU@S=cH?7QfN!y@M!LJ1T`66|YMlJKTsr;wI!Uf72+%H&KDyMg{t;(f=MfObfGW zN1dnuda(!laX#)teOrf7<9|j4_S+QluLsW3q10VO?dTdV!GBO6-5cDAQ;Aj|(Y}TW zTCPvvBK#edxxY{g+(i;x1hERWmID1ydiDN46g{w%O16r>;Y(ajRZ$R%Tv^fr%E~Q^-N{Vi`gxBH}Q^OCcJaWY)r(|V~ljf2n?T|@3*P|fX?v-W?Z?3F)l?vCX3 znQi6ob{|chJ(^T~(Pe|mkgaCUW^s^}?8?4gdob}f^e)Jw%CODci1R^=mE2WAml>Yd zjdBo{qKc~@ZyV_@<$0QY)z^18@k6P1S++Lu!+m3~+SWC9!XzPt|q@sXJyz5{**$&br)I^C*ro`s2V32A*5VU>qH) zx+3;e`wIQ|sPi_Bt6Ai#KC@}b2N|L7n26bqpSI(pp^v;X%s3QfX;O&>i74Y~vwVF| aX2Yahf7a38^XaXbZ6)VJs(tjsALd_eAltP7 delta 935 zcmYk*J4jnm9LMpKhtWh6UrBw`$Mu;-P!xwQr6^7g1zWmE(P{%m#7D$YqTt{l?Qn5$ zb8<^5gf1<`2iU2D2pPHv6-DYIZI@ao`2F3Sf(Ot2-1E5S{Leqf%eq`VdsY+NHk2f_ ziTd1U%ph+0c~B+;##G@eti}w+aRX~{$F_4=L;J|K3mBz+jY0fl$N!<$tD=+jvZk&0 zVg@kGzzBx$De`At@R-1HEWuB<{}5xezgP>l{{lSX#2b z$?_7xZEV3^)Q0=0fKE^me?tXug$nGqRg?666qUJpWXQDQCMHoCc#kB*d_)DXk6A@n zumjhqi8rW|+@dy4(AkI`s5|l)HE*1U0!g9fWl))1Lml8Pw&E`8?i|?hQ*>y550n39 zUi^fwg&ZVv-r`-z{@!n{^r%=|WkW?-N>c08pajiy zF=92ksY;7Z^1mqEom8DhCs!6KsqIuQvUfW0{u3HdhtW@Xzr@|+z^(f=_}TqXGV9KV wR`P#Cz5e`QIN)<%M&89 __("Replace the defaut « From blog » +#: text", "acajou"), +msgid "Replace the defaut « From the blog » text" +msgstr "Remplacer le titre « Actualités »" + +# wpml-name: e9e838e8eb8a156d2989faa260244799 +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_from_section", array( "title" => +#: __("From the blog", "acajou"), +msgid "From the blog" +msgstr "Actualités" + +# wpml-name: dc754740f7de8b013feff530324c71b8 +#: "typing_text", array( "label" => __("Type your text and use slash (/) for +#: creating several sentences", "acajou"), +msgid "Type your text and use slash (/) for creating several sentences" +msgstr "" +"Tapez votre texte et utilisez la barre oblique (/) pour créer plusieurs " +"phrases" + +# wpml-name: 0eae6a1413df83696f931b200ba47561 +#: // Create sections for socials links +#: $wp_customize->add_section("acajou_typing_section", array( "title" => +#: __("Typing machine", "acajou"), +msgid "Typing machine" +msgstr "Machine à écrire" + # wpml-name: 7dce122004969d56ae2e0245cb754d35 #: #: Github

msgid "and available on" -msgstr "disponible sur" +msgstr "et disponible sur " # wpml-name: e2b8f1326fea2c94cdc3bccda878a9d6 #:
class="small-6 large-6 columns">

#: Github

msgid "https://wordpress.org/" -msgstr "" +msgstr "https://wordpress.org/" # wpml-name: ed9e37872f818f1e8903eba505917478 #: