From b2e431daed21283573d50eadf0c1915113c20fd5 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Sat, 27 Feb 2021 15:00:19 -0800 Subject: [PATCH] Adds test localization file --- .../{en => en-US}/LC_MESSAGES/django.po | 20 +- bookwyrm/locale/en-beep/LC_MESSAGES/django.po | 417 ++++++++++++++++++ bookwyrm/settings.py | 5 + bookwyrm/templates/layout.html | 1 + 4 files changed, 433 insertions(+), 10 deletions(-) rename bookwyrm/locale/{en => en-US}/LC_MESSAGES/django.po (94%) create mode 100644 bookwyrm/locale/en-beep/LC_MESSAGES/django.po diff --git a/bookwyrm/locale/en/LC_MESSAGES/django.po b/bookwyrm/locale/en-US/LC_MESSAGES/django.po similarity index 94% rename from bookwyrm/locale/en/LC_MESSAGES/django.po rename to bookwyrm/locale/en-US/LC_MESSAGES/django.po index 344c301f7..9ecbea8ca 100644 --- a/bookwyrm/locale/en/LC_MESSAGES/django.po +++ b/bookwyrm/locale/en-US/LC_MESSAGES/django.po @@ -1,5 +1,5 @@ # 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. # Mouse Reeve , 2021 # @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: 0.1.1\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" "Last-Translator: Mouse Reeve \n" "Language-Team: Mouse Reeve \n" @@ -98,7 +98,7 @@ msgstr "" #: bookwyrm/templates/book.html:215 bookwyrm/templates/search_results.html:84 #: bookwyrm/templates/user/user_layout.html:60 msgid "Lists" -msgstr "" +msgstr "lirsts" #: bookwyrm/templates/book.html:244 msgid "rated it" @@ -290,33 +290,33 @@ msgstr "" msgid "Sorry! This invite code is no longer valid." msgstr "" -#: bookwyrm/templates/layout.html:37 +#: bookwyrm/templates/layout.html:38 msgid "search" msgstr "" -#: bookwyrm/templates/layout.html:47 +#: bookwyrm/templates/layout.html:48 msgid "Main navigation menu" msgstr "" -#: bookwyrm/templates/layout.html:125 bookwyrm/templates/notifications.html:6 +#: bookwyrm/templates/layout.html:126 bookwyrm/templates/notifications.html:6 msgid "Notifications" 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 msgid "Username:" 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 msgid "Log in" msgstr "" -#: bookwyrm/templates/layout.html:182 +#: bookwyrm/templates/layout.html:183 msgid "About this server" msgstr "" -#: bookwyrm/templates/layout.html:186 +#: bookwyrm/templates/layout.html:187 msgid "Contact site admin" msgstr "" diff --git a/bookwyrm/locale/en-beep/LC_MESSAGES/django.po b/bookwyrm/locale/en-beep/LC_MESSAGES/django.po new file mode 100644 index 000000000..3a450b658 --- /dev/null +++ b/bookwyrm/locale/en-beep/LC_MESSAGES/django.po @@ -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 \n" +"Language-Team: Mouse Reeve \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" diff --git a/bookwyrm/settings.py b/bookwyrm/settings.py index 2a2bf4271..4e8708b9c 100644 --- a/bookwyrm/settings.py +++ b/bookwyrm/settings.py @@ -30,6 +30,11 @@ EMAIL_USE_TLS = env('EMAIL_USE_TLS', True) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) LOCALE_PATHS = [os.path.join(BASE_DIR, 'locale'),] +LANGUAGES = [ + ('en-US', _('English')), + ('en-beep', _('Beep')), +] + # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/2.0/howto/deployment/checklist/ diff --git a/bookwyrm/templates/layout.html b/bookwyrm/templates/layout.html index 5f75e1223..c658ac3ff 100644 --- a/bookwyrm/templates/layout.html +++ b/bookwyrm/templates/layout.html @@ -1,4 +1,5 @@ {% load bookwyrm_tags %} +{% load i18n %}