Adds test localization file

This commit is contained in:
Mouse Reeve 2021-02-27 15:00:19 -08:00
parent 8e5e3a84d6
commit b2e431daed
4 changed files with 433 additions and 10 deletions

View file

@ -1,5 +1,5 @@
# English language text for the bookwyrm UI # English language text for the bookwyrm UI
# Copyright (C) Mouse Reeve # Copyright (C) 2021 Mouse Reeve
# This file is distributed under the same license as the bookwyrm package. # This file is distributed under the same license as the bookwyrm package.
# Mouse Reeve <mousereeve@riseup.net>, 2021 # Mouse Reeve <mousereeve@riseup.net>, 2021
# #
@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: 0.1.1\n" "Project-Id-Version: 0.1.1\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-27 14:21-0800\n" "POT-Creation-Date: 2021-02-27 14:59-0800\n"
"PO-Revision-Date: 2021-02-27 13:50+PST\n" "PO-Revision-Date: 2021-02-27 13:50+PST\n"
"Last-Translator: Mouse Reeve <mousereeve@riseup.net>\n" "Last-Translator: Mouse Reeve <mousereeve@riseup.net>\n"
"Language-Team: Mouse Reeve <LL@li.org>\n" "Language-Team: Mouse Reeve <LL@li.org>\n"
@ -98,7 +98,7 @@ msgstr ""
#: bookwyrm/templates/book.html:215 bookwyrm/templates/search_results.html:84 #: bookwyrm/templates/book.html:215 bookwyrm/templates/search_results.html:84
#: bookwyrm/templates/user/user_layout.html:60 #: bookwyrm/templates/user/user_layout.html:60
msgid "Lists" msgid "Lists"
msgstr "" msgstr "lirsts"
#: bookwyrm/templates/book.html:244 #: bookwyrm/templates/book.html:244
msgid "rated it" msgid "rated it"
@ -290,33 +290,33 @@ msgstr ""
msgid "Sorry! This invite code is no longer valid." msgid "Sorry! This invite code is no longer valid."
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:37 #: bookwyrm/templates/layout.html:38
msgid "search" msgid "search"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:47 #: bookwyrm/templates/layout.html:48
msgid "Main navigation menu" msgid "Main navigation menu"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:125 bookwyrm/templates/notifications.html:6 #: bookwyrm/templates/layout.html:126 bookwyrm/templates/notifications.html:6
msgid "Notifications" msgid "Notifications"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:142 bookwyrm/templates/layout.html:146 #: bookwyrm/templates/layout.html:143 bookwyrm/templates/layout.html:147
#: bookwyrm/templates/login.html:14 #: bookwyrm/templates/login.html:14
msgid "Username:" msgid "Username:"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:151 bookwyrm/templates/login.html:7 #: bookwyrm/templates/layout.html:152 bookwyrm/templates/login.html:7
#: bookwyrm/templates/login.html:30 #: bookwyrm/templates/login.html:30
msgid "Log in" msgid "Log in"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:182 #: bookwyrm/templates/layout.html:183
msgid "About this server" msgid "About this server"
msgstr "" msgstr ""
#: bookwyrm/templates/layout.html:186 #: bookwyrm/templates/layout.html:187
msgid "Contact site admin" msgid "Contact site admin"
msgstr "" msgstr ""

View file

@ -0,0 +1,417 @@
# A test translation file that just uses the word "beep"
# Copyright (C) 2021 Mouse Reeve
# This file is distributed under the same license as the BookWyrm package.
# Mouse Reeve <mousereeve@riseup.net, 2021.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: 0.0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2021-02-27 14:23-0800\n"
"PO-Revision-Date: 2021-02-27 14:25+PST\n"
"Last-Translator: Mouse Reeve <mousereeve@riseup.net>\n"
"Language-Team: Mouse Reeve <LL@li.org>\n"
"Language: Beep\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
#: bookwyrm/templates/author.html:13 bookwyrm/templates/author.html:14
msgid "Edit Author"
msgstr "Edit Beep"
#: bookwyrm/templates/author.html:29
msgid "Wikipedia"
msgstr "Beep"
#: bookwyrm/templates/author.html:34
#, python-format
msgid "Books by %(name)s"
msgstr "Beep by %(name)s"
#: bookwyrm/templates/book.html:27 bookwyrm/templates/book.html:28
msgid "Edit Book"
msgstr "Edit Beep"
#: bookwyrm/templates/book.html:43
msgid "Add cover"
msgstr "Beep beep"
#: bookwyrm/templates/book.html:49
msgid "Add"
msgstr "Beep"
#: bookwyrm/templates/book.html:58
msgid "ISBN:"
msgstr "ISBN:"
#: bookwyrm/templates/book.html:65
msgid "OCLC Number:"
msgstr "OCLC Beep:"
#: bookwyrm/templates/book.html:72
msgid "ASIN:"
msgstr "ASIN:"
#: bookwyrm/templates/book.html:84
msgid "View on OpenLibrary"
msgstr "View beep OpenBeep"
#: bookwyrm/templates/book.html:102
msgid "Description:"
msgstr "Beep:"
#: bookwyrm/templates/book.html:106 bookwyrm/templates/edit_author.html:74
msgid "Save"
msgstr "Beep"
#: bookwyrm/templates/book.html:138
msgid "Your reading activity"
msgstr "Beep reading beep"
#: bookwyrm/templates/book.html:144
msgid "You don't have any reading activity for this book."
msgstr "Beep don't have any reading activity for this beep."
#: bookwyrm/templates/book.html:151
msgid "Create"
msgstr "Beep"
#: bookwyrm/templates/book.html:172
msgid "Tags"
msgstr "Beep"
#: bookwyrm/templates/book.html:176
msgid "Add tag"
msgstr "Beep beep"
#: bookwyrm/templates/book.html:193
msgid "Subjects"
msgstr "Beep"
#: bookwyrm/templates/book.html:204
msgid "Places"
msgstr "Beep"
#: bookwyrm/templates/book.html:215 bookwyrm/templates/search_results.html:84
#: bookwyrm/templates/user/user_layout.html:60
msgid "Lists"
msgstr "Beep"
#: bookwyrm/templates/book.html:244
msgid "rated it"
msgstr "rated beep"
#: bookwyrm/templates/discover/landing_layout.html:15
msgid "Decentralized"
msgstr "Beep"
#: bookwyrm/templates/discover/landing_layout.html:21
msgid "Friendly"
msgstr "Beep"
#: bookwyrm/templates/discover/landing_layout.html:27
msgid "Anti-Corporate"
msgstr "Anti-Beep"
#: bookwyrm/templates/discover/landing_layout.html:42
#, python-format
msgid "Join %(name)s"
msgstr "Beep %(name)s"
#: bookwyrm/templates/discover/landing_layout.html:47
#: bookwyrm/templates/login.html:45
msgid "This instance is closed"
msgstr "Beep instance is beep"
#: bookwyrm/templates/discover/landing_layout.html:53
msgid "Your Account"
msgstr "Your Beep"
#: bookwyrm/templates/edit_author.html:27
msgid "Metadata"
msgstr "Beep"
#: bookwyrm/templates/edit_author.html:28
msgid "Name:"
msgstr "Beep:"
#: bookwyrm/templates/edit_author.html:33
msgid "Bio:"
msgstr "Beep:"
#: bookwyrm/templates/edit_author.html:38
msgid "Wikipedia link:"
msgstr "Beep beep:"
#: bookwyrm/templates/edit_author.html:43
msgid "Birth date:"
msgstr "Beep beep:"
#: bookwyrm/templates/edit_author.html:48
msgid "Death date:"
msgstr "Beep beep:"
#: bookwyrm/templates/edit_author.html:54
msgid "Author Identifiers"
msgstr "Author Beep"
#: bookwyrm/templates/edit_author.html:55
msgid "Openlibrary key:"
msgstr "Beep beep:"
#: bookwyrm/templates/edit_author.html:60
msgid "Librarything key:"
msgstr "Beep beep:"
#: bookwyrm/templates/edit_author.html:65
msgid "Goodreads key:"
msgstr "Beep beep:"
#: bookwyrm/templates/edit_author.html:75
msgid "Cancel"
msgstr "Beep"
#: bookwyrm/templates/error.html:5
msgid "Server Error"
msgstr "Server Beep"
#: bookwyrm/templates/error.html:6
msgid "Something went wrong! Sorry about that."
msgstr "Something went wrong! Beep about beep."
#: bookwyrm/templates/goal.html:6
#, python-format
msgid "%(year)s Reading Progress"
msgstr "%(year)s Reading Beep"
#: bookwyrm/templates/goal.html:28
#, python-format
msgid ""
"Set a goal for how many books you'll finish reading in %(year)s, and track "
"your progress throughout the year."
msgstr ""
#: bookwyrm/templates/import.html:5
msgid "Import Books"
msgstr "Import Beep"
#: bookwyrm/templates/import.html:10
msgid "Data source"
msgstr "Beep beep"
#: bookwyrm/templates/import.html:28
msgid "Include reviews"
msgstr "Beep beep"
#: bookwyrm/templates/import.html:33
msgid "Privacy setting for imported reviews:"
msgstr "Beep setting for imported beep:"
#: bookwyrm/templates/import.html:37
msgid "Import"
msgstr "Beep"
#: bookwyrm/templates/import.html:42
msgid "Recent Imports"
msgstr "Recent Beep"
#: bookwyrm/templates/import.html:44
msgid "No recent imports"
msgstr "Beep recent beep"
#: bookwyrm/templates/import_status.html:6
msgid "Import Status"
msgstr "Import Beep"
#: bookwyrm/templates/import_status.html:9
msgid "Import started: "
msgstr "Beep beep: "
#: bookwyrm/templates/import_status.html:13
msgid "Import completed: "
msgstr "Beep beep: "
#: bookwyrm/templates/import_status.html:16
msgid "TASK FAILED"
msgstr "TASK FAILED"
#: bookwyrm/templates/import_status.html:22
msgid "Import still in progress."
msgstr "Beep still in beep."
#: bookwyrm/templates/import_status.html:24
msgid "(Hit reload to update!)"
msgstr "(Beep reload to beep!)"
#: bookwyrm/templates/import_status.html:31
msgid "Failed to load"
msgstr "Beep to beep"
#: bookwyrm/templates/import_status.html:55
msgid "Select all"
msgstr "Beep beep"
#: bookwyrm/templates/import_status.html:58
msgid "Retry items"
msgstr "Beep beep"
#: bookwyrm/templates/import_status.html:80
msgid "Successfully imported"
msgstr "Beep beep"
#: bookwyrm/templates/import_status.html:84
msgid "Book"
msgstr "Beep"
#: bookwyrm/templates/import_status.html:87
msgid "Title"
msgstr "Beep"
#: bookwyrm/templates/import_status.html:90
msgid "Author"
msgstr "Beep"
#: bookwyrm/templates/import_status.html:113
msgid "Imported"
msgstr "Beep"
#: bookwyrm/templates/invite.html:8 bookwyrm/templates/login.html:40
msgid "Create an Account"
msgstr "Create beep Beep"
#: bookwyrm/templates/invite.html:17
msgid "Permission Denied"
msgstr "Permission Beep"
#: bookwyrm/templates/invite.html:18
msgid "Sorry! This invite code is no longer valid."
msgstr "Sorry! Beep invite code is no longer beep."
#: bookwyrm/templates/layout.html:37
msgid "search"
msgstr "beep"
#: bookwyrm/templates/layout.html:47
msgid "Main navigation menu"
msgstr "Beep navigation beep"
#: bookwyrm/templates/layout.html:125 bookwyrm/templates/notifications.html:6
msgid "Notifications"
msgstr "Beep"
#: bookwyrm/templates/layout.html:142 bookwyrm/templates/layout.html:146
#: bookwyrm/templates/login.html:14
msgid "Username:"
msgstr "Beep:"
#: bookwyrm/templates/layout.html:151 bookwyrm/templates/login.html:7
#: bookwyrm/templates/login.html:30
msgid "Log in"
msgstr "Beep beep"
#: bookwyrm/templates/layout.html:182
msgid "About this server"
msgstr "Beep this beep"
#: bookwyrm/templates/layout.html:186
msgid "Contact site admin"
msgstr "Beep site beep"
#: bookwyrm/templates/login.html:20
msgid "Password:"
msgstr "Beep:"
#: bookwyrm/templates/login.html:33
msgid "Forgot your password?"
msgstr "Beep your beep?"
#: bookwyrm/templates/login.html:46
msgid "Contact an administrator to get an invite"
msgstr "Beep an administrator to get an beep"
#: bookwyrm/templates/login.html:56
msgid "More about this site"
msgstr "Beep about this beep"
#: bookwyrm/templates/notifications.html:10
msgid "Delete notifications"
msgstr "Beep beep"
#: bookwyrm/templates/notifications.html:101
msgid "You're all caught up!"
msgstr "Beep're all caught beep!"
#: bookwyrm/templates/password_reset_request.html:7
msgid "Reset Password"
msgstr "Reset Beep"
#: bookwyrm/templates/password_reset_request.html:9
msgid "A link to reset your password will be sent to your email address"
msgstr "A link to reset your password will be sent to your email beep"
#: bookwyrm/templates/password_reset_request.html:13
msgid "Email address:"
msgstr "Beep beep:"
#: bookwyrm/templates/password_reset_request.html:20
msgid "Reset password"
msgstr "Beep beep"
#: bookwyrm/templates/search_results.html:10
msgid "Matching Books"
msgstr "Matching Beep"
#: bookwyrm/templates/search_results.html:13
#, python-format
msgid "No books found for \"%(query)s\""
msgstr "Beep books found for \"%(query)s\""
#: bookwyrm/templates/search_results.html:29
msgid "Didn't find what you were looking for?"
msgstr "Beep't find what you were looking beep?"
#: bookwyrm/templates/search_results.html:52
msgid "Import book"
msgstr "Beep beep"
#: bookwyrm/templates/search_results.html:69
msgid "Matching Users"
msgstr "Matching Beep"
#: bookwyrm/templates/search_results.html:71
#, python-format
msgid "No users found for \"%(query)s\""
msgstr "Beep users found for \"%(query)s\""
#: bookwyrm/templates/search_results.html:86
#, python-format
msgid "No lists found for \"%(query)s\""
msgstr "Beep lists found for \"%(query)s\""
#: bookwyrm/templates/tag.html:6
#, python-format
msgid "Books tagged \"%(tag.name)s\""
msgstr "Beep tagged \"%(tag.name)s\""
#: bookwyrm/templates/user/user_layout.html:30
msgid "Follow Requests"
msgstr "Follow Beep"
#: bookwyrm/templates/user/user_layout.html:48
msgid "Activity"
msgstr "Beep"
#: bookwyrm/templates/user/user_layout.html:54
msgid "Reading Goal"
msgstr "Reading Beep"
#: bookwyrm/templates/user/user_layout.html:66
msgid "Shelves"
msgstr "Beep"
#: bookwyrm/templates/user/user_preview.html:13
#, python-format
msgid "Joined %(date)s"
msgstr "Beep %(date)s"

View file

@ -30,6 +30,11 @@ EMAIL_USE_TLS = env('EMAIL_USE_TLS', True)
BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
LOCALE_PATHS = [os.path.join(BASE_DIR, 'locale'),] LOCALE_PATHS = [os.path.join(BASE_DIR, 'locale'),]
LANGUAGES = [
('en-US', _('English')),
('en-beep', _('Beep')),
]
# Quick-start development settings - unsuitable for production # Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/ # See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/

View file

@ -1,4 +1,5 @@
{% load bookwyrm_tags %} {% load bookwyrm_tags %}
{% load i18n %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>