From c094114662de9bdfa52a95edc0d818ef980c3282 Mon Sep 17 00:00:00 2001 From: awesomepage Date: Mon, 23 Mar 2015 01:34:20 -0600 Subject: [PATCH] Version 0.1.8 --- README.md | 3 +- includes/classes/Theme-Setup.class.php | 11 ++ languages/en_US.mo | Bin 0 -> 639 bytes languages/en_US.po | 231 ++++++++++++++++++++++++ languages/es_MX.mo | Bin 0 -> 3488 bytes languages/es_MX.po | 237 +++++++++++++++++++++++++ 6 files changed, 481 insertions(+), 1 deletion(-) create mode 100644 languages/en_US.mo create mode 100644 languages/en_US.po create mode 100644 languages/es_MX.mo create mode 100644 languages/es_MX.po diff --git a/README.md b/README.md index 5b0f919..ffbdb14 100755 --- a/README.md +++ b/README.md @@ -25,7 +25,8 @@ This theme requires 4. author.php + Semantic UI Card view styles 5. Paging. because you have to have it. :D 6. Load Blog Header Image from Theme Options - 7. Include Basic Theme Options **(current)** + 7. Include Basic Theme Options + 8. Text domain registration **(current)** 2. Enhance Scripts and Styles and Internationalization 3. Enhancements to pass [WordPress' Theme Unit Test](https://codex.wordpress.org/Theme_Unit_Test) 4. Integration of Ninja Forms and Contact Form 7 diff --git a/includes/classes/Theme-Setup.class.php b/includes/classes/Theme-Setup.class.php index 44754cc..b7fe84e 100755 --- a/includes/classes/Theme-Setup.class.php +++ b/includes/classes/Theme-Setup.class.php @@ -68,6 +68,17 @@ public static function init(){ self::registerMenus(); //Register Sidebars self::registerSidebars(); + //Load Text Domain + self::loadTextDomain(); + } + + public static function loadTextDomain(){ + $path = get_stylesheet_directory() . '/languages'; + if ( !file_exists( $path . '/transit4wp-en_US.mo' ) ){ + $path = get_template_directory() . '/languages'; + } + + load_theme_textdomain( 'transit4wp', $path ); } public static function registerFilters(){ diff --git a/languages/en_US.mo b/languages/en_US.mo new file mode 100644 index 0000000000000000000000000000000000000000..849780f43f8ef997a7f56c4133da917825c106ad GIT binary patch literal 639 zcmZuuO>Yx15Dg!vJ#ywSl{kQeH{P_+;B8PvNKr(huG$p1tp@KjG3?qa+iBAu!r$Y! zFv*Grq>l7#&&<>F8~gXOr@wj}j~LGxFBnf4uNm7IGA56Ey?4BCIrmX`_k(m4(@K0H zAB?jK79MRd5w4wwug+J6rx23jd?Ci3FfvDc#7GJTGJ7NBp%@&3%#=J9@~xCi6c==3 zwptJJ21gxlh9QdGT{TAM6-*H~P~ei_1aB$0hE5HaTCSwpHSd!d+U1%vu^?=iubnj- zVUGSMMPrw6!j*_Rx>M8jn!m081r(4iuP&4MbUxY7oux7vvjAE4b=UHMkv6g4)@W=F zdWAkv99=EW#Bk5szST8(F|pcJ>_NfsyNSs+@rf+?Zm_~p#qXJ=$7#l$E)^dzP>XS; zAnhkbz4lm(Gv}M2z_zlw7lAXL\n" +"Language-Team: Iconica Marketing \n" +"Language: en_US\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.7.1\n" +"X-Poedit-Basepath: ./\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: __;_e;_x;_n;_xn\n" +"X-Poedit-SearchPath-0: ..\n" +"X-Poedit-SearchPathExcluded-0: ../includes/vendors\n" + +#: ../404.php:7 +msgid "This is not here. But we found a cute puppy!" +msgstr "" + +#: ../404.php:11 +msgid "This is a 404 page!" +msgstr "" + +#: ../author.php:15 +msgid "Presenting: " +msgstr "" + +#: ../author.php:26 +msgid " picture" +msgstr "" + +#: ../author.php:31 +msgid "Author since: " +msgstr "" + +#: ../author.php:31 +msgid "F Y" +msgstr "" + +#: ../author.php:41 +msgid "Facebook" +msgstr "" + +#: ../author.php:49 +msgid "Twitter" +msgstr "" + +#: ../author.php:57 +msgid "LinkedIn" +msgstr "" + +#: ../author.php:65 +msgid "Google+" +msgstr "" + +#: ../author.php:77 +msgid "My latest articles" +msgstr "" + +#: ../author.php:99 ../templates/author-feed.php:48 +msgid " Published on " +msgstr "" + +#: ../author.php:99 ../includes/classes/Semantic-UI-Comment-View.class.php:58 +#: ../templates/author-feed.php:20 ../templates/author-feed.php:48 +msgid "M d, Y" +msgstr "" + +#: ../comments.php:6 +#, php-format +msgid "%d Comment on %s" +msgstr "" + +#: ../comments.php:19 +msgid "Be BOLD, comment first!" +msgstr "" + +#: ../comments.php:24 +msgid "Comments are closed." +msgstr "" + +#: ../includes/classes/Semantic-UI-Comment-View.class.php:28 +msgid "Reply" +msgstr "" + +#: ../includes/classes/Semantic-UI-Comment-View.class.php:29 +#, php-format +msgid "Reply to %s" +msgstr "" + +#: ../includes/classes/Semantic-UI-Comment-View.class.php:30 +msgid "Log in to Reply" +msgstr "" + +#: ../includes/classes/Semantic-UI-Comment-View.class.php:58 +#: ../templates/index-post-entry.php:12 +msgid "On: " +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:105 +msgid "Banner Heading" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:106 +msgid "Banner Subtitle" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:107 +msgid "Hero Image" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:108 +msgid "Action Text" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:109 +msgid "Action Link" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:110 +msgid "Action Target" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:111 +msgid "Action Class" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:114 +msgid "Post Banner" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:146 +msgid "Main Menu" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:147 +msgid "First Footer Menu" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:148 +msgid "Second Footer Menu" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:149 +msgid "Third Footer Menu" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:150 +msgid "Fourth Footer Menu" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:157 +msgid "Blog Sidebar" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:160 +msgid "Single Post Sidebar" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:164 +msgid "Footer Section" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:171 +msgid "Sidebar name" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:246 +msgid "Personal Facebook Profile or Page" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:247 +msgid "Personal Twitter Account" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:248 +msgid "Personal LinkedIn Profile or Page" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:249 +msgid "Personal Google Plus Profile or Page" +msgstr "" + +#: ../search.php:16 +#, php-format +msgid "Search Results for: %s" +msgstr "" + +#: ../templates/author-feed.php:15 +msgid "Writen by: " +msgstr "" + +#: ../templates/author-feed.php:20 +msgid " on " +msgstr "" + +#: ../templates/author-feed.php:24 +msgid "View all posts by " +msgstr "" + +#: ../templates/author-feed.php:30 +msgid "More awesome articles by " +msgstr "" + +#: ../templates/index-post-entry.php:9 +msgid "By: " +msgstr "" + +#: ../templates/index-post-entry.php:12 +msgid "Y M, d" +msgstr "" + +#: ../templates/index-post-entry.php:22 +msgid "Read More" +msgstr "" + +#: ../templates/index-post-entry.php:27 +msgid "Share on: " +msgstr "" + +#: ../templates/simple-pagination.php:6 +msgid "Previous Articles" +msgstr "" + +#: ../templates/simple-pagination.php:10 +msgid "Recent Articles" +msgstr "" diff --git a/languages/es_MX.mo b/languages/es_MX.mo new file mode 100644 index 0000000000000000000000000000000000000000..bc609cb49d6eacbece8416f174d454d263ec640e GIT binary patch literal 3488 zcmZ{lO>87b6~_x$2r(ff;VVlBdBbAZP2A)0ZZOe!y^8JFSu39G#537AQY5RUyF63b zo~que>h)Se%7F`Lg_KB;14sxT_psu?DT{L15fTR^IB?D(;gVdqZ~<}P|N3Lrj+|C^ z|GGZ9-e7BJJ}1N)_|O;d!u9wmAsz-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uxt`N zGu4zN_B&D&6U3H6?574Eo#a%E^uo!8>R-ES`h}#KEe3D~U\n" +"Language-Team: Iconica Marketing \n" +"Language: es_MX\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"X-Generator: Poedit 1.7.1\n" +"X-Poedit-Basepath: ./\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" +"X-Poedit-SourceCharset: UTF-8\n" +"X-Poedit-KeywordsList: __;_e;_x;_n;_xn\n" +"X-Poedit-SearchPath-0: ..\n" +"X-Poedit-SearchPathExcluded-0: ../includes/vendors\n" + +#: ../404.php:7 +msgid "This is not here. But we found a cute puppy!" +msgstr "No encontramos lo que estás buscando. ¡Pero este perrito esta bien padre!" + +#: ../404.php:11 +msgid "This is a 404 page!" +msgstr "¡Esta es una cochina página 404!" + +#: ../author.php:15 +msgid "Presenting: " +msgstr "Te presentamos a: " + +#: ../author.php:26 +msgid " picture" +msgstr " foto" + +#: ../author.php:31 +msgid "Author since: " +msgstr "Escribiendo desde: " + +#: ../author.php:31 +msgid "F Y" +msgstr "" + +#: ../author.php:41 +msgid "Facebook" +msgstr "" + +#: ../author.php:49 +msgid "Twitter" +msgstr "" + +#: ../author.php:57 +msgid "LinkedIn" +msgstr "" + +#: ../author.php:65 +msgid "Google+" +msgstr "" + +#: ../author.php:77 +msgid "My latest articles" +msgstr "Mis últimos artículos" + +#: ../author.php:99 ../templates/author-feed.php:48 +msgid " Published on " +msgstr " Publicado en " + +#: ../author.php:99 ../includes/classes/Semantic-UI-Comment-View.class.php:58 +#: ../templates/author-feed.php:20 ../templates/author-feed.php:48 +msgid "M d, Y" +msgstr "d \\d\\e F \\d\\e Y" + +#: ../comments.php:6 +#, php-format +msgid "%d Comment on %s" +msgstr "%d Comentario en %s" + +#: ../comments.php:19 +msgid "Be BOLD, comment first!" +msgstr "¡Te invitamos a ser el Primero en comentar!" + +#: ../comments.php:24 +msgid "Comments are closed." +msgstr "Aquí no nos dejan comentar. !Pero X al cabo que ni queriamos!" + +#: ../includes/classes/Semantic-UI-Comment-View.class.php:28 +msgid "Reply" +msgstr "Responder" + +#: ../includes/classes/Semantic-UI-Comment-View.class.php:29 +#, php-format +msgid "Reply to %s" +msgstr "Responder a %s" + +#: ../includes/classes/Semantic-UI-Comment-View.class.php:30 +msgid "Log in to Reply" +msgstr "Inicia sesión para responder" + +#: ../includes/classes/Semantic-UI-Comment-View.class.php:58 +#: ../templates/index-post-entry.php:12 +msgid "On: " +msgstr "El " + +#: ../includes/classes/Theme-Setup.class.php:105 +msgid "Banner Heading" +msgstr "Título del Banner" + +#: ../includes/classes/Theme-Setup.class.php:106 +msgid "Banner Subtitle" +msgstr "Subtitulo del banner" + +#: ../includes/classes/Theme-Setup.class.php:107 +msgid "Hero Image" +msgstr "Imagen del Banner" + +#: ../includes/classes/Theme-Setup.class.php:108 +msgid "Action Text" +msgstr "Texto del botón" + +#: ../includes/classes/Theme-Setup.class.php:109 +msgid "Action Link" +msgstr "URL del botón" + +#: ../includes/classes/Theme-Setup.class.php:110 +msgid "Action Target" +msgstr "Target de la ventana" + +#: ../includes/classes/Theme-Setup.class.php:111 +msgid "Action Class" +msgstr "Clase CSS" + +#: ../includes/classes/Theme-Setup.class.php:114 +msgid "Post Banner" +msgstr "Banner de Página" + +#: ../includes/classes/Theme-Setup.class.php:146 +msgid "Main Menu" +msgstr "Menú Principal" + +#: ../includes/classes/Theme-Setup.class.php:147 +msgid "First Footer Menu" +msgstr "Primera Menú del Footer" + +#: ../includes/classes/Theme-Setup.class.php:148 +msgid "Second Footer Menu" +msgstr "Segunda Menú del Footer" + +#: ../includes/classes/Theme-Setup.class.php:149 +msgid "Third Footer Menu" +msgstr "Tercer Ménu del Footer" + +#: ../includes/classes/Theme-Setup.class.php:150 +msgid "Fourth Footer Menu" +msgstr "Cuarto Ménu del Footer" + +#: ../includes/classes/Theme-Setup.class.php:157 +msgid "Blog Sidebar" +msgstr "Sidebar para el Blog" + +#: ../includes/classes/Theme-Setup.class.php:160 +msgid "Single Post Sidebar" +msgstr "Sidebar para los artículos" + +#: ../includes/classes/Theme-Setup.class.php:164 +msgid "Footer Section" +msgstr "Sección Footer" + +#: ../includes/classes/Theme-Setup.class.php:171 +msgid "Sidebar name" +msgstr "" + +#: ../includes/classes/Theme-Setup.class.php:246 +msgid "Personal Facebook Profile or Page" +msgstr "Vínculo personal de Facebook" + +#: ../includes/classes/Theme-Setup.class.php:247 +msgid "Personal Twitter Account" +msgstr "Vínculo personal de Twitter" + +#: ../includes/classes/Theme-Setup.class.php:248 +msgid "Personal LinkedIn Profile or Page" +msgstr "Vínculo personal de LinkedIn" + +#: ../includes/classes/Theme-Setup.class.php:249 +msgid "Personal Google Plus Profile or Page" +msgstr "Vínculo personal de Google+" + +#: ../search.php:16 +#, php-format +msgid "Search Results for: %s" +msgstr "Resultados de búsqueda para: %s" + +#: ../templates/author-feed.php:15 +msgid "Writen by: " +msgstr "Autor: " + +#: ../templates/author-feed.php:20 +msgid " on " +msgstr " en " + +#: ../templates/author-feed.php:24 +msgid "View all posts by " +msgstr "Ver todos los artículos de " + +#: ../templates/author-feed.php:30 +msgid "More awesome articles by " +msgstr "Más artículos de " + +#: ../templates/index-post-entry.php:9 +msgid "By: " +msgstr "Autor: " + +#: ../templates/index-post-entry.php:12 +msgid "Y M, d" +msgstr "d \\d\\e F \\d\\e Y" + +#: ../templates/index-post-entry.php:22 +msgid "Read More" +msgstr "Leer artículo" + +#: ../templates/index-post-entry.php:27 +msgid "Share on: " +msgstr "Compartelo en:" + +#: ../templates/simple-pagination.php:6 +msgid "Previous Articles" +msgstr "Artículos anteriores" + +#: ../templates/simple-pagination.php:10 +msgid "Recent Articles" +msgstr "Artículos recientes" + +#~ msgid "Conditions" +#~ msgstr "Condiciones" + +#~ msgid "Show Gallery" +#~ msgstr "Mostrar Galeria"