Skip to content

Commit

Permalink
Translation, content styling.
Browse files Browse the repository at this point in the history
  • Loading branch information
connor-baer committed Jul 4, 2016
1 parent 9527f1e commit 894f0a0
Show file tree
Hide file tree
Showing 9 changed files with 489 additions and 23 deletions.
2 changes: 1 addition & 1 deletion components/content-none.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

<p><?php printf( wp_kses( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'nc-template' ), array( 'a' => array( 'href' => array() ) ) ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>

<?php elseif ( is_search() ) :
<?php elseif ( is_search() ) :
get_search_form(); ?>

<p><?php esc_html_e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'nc-template' ); ?></p>
Expand Down
3 changes: 3 additions & 0 deletions editor-style.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</div>
<div class="footer-info">
<p>&#xa9; <?php bloginfo( 'name' ); ?>. <?php echo esc_html__( 'All rights reserved.', 'nc-template' ); ?>
<?php printf( esc_html__( 'Website by %s.', 'nc-template' ), '<a href="http://connorbaer.io/" rel="designer">Connor B&#228;r</a>' ); ?>
<?php printf( esc_html__( 'Website by %s.', 'nc-template' ), '<a href="http://connorbaer.io/" rel="designer" target="_blank">Connor B&#228;r</a>' ); ?>
</p>
</div>

Expand Down
4 changes: 2 additions & 2 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ function nc_template_setup() {
*/
add_theme_support( 'post-thumbnails' );

add_image_size( 'nc-template-featured-image', 640, 9999 );
set_post_thumbnail_size( 1280, 9999, false );

// Enable support for custom logo.
add_theme_support( 'custom-logo', array(
Expand Down Expand Up @@ -98,7 +98,7 @@ function nc_template_setup() {
* This theme styles the visual editor to resemble the theme style,
* specifically font, colors, icons, and column width.
*/
add_editor_style( array( 'css/editor-style.css', nc_template_fonts_url() ) );
add_editor_style( array( 'editor-style.css', nc_template_fonts_url() ) );
}
endif;
add_action( 'after_setup_theme', 'nc_template_setup' );
Expand Down
20 changes: 2 additions & 18 deletions image.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
echo wp_get_attachment_image( get_the_ID(), $image_size );
?>

<?php nc_template_excerpt( 'entry-caption' ); ?>
<?php the_excerpt( 'entry-caption' ); ?>

</div><!-- .entry-attachment -->

Expand All @@ -60,7 +60,7 @@
</div><!-- .entry-content -->

<footer class="entry-footer">
<?php nc_template_entry_meta(); ?>
<?php the_meta(); ?>
<?php
// Retrieve attachment metadata.
$metadata = wp_get_attachment_metadata();
Expand All @@ -73,26 +73,10 @@
);
}
?>
<?php
edit_post_link(
sprintf(
/* translators: %s: Name of current post */
__( 'Edit<span class="screen-reader-text"> "%s"</span>', 'nc-template' ),
get_the_title()
),
'<span class="edit-link">',
'</span>'
);
?>
</footer><!-- .entry-footer -->
</article><!-- #post-## -->

<?php
// If comments are open or we have at least one comment, load up the comment template.
if ( comments_open() || get_comments_number() ) {
comments_template();
}

// Parent post navigation.
the_post_navigation( array(
'prev_text' => _x( '<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'Parent post link', 'nc-template' ),
Expand Down
Binary file added languages/de_DE.mo
Binary file not shown.
248 changes: 248 additions & 0 deletions languages/de_DE.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,248 @@
msgid ""
msgstr ""
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"Project-Id-Version: NC Template\n"
"POT-Creation-Date: 2016-07-04 09:04+0200\n"
"PO-Revision-Date: 2016-07-04 09:14+0200\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 1.8.8\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-WPHeader: style.css\n"
"X-Poedit-SourceCharset: UTF-8\n"
"X-Poedit-KeywordsList: __;_e;_n:1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;esc_attr__;"
"esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c;_n_noop:1,2;"
"_nx_noop:3c,1,2;__ngettext_noop:1,2\n"
"Last-Translator: \n"
"Language: de_DE\n"
"X-Poedit-SearchPath-0: .\n"
"X-Poedit-SearchPathExcluded-0: *.js\n"

#: 404.php:17
msgid "404 Oh crumbs."
msgstr "404 Oh Krümel."

#: 404.php:22
#, php-format
msgid ""
"Looks like something has gone terribly wrong somewhere in the Internet. As a "
"result, the page you requested isn&rsquo;t available. Or maybe it "
"doesn&rsquo;t exist. Maybe it never existed. Maybe this page is a figment of "
"your imagination. Maybe you are a figment of your own imagination. Did we "
"just blow your mind? Find out more about the <a href=\"%s\">theory of "
"knowledge course</a> at UWC or simply use the search bar below to find what "
"you are looking for."
msgstr ""
"Sieht aus wie etwas schrecklich falsch irgendwo im Internet gegangen ist. "
"Als Ergebnis ist die von Ihnen angeforderte Seite nicht zur Verfügung. Oder "
"vielleicht existiert es nicht. Vielleicht gab es nie. Vielleicht ist diese "
"Seite eine Ausgeburt der Phantasie. Vielleicht sind Sie eine Ausgeburt der "
"eigenen Phantasie. Haben wir blasen einfach nur die Seele? Erfahren Sie mehr "
"über die <a href=\"%s\">Theorie des Wissens natürlich</a> bei UWC oder "
"verwenden Sie einfach die Suchleiste unten zu finden , was Sie suchen."

#: comments.php:31
#, php-format
msgctxt "comments title"
msgid "One thought on &ldquo;%2$s&rdquo;"
msgid_plural "%1$s thoughts on &ldquo;%2$s&rdquo;"
msgstr[0] "1 Kommentar zu &ldquo;%2$s&rdquo;"
msgstr[1] "%1$s Kommentare zu &ldquo;%2$s&rdquo;"

#: comments.php:40 comments.php:60
msgid "Comment navigation"
msgstr "Navigation der Kommentare"

#: comments.php:43 comments.php:63
msgid "Older Comments"
msgstr "Ältere Kommentare"

#: comments.php:44 comments.php:64
msgid "Newer Comments"
msgstr "Neuere Einträge"

#: comments.php:77
msgid "Comments are closed."
msgstr "Es können keine Kommentare abgegeben werden."

#: components/content-none.php:14
msgid "Nothing Found"
msgstr "Es wurde nichts gefunden."

#: components/content-none.php:20
#, php-format
msgid ""
"Ready to publish your first post? <a href=\"%1$s\">Get started here</a>."
msgstr ""
"Sind Sie bereit, Ihren ersten Beitrag zu veröffentlichen? <a "
"href=“%s”>Beginnen Sie hier</a>."

#: components/content-none.php:25
msgid ""
"Sorry, but nothing matched your search terms. Please try again with some "
"different keywords."
msgstr ""
"Es tut uns leid. Ihre Suche ergab keinen Treffer. Bitte versuchen Sie es mit "
"einem anderen Begriff!"

#: components/content-none.php:28
msgid ""
"It seems we can&rsquo;t find what you&rsquo;re looking for. Perhaps "
"searching can help."
msgstr "Wir konnten keine Ergebnisse finden. Vielleicht hilft das Suchfeld."

#: components/content-page.php:40 components/content.php:54 image.php:52
msgid "Pages:"
msgstr "Seiten: "

#: components/content.php:49
#, php-format
msgid "Continue reading %s <span class=\"meta-nav\">&rarr;</span>"
msgstr "„%s“ weiterlesen <span class=\"meta-nav\">&rarr;</span>"

#: components/navigation-header.php:10
msgid "Top Menu"
msgstr "Hauptnavigation"

#: footer.php:34
msgid "All rights reserved."
msgstr "Alle Rechte vorbehalten."

#: footer.php:35
#, php-format
msgid "Website by %s."
msgstr "Webseite von %s."

#: functions.php:61
msgid "Header"
msgstr "Kopfzeile"

#: functions.php:62
msgid "Social"
msgstr "Soziale Netzwerke"

#: functions.php:63
msgid "Footer"
msgstr "Fußzeile"

#: functions.php:125
msgid "Sidebar"
msgstr "Seitenleiste"

#: functions.php:134
msgid "Footer left"
msgstr "Fußzeile links"

#: functions.php:143
msgid "Footer center"
msgstr "Fußzeile mitte"

#: functions.php:152
msgid "Footer right"
msgstr "Fußzeile rechts"

#: functions.php:174
msgctxt "Cabin font: on or off"
msgid "on"
msgstr "on"

#: header.php:34
msgid "Skip to content"
msgstr "Zum Inhalt springen"

#: image.php:22
msgid "Previous Image"
msgstr "Voriges Bild"

#: image.php:23
msgid "Next Image"
msgstr "Nächstes Bild"

#: image.php:56
msgid "Page"
msgstr "Seite"

#: image.php:69
msgctxt "Used before full size attachment link."
msgid "Full size"
msgstr "Originalgröße"

#: image.php:80
#, php-format
msgid "Edit<span class=\"screen-reader-text\"> \"%s\"</span>"
msgstr "Bearbeiten<span class=\"screen-reader-text\"> \"%s\"</span>"

#: image.php:98
msgctxt "Parent post link"
msgid ""
"<span class=\"meta-nav\">Published in</span><span class=\"post-title\">"
"%title</span>"
msgstr ""
"<span class=\"meta-nav\">Veröffentlicht in</span><span class=\"post-title\">"
"%title</span>"

#: inc/back-compat.php:35 inc/back-compat.php:45 inc/back-compat.php:58
#, php-format
msgid ""
"NC Template requires at least WordPress version 4.4. You are running version "
"%s. Please upgrade and try again."
msgstr ""
"NC Template setzt mindestens WordPress Version 4.4 voraus. Du nutzt Version "
"%s. Bitte aktualisiere und probiere es dann noch einmal."

#: inc/extras.php:40
msgid "Search"
msgstr "Suche"

#: inc/template-tags.php:52
#, php-format
msgctxt "post date"
msgid "Posted on %s"
msgstr "Gepostet am %s"

#: inc/template-tags.php:57
#, php-format
msgctxt "post author"
msgid "by %s"
msgstr "von %s."

#: search.php:20
#, php-format
msgid "Search results for &#x201c;%s&#x201d;"
msgstr "Suchergebnisse für %s"

#: searchform.php:10
msgctxt "label"
msgid "Search for:"
msgstr "Suche nach:"

#: searchform.php:11
msgctxt "placeholder"
msgid "Search..."
msgstr "Suche..."

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

#. Theme URI of the plugin/theme
msgid "https://github.com/uwc/nc-template"
msgstr "https://github.com/uwc/nc-template"

#. Description of the plugin/theme
msgid ""
"A template for UWC national committee websites. Please request permission "
"before use."
msgstr ""
"Eine Vorlage für die UWC Nationalkomitee Webseiten. Bitte fragen Sie vor dem "
"Gebrauch nach die Erlaubnis."

#. Author of the plugin/theme
msgid "Connor Bär"
msgstr "Connor Bär"

#. Author URI of the plugin/theme
msgid "http://connorbaer.io"
msgstr "http://connorbaer.io"
Loading

0 comments on commit 894f0a0

Please sign in to comment.