Skip to content

Commit

Permalink
Fix localizations (#23)
Browse files Browse the repository at this point in the history
* Fix localizations (closes #22).

* Exclude /bin from archive.
  • Loading branch information
Ned Zimmerman authored Jul 17, 2017
1 parent 7594bde commit 75fb223
Show file tree
Hide file tree
Showing 83 changed files with 76 additions and 77 deletions.
2 changes: 1 addition & 1 deletion .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ host = https://www.transifex.com
source_file = languages/pressbooks-book.pot
source_lang = en
type = PO
file_filter = languages/pressbooks-book-<lang>.po
file_filter = languages/<lang>.po
lang_map = de:de_DE, es:es_ES, fr:fr_FR, gl:gl_ES, nb:nb_NO, it:it_IT, ka:ka_GE, ru:ru_RU, ta:ta_LK
4 changes: 4 additions & 0 deletions bin/il8n.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PARENT="$(dirname $DIR)"
for file in $PARENT/languages/*.po ; do msgfmt $file -o `echo $file | sed 's/\(.*\.\)po/\1mo/'` ; done
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"humanmade/coding-standards": "^0.2.1"
},
"archive": {
"exclude": [".github", ".tx"]
"exclude": [".github", ".tx", "bin"]
},
"license": "GPL-2.0+",
"authors": [
Expand Down
6 changes: 6 additions & 0 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -447,3 +447,9 @@ function pb_social_media_enabled() {
}
return false;
}

function pressbooks_book_setup() {
load_theme_textdomain( 'pressbooks-book', get_template_directory() . '/languages' );
}

add_action( 'after_setup_theme', 'pressbooks_book_setup' );
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file added languages/de_DE.mo
Binary file not shown.
139 changes: 64 additions & 75 deletions languages/pressbooks-book-de_DE.po → languages/de_DE.po
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
# Copyright (C) 2017 pressbooks-book
# This file is distributed under the same license as the pressbooks-book package.
# Translators:
# Thomas Dumm <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: pressbooks-book\n"
"Last-Translator: Thomas Dumm <[email protected]>, 2017\n"
"Language-Team: German (https://www.transifex.com/pressbooks/teams/9194/de/)\n"
"Language-Team: German (Germany) (https://www.transifex.com/pressbooks/teams/9194/de_DE/)\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: de\n"
"Language: de_DE\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Poedit-Basepath: ..\n"
"X-Poedit-KeywordsList: __;_e;_ex:1,2c;_n:1,2;_n_noop:1,2;_nx:1,2,4c;_nx_noop:1,2,3c;_x:1,2c;esc_attr__;esc_attr_e;esc_attr_x:1,2c;esc_html__;esc_html_e;esc_html_x:1,2c\n"
Expand All @@ -22,276 +19,268 @@ msgstr ""
msgid ""
"This post is password protected. Enter the password to view any comments."
msgstr ""
"Dieser Post ist passwortgeschützt. Geben Sie das Passwort ein um die "
"Kommentare zu sehen."

#: ../comments.php29, ../comments.php:40
msgid "<span class=\"meta-nav\">&larr;</span> Older Comments"
msgstr "<span class=\"meta-nav\">&larr;</span>Ältere Kommentare"
msgstr ""

#: ../comments.php30, ../comments.php:41
msgid "Newer Comments <span class=\"meta-nav\">&rarr;</span>"
msgstr "Neuere Kommentare <span class=\"meta-nav\">&rarr;</span>"
msgstr ""

#: ../comments.php:48
msgid "Comments are closed."
msgstr "Kommentare sind gesperrt"
msgstr ""

#: ../comments.php:56
msgid "Submit"
msgstr "Einreichen"
msgstr ""

#: ../content-accessibility-toolbar.php:3
msgid "Toggle Font size"
msgstr "Schrifftgrösse wechseln"
msgstr ""

#: ../content-none.php:2
msgid "Nothing Found"
msgstr "Nichts gefunden"
msgstr ""

#: ../content-none.php:3
msgid ""
"Sorry, but nothing matched your search terms. Please try again with some "
"different keywords."
msgstr ""
"Leider wurden keine Treffer gefunden. Bitte versuchen Sie es nochmals mit "
"anderen Begriffen."

#: ../content-social-footer.php:4
msgid "I wanted to share this post with you from"
msgstr "Ich möchte diesen Post mit Ihnen teilen von"
msgstr ""

#: ../content-social-footer.php:5
msgid "Email to a friend"
msgstr "Einem Freund emailen"
msgstr ""

#: ../content-social-footer.php:5
msgid "Share via Email"
msgstr "Per E-Mail teilen"
msgstr ""

#: ../footer.php:23
msgid "Book Name"
msgstr "Name des Buchs"
msgstr ""

#: ../footer.php:38
msgid "Copyright"
msgstr "Copyright"
msgstr ""

#: ../footer.php:41
msgid "by"
msgstr "von"
msgstr ""

#: ../footer.php:51
msgid "Simple Book Production"
msgstr "Buchproduktion leicht gemacht"
msgstr ""

#: ../functions.php:19
msgid "Author"
msgstr "Autor"
msgstr ""

#: ../functions.php:20
msgid "Contributing Author"
msgstr "Mitautor"
msgstr ""

#: ../functions.php:21
msgid "Publisher"
msgstr "Verlag"
msgstr ""

#: ../functions.php:22
msgid "Print ISBN"
msgstr "Buch ISBN"
msgstr ""

#: ../functions.php:23
msgid "Keywords/Tags"
msgstr "Schlüsselbegriffe/Tags"
msgstr ""

#: ../functions.php:24
msgid "Publication Date"
msgstr "Veröffentlichungsdatum"
msgstr ""

#: ../functions.php:25
msgid "Hashtag"
msgstr "Hashtag"
msgstr ""

#: ../functions.php:26
msgid "Ebook ISBN"
msgstr "eBook ISBN"
msgstr ""

#: ../functions.php:191
msgid "Previous"
msgstr "Zurück"
msgstr ""

#: ../functions.php:194
msgid "Next"
msgstr "Weiter"
msgstr ""

#: ../functions.php:231
msgid "%s on"
msgstr "%s auf"
msgstr ""

#: ../functions.php:231
msgid "%1$s at %2$s"
msgstr "%1$s von %2$s"
msgstr ""

#: ../functions.php231, ../functions.php:251
msgid "(Edit)"
msgstr "(Bearbeiten)"
msgstr ""

#: ../functions.php:234
msgid "Your comment is awaiting moderation."
msgstr "Ihr Kommentar wartet auf die Moderation"
msgstr ""

#: ../functions.php:251
msgid "Pingback:"
msgstr "Pingback:"
msgstr ""

#: ../functions.php406, ../page-cover-private-block.php:2
msgid "Make your own books on Pressbooks"
msgstr "Erstellen Sie eigene Bücher auf Pressbooks"
msgstr ""

#: ../header.php:32
msgid "Page %s"
msgstr "Seite %s"
msgstr ""

#: ../header.php87, ../page-cover-top-block.php:63
msgid "Buy"
msgstr "Kaufen"
msgstr ""

#: ../index.php13, ../page-cover-third-block.php4, ../sidebar.php:16
msgid "Table of Contents"
msgstr "Inhaltsverzeichnis"
msgstr ""

#: ../page-about.php:5
msgid "About The Book"
msgstr "Über das Buch"
msgstr ""

#: ../page-about.php21, ../page-buy.php9, ../page-buy.php:17
msgid "It's coming!"
msgstr "Kommt bald!"
msgstr ""

#: ../page-authors.php:26
msgid "Authors"
msgstr "Autoren"
msgstr ""

#: ../page-buy.php:4
msgid "Buy the Book"
msgstr "Buch kaufen"
msgstr ""

#: ../page-buy.php:19
msgid "You can buy <a href=\"%1$s\">%2$s</a> by following any of the links below:"
msgstr ""
"Sie können das Buch <a href=\"%1$s\">%2$s</a> über einen der folgenden Links"
" kaufen:"

#: ../page-buy.php:23
msgid "Purchase on <a href=\"%1$s\">amazon.com</a>"
msgstr "Bei <a href=\"%1$s\">amazon.com</a> kaufen"
msgstr ""

#: ../page-buy.php:27
msgid "Purchase on <a href=\"%1$s\">oreilly.com</a>"
msgstr "Bei <a href=\"%1$s\">oreilly.com</a> kaufen"
msgstr ""

#: ../page-buy.php:31
msgid "Purchase on <a href=\"%1$s\">barnesandnoble.com</a>"
msgstr "Bei <a href=\"%1$s\">barnesandnoble.com</a> kaufen"
msgstr ""

#: ../page-buy.php:35
msgid "Purchase on <a href=\"%1$s\">kobobooks.com</a>"
msgstr "Bei <a href=\"%1$s\">kobobooks.com</a>kaufen"
msgstr ""

#: ../page-buy.php:39
msgid "Purchase on <a href=\"%1$s\">apple.com</a>"
msgstr "Bei <a href=\"%1$s\">apple.com</a> kaufen"
msgstr ""

#: ../page-buy.php:43
msgid "Elsewhere"
msgstr "Anderswo"
msgstr ""

#: ../page-buy.php:43
msgid "Purchase here:"
msgstr "Hier kaufen:"
msgstr ""

#: ../page-cover-fourth-block.php:21
msgid "Other books"
msgstr "Andere Bücher"
msgstr ""

#: ../page-cover-second-block.php:5
msgid "Book Description"
msgstr "Buchbeschreibung"
msgstr ""

#: ../page-cover-second-block.php15, ../page-cover-second-block.php16,
#: ../page-cover-second-block.php:17
msgid "Check out this great book on Pressbooks."
msgstr "Schauen Sie sich dieses tolle Buch auf Pressbooks an."
msgstr ""

#: ../page-cover-second-block.php:15
msgid "Tweet"
msgstr "Tweet"
msgstr ""

#: ../page-cover-second-block.php:16
msgid "Like"
msgstr "Like"
msgstr ""

#: ../page-cover-second-block.php:17
msgid "+1"
msgstr "+1"
msgstr ""

#: ../page-cover-top-block.php:8
msgid "login"
msgstr "einloggen"
msgstr ""

#: ../page-cover-top-block.php:10
msgid "logout"
msgstr "ausloggen"
msgstr ""

#: ../page-cover-top-block.php12, ../sidebar.php:10
msgid "Admin"
msgstr "Admin"
msgstr ""

#: ../page-cover-top-block.php:59
msgid "Read"
msgstr "Lesen"
msgstr ""

#: ../page-cover-top-block.php:82
msgid "Download in the following formats:"
msgstr "Downloads in den folgenden Formaten:"
msgstr ""

#: ../page.php12, ../single.php:5
msgid "Edit"
msgstr "Bearbeiten"
msgstr ""

#: ../page.php:14
msgid "Pages:"
msgstr "Seiten:"
msgstr ""

#: ../private.php:4
msgid "Access Denied"
msgstr "Zugriff verweigert"
msgstr ""

#: ../private.php:8
msgid ""
"This book is private, and accessible only to registered users. If you have "
"an account you can %s."
msgstr ""
"Diese ist ein privates Buch und nur für registrierte Benutzer zugänglich. "
"Wenn Sie ein Benutzerkonto haben können Sie %s."

#: ../private.php:12
msgid "login here"
msgstr "Hier einloggen"
msgstr ""

#: ../private.php:16
msgid "You can also set up your own Pressbooks book at %s."
msgstr "Sie können auch Ihre privaten Pressbooks Bücher einrichten unter %s."
msgstr ""

#: ../search.php:5
msgid "Search Results for: %s"
msgstr "Suchergebnisse für: %s"
msgstr ""

#: ../sidebar.php:13
msgid "Home"
msgstr "Home"
msgstr ""

#: ../sidebar.php:23
msgid "Close"
msgstr "Schliessen"
msgstr ""
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file removed languages/pressbooks-book-de_DE.mo
Binary file not shown.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 75fb223

Please sign in to comment.