Skip to content

Commit

Permalink
Fixed the textdomain, cretaed initial .pot file and added transifex c…
Browse files Browse the repository at this point in the history
…onfig file #5
  • Loading branch information
claudiosanches committed Apr 2, 2015
1 parent 9b08702 commit 6dc53c4
Show file tree
Hide file tree
Showing 6 changed files with 263 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[main]
host = https://www.transifex.com

[horizon-theme.horizon-theme]
file_filter = languages/<lang>.po
source_file = languages/horizon-theme.pot
source_lang = en
type = PO
9 changes: 5 additions & 4 deletions assets/scss/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Tags:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horizon-theme
Domain Path: languages/
*/

//Variables configuration.
Expand Down Expand Up @@ -119,7 +120,7 @@ html {
padding: 0px 30px;
}

.navbar-default .navbar-nav>li{
.navbar-default .navbar-nav>li{
padding: 45px 0px;
padding-bottom: 42px;
border-bottom: 3px transparent solid;
Expand All @@ -129,7 +130,7 @@ html {
font-weight: bold;
padding: 0px 30px;
border-right: 1px $primaryColor solid;
line-height: 1;
line-height: 1;
}
&:last-child a{
border-right: 0px;
Expand Down Expand Up @@ -160,7 +161,7 @@ html {
min-width: 100%;
max-width: 100%;
height: auto;
.active > a, .active > a:focus, .active > a:hover{
.active > a, .active > a:focus, .active > a:hover{
background-color: $primaryColor;
}
}
Expand All @@ -170,7 +171,7 @@ html {
a{
font-size: 12px;
color: #fff;
text-align: center;
text-align: center;
text-transform: uppercase;
padding: 15px;
line-height: 1.5;
Expand Down
4 changes: 2 additions & 2 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-main-navigation">
<span class="sr-only"><?php _e( 'Toggle navigation', 'odin' ); ?></span>
<span class="sr-only"><?php _e( 'Toggle navigation', 'horizon-theme' ); ?></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
Expand Down Expand Up @@ -63,7 +63,7 @@
$header_image = get_header_image();
if ( ! empty( $header_image ) ) :
?>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" height="<?php esc_attr_e( $header_image->height ); ?>" width="<?php esc_attr_e( $header_image->width ); ?>" alt="" /></a>
<a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php echo esc_url( $header_image ); ?>" height="<?php echo esc_attr( $header_image->height ); ?>" width="<?php echo esc_attr( $header_image->width ); ?>" alt="" /></a>
<?php endif; ?>
</header><!-- #header -->

Expand Down
2 changes: 1 addition & 1 deletion inc/class-horizon-theme-nav-walker.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public static function fallback( $args ) {
}

$fb_output .= '>';
$fb_output .= '<li><a href="' . admin_url( 'nav-menus.php' ) . '">' . __( 'Add a menu', 'odin' ) . '</a></li>';
$fb_output .= '<li><a href="' . admin_url( 'nav-menus.php' ) . '">' . __( 'Add a menu', 'horizon-theme' ) . '</a></li>';
$fb_output .= '</ul>';

if ( $container ) {
Expand Down
246 changes: 246 additions & 0 deletions languages/horizon-theme.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,246 @@
# Copyright (C) 2015
# This file is distributed under the GNU General Public License v2 or later.
msgid ""
msgstr ""
"Project-Id-Version: Horizon Theme 1.0.0\n"
"Report-Msgid-Bugs-To: http://wordpress.org/support/theme/style\n"
"POT-Creation-Date: 2015-04-02 22:12:33+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 <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"X-Generator: grunt-wp-i18n 0.5.1\n"

#: 404.php:14
msgid "Not Found"
msgstr ""

#: 404.php:18
msgid "It looks like nothing was found at this location. Maybe try a search?"
msgstr ""

#: audio.php:23 video.php:23
msgid "URL:"
msgstr ""

#: audio.php:29 image.php:39 video.php:29
msgid "Back to %s"
msgstr ""

#: audio.php:29 image.php:39 video.php:29
msgid "<span class=\"meta-nav\">&larr;</span> %s"
msgstr ""

#: comments.php:12
msgid "This post is password protected. Enter the password to view all comments."
msgstr ""

#: comments.php:21
msgid "0 Comments"
msgstr ""

#: comments.php:21 content.php:52
msgid "1 Comment"
msgstr ""

#: comments.php:21 content.php:52
msgid "% Comments"
msgstr ""

#: comments.php:22
msgid "to"
msgstr ""

#: comments.php:27 comments.php:36
msgid "&larr; Old Comments"
msgstr ""

#: comments.php:28 comments.php:37
msgid "New Comments &rarr;"
msgstr ""

#: comments.php:42
msgid "Comments closed."
msgstr ""

#: comments.php:53
msgid "Comment"
msgstr ""

#: comments.php:55
msgid "Name"
msgstr ""

#: comments.php:56
msgid "E-mail"
msgstr ""

#: comments.php:57
msgid "Website"
msgstr ""

#: content-none.php:10
msgid "Nothing Found"
msgstr ""

#: content-none.php:16
msgid "Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
msgstr ""

#: content-none.php:20
msgid ""
"Sorry, but nothing matched your search terms. Please try again with some "
"different keywords."
msgstr ""

#: content-none.php:25
msgid ""
"It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps "
"searching can help."
msgstr ""

#: content-page.php:16 content.php:37
msgid "Pages:"
msgstr ""

#: content.php:35
msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
msgstr ""

#: content.php:48
msgid "Posted in:"
msgstr ""

#: content.php:50
msgid "Tagged as:"
msgstr ""

#: content.php:52
msgid "Leave a comment"
msgstr ""

#: footer.php:16
msgid "All rights reserved"
msgstr ""

#: footer.php:16
msgid ""
"Powered by the <a href=\"%s\" rel=\"nofollow\" target=\"_blank\">Horizon "
"Theme</a> forces and <a href=\"%s\" rel=\"nofollow\" "
"target=\"_blank\">WordPress</a>."
msgstr ""

#: functions.php:41
msgid "Main Menu"
msgstr ""

#: functions.php:154
msgid "Main Sidebar"
msgstr ""

#: functions.php:156
msgid "Site Main Sidebar"
msgstr ""

#: header.php:28
msgid "Toggle navigation"
msgstr ""

#: image.php:22
msgid "Image total size: %s pixels"
msgstr ""

#: image.php:22
msgid "Full image link"
msgstr ""

#: image.php:33
msgid "&larr; Previous image"
msgstr ""

#: image.php:34
msgid "Next image &rarr;"
msgstr ""

#: inc/class-horizon-theme-nav-walker.php:198
msgid "Add a menu"
msgstr ""

#: inc/comments-loop.php:21
msgid "Pingback:"
msgstr ""

#: inc/comments-loop.php:21 inc/comments-loop.php:31
msgid "Edit"
msgstr ""

#: inc/comments-loop.php:30
msgid "in"
msgstr ""

#: inc/comments-loop.php:30
msgid "at"
msgstr ""

#: inc/comments-loop.php:30
msgid "said:"
msgstr ""

#: inc/comments-loop.php:34
msgid "Your comment is awaiting moderation."
msgstr ""

#: inc/comments-loop.php:39
msgid "Respond"
msgstr ""

#: inc/template-tags.php:48
msgid "&laquo; Previous"
msgstr ""

#: inc/template-tags.php:49
msgid "Next &raquo;"
msgstr ""

#: inc/template-tags.php:74
msgid "Sticky"
msgstr ""

#: inc/template-tags.php:79
msgid "Posted in"
msgstr ""

#: inc/template-tags.php:82
msgid "by"
msgstr ""

#: search.php:16
msgid "Search Results for: %s"
msgstr ""

#: searchform.php:11 searchform.php:14
msgid "Search"
msgstr ""

#. Theme Name of the plugin/theme
msgid "Horizon Theme"
msgstr ""

#. Author URI of the plugin/theme
msgid "https://github.com/WordPressBeloHorizonte/horizon-theme"
msgstr ""

#. Description of the plugin/theme
msgid "Needs description."
msgstr ""

#. Template Name of the plugin/theme
msgid "With Sidebar"
msgstr ""

#: content.php:48
msgctxt "Used between list items, there is a space after the comma."
msgid ", "
msgstr ""
1 change: 1 addition & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Tags:
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: horizon-theme
Domain Path: languages/
*/
/**
* Variables configuration.
Expand Down

0 comments on commit 6dc53c4

Please sign in to comment.