Skip to content

Commit 91c68cb

Browse files
authored
Merge pull request #326 from speco29/translation-docs
translable files
2 parents f103ac9 + 0591ae6 commit 91c68cb

22 files changed

+4347
-44
lines changed

.github/workflows/build-gh-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Build the book
2727
run: |
2828
rm -rf DISCOVER/_tags/*
29-
jupyter-book build DISCOVER
29+
sphinx-build -b html DISCOVER/ DISCOVER/_build/html
3030
3131
- name: Push book HTML to gh-pages
3232
uses: peaceiris/actions-gh-pages@v3.9.0

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,8 @@ DISCOVER/_tags/
1111
venv/
1212

1313
# in case of using pyenv
14-
.python-version
14+
.python-version
15+
16+
# Ignore translation files
17+
*.pot
18+
*.mo

DISCOVER/_config.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

DISCOVER/conf.py

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
###############################################################################
2+
# Auto-generated by `jupyter-book config`
3+
# If you wish to continue using _config.yml, make edits to that file and
4+
# re-generate this one.
5+
###############################################################################
6+
author = 'Community'
7+
comments_config = {'hypothesis': False, 'utterances': False}
8+
copyright = '2023'
9+
10+
exclude_patterns = ['**.ipynb_checkpoints', '.DS_Store', 'Thumbs.db', '_build']
11+
extensions = ['sphinx_togglebutton', 'sphinx_copybutton', 'myst_nb', 'jupyter_book', 'sphinx_external_toc', 'sphinx.ext.intersphinx', 'sphinx_design', 'sphinx_book_theme', 'sphinx_tags', 'sphinx_jupyterbook_latex', 'sphinx_multitoc_numbering']
12+
external_toc_exclude_missing = False
13+
external_toc_path = '_toc.yml'
14+
html_baseurl = ''
15+
html_css_files = ['css/mainLogo.css']
16+
html_favicon = ''
17+
html_js_files = ['js/footer.js', 'js/logo-switcher.js']
18+
html_logo = '_static/images/logo-light.png'
19+
html_sourcelink_suffix = ''
20+
html_static_path = ['_static']
21+
html_theme = 'sphinx_book_theme'
22+
html_theme_options = {'search_bar_text': 'Search this book...', 'launch_buttons': {'notebook_interface': 'classic', 'binderhub_url': '', 'jupyterhub_url': '', 'thebe': False, 'colab_url': '', 'deepnote_url': ''}, 'path_to_docs': 'DISCOVER', 'repository_url': 'https://github.com/numfocus/DISCOVER-Cookbook/', 'repository_branch': 'main', 'extra_footer': '', 'home_page_in_toc': True, 'announcement': '', 'analytics': {'google_analytics_id': '', 'plausible_analytics_domain': '', 'plausible_analytics_url': 'https://plausible.io/js/script.js'}, 'use_repository_button': True, 'use_edit_page_button': False, 'use_issues_button': True}
23+
html_title = 'DISCOVER'
24+
latex_engine = 'pdflatex'
25+
myst_enable_extensions = ['colon_fence', 'dollarmath', 'linkify', 'substitution', 'tasklist']
26+
myst_url_schemes = ['mailto', 'http', 'https']
27+
nb_execution_allow_errors = False
28+
nb_execution_cache_path = ''
29+
nb_execution_excludepatterns = []
30+
nb_execution_in_temp = False
31+
nb_execution_mode = 'force'
32+
nb_execution_timeout = 30
33+
nb_output_stderr = 'show'
34+
numfig = True
35+
pygments_style = 'sphinx'
36+
suppress_warnings = ['etoc.toctree']
37+
tags_create_tags = True
38+
tags_extension = ['md']
39+
use_jupyterbook_latex = True
40+
use_multitoc_numbering = True

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ To contribute changes:
5151

5252
5. **Test Locally**: Build the book and view your changes:
5353
```sh
54-
jupyter-book build DISCOVER
54+
sphinx-build -b html DISCOVER/ DISCOVER/_build/html
5555
python -m http.server 8000 --directory DISCOVER/_build/html/
56+
5657
```
5758
Visit [`http://localhost:8000`](http://localhost:8000) in your browser to verify changes.
5859

@@ -86,7 +87,7 @@ conda activate DISCOVER-Cookbook
8687
```
8788
3. Finally, to build the Jupyter Book
8889
``` sh
89-
jupyter-book build DISCOVER
90+
sphinx-build -b html DISCOVER/ DISCOVER/_build/html
9091
```
9192

9293
### If Using pip
@@ -109,7 +110,7 @@ pip install -r requirements.txt
109110
```
110111
4. Finally, to build the Jupyter Book
111112
``` sh
112-
jupyter-book build DISCOVER
113+
sphinx-build -b html DISCOVER/ DISCOVER/_build/html
113114
```
114115
### View Locally
115116
After building, you can view the book in one of the following ways:

Translation.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Managing Translations
2+
3+
To support localization efforts, follow these steps to extract translatable strings and update translations.
4+
5+
## Generating `.pot` Files
6+
7+
To extract translatable text and generate `.pot` files, run:
8+
9+
```sh
10+
sphinx-build -b gettext DISCOVER/ DISCOVER/_build/gettext
11+
```
12+
This will store extracted strings in .pot files inside DISCOVER/_build/gettext.
13+
14+
## Updating .po Files
15+
To update existing translations, use the following command:
16+
17+
```sh
18+
sphinx-intl update -p DISCOVER/_build/gettext -l <language-code>
19+
```
20+
Replace <language-code> with your target language (e.g., en, fr, de).
21+
22+
## Applying Translations
23+
Once .po files are updated, compile them to .mo for use in the built documentation:
24+
25+
```sh
26+
sphinx-build -D language=<language-code> -b html DISCOVER/ DISCOVER/_build/html
27+
28+
```
29+
After compiling, rebuild the book to see the translations applied:
30+
31+
#### **Option 1: Using a Local Server**
32+
33+
Run the following command to start a local server:
34+
```sh
35+
python -m http.server 8000 --directory DISCOVER/_build/html/
36+
```
37+
Then, open [`http://localhost:8000`](http://localhost:8000) in your browser.
38+
39+
#### **Option 2: Opening the File Directly**
40+
41+
Alternatively, you can open the book directly by navigating to:
42+
```
43+
DISCOVER/_build/html/index.html
44+
```
45+
and opening it in your browser.
46+
47+
> Note: Contributors working on multilingual support should ensure .po file updates are included in commits.

locales/es/LC_MESSAGES/01_about.po

Lines changed: 207 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,207 @@
1+
# SOME DESCRIPTIVE TITLE.
2+
# Copyright (C) 2023
3+
# This file is distributed under the same license as the Project name not
4+
# set package.
5+
# FIRST AUTHOR <EMAIL@ADDRESS>, 2025.
6+
#
7+
#, fuzzy
8+
msgid ""
9+
msgstr ""
10+
"Project-Id-Version: Project name not set \n"
11+
"Report-Msgid-Bugs-To: \n"
12+
"POT-Creation-Date: 2025-06-12 16:54+0530\n"
13+
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
14+
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
15+
"Language: es\n"
16+
"Language-Team: es <LL@li.org>\n"
17+
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
18+
"MIME-Version: 1.0\n"
19+
"Content-Type: text/plain; charset=utf-8\n"
20+
"Content-Transfer-Encoding: 8bit\n"
21+
"Generated-By: Babel 2.17.0\n"
22+
23+
#: ../DISCOVER/01_about.md:2
24+
msgid "About"
25+
msgstr ""
26+
27+
#: ../DISCOVER/01_about.md:4
28+
msgid "Summary"
29+
msgstr ""
30+
31+
#: ../DISCOVER/01_about.md:5
32+
msgid ""
33+
"This cookbook is intended as a resource for organizers of conferences and"
34+
" events with a particular focus on the tech sector in the United States. "
35+
"It focuses specifically on plans, decisions, and actions organizers can "
36+
"take to produce and manage a more diverse and inclusive event. The "
37+
"cookbook does not provide any specific advice about budgeting, "
38+
"scheduling, A/V capabilities, how to structure tracks, etc."
39+
msgstr ""
40+
41+
#: ../DISCOVER/01_about.md:7
42+
msgid "About this Cookbook:"
43+
msgstr ""
44+
45+
#: ../DISCOVER/01_about.md:9
46+
msgid ""
47+
"This cookbook is intended as a resource for **organizers of conferences "
48+
"and events** — with a particular focus on the tech sector in the United "
49+
"States — to **support and encourage diversity and inclusion** at those "
50+
"events."
51+
msgstr ""
52+
53+
#: ../DISCOVER/01_about.md:11
54+
msgid ""
55+
"It focuses specifically on plans, decisions, and actions organizers can "
56+
"take to produce and manage a more diverse and inclusive event."
57+
msgstr ""
58+
59+
#: ../DISCOVER/01_about.md:13
60+
msgid ""
61+
"_Funding to produce this cookbook was made possible by a generous grant "
62+
"from the_ **Moore Foundation** _._"
63+
msgstr ""
64+
65+
#: ../DISCOVER/01_about.md:15
66+
msgid "**Further Reading:**"
67+
msgstr ""
68+
69+
#: ../DISCOVER/01_about.md:16
70+
msgid ""
71+
"[DISCOVER Cookbook Checklist](/13_inclusive-checklist.md) — A practical "
72+
"checklist for conference organizers to implement inclusive measures "
73+
"effectively."
74+
msgstr ""
75+
76+
#: ../DISCOVER/01_about.md:18
77+
msgid "What this Cookbook is not:"
78+
msgstr ""
79+
80+
#: ../DISCOVER/01_about.md:20
81+
msgid ""
82+
"This cookbook is **not** intended to provide **general instructions** on "
83+
"how to run a successful conference or event. We do not provide any "
84+
"specific advice about budgeting, scheduling, A/V capabilities, how to "
85+
"structure tracks, etc."
86+
msgstr ""
87+
88+
#: ../DISCOVER/01_about.md:22
89+
msgid ""
90+
"Some &quot;basic&quot; best practice is understood to be a prerequisite "
91+
"for many of our recommendations. For example, live-captioning support for"
92+
" the hearing-impaired is not possible without reliable internet and good "
93+
"A/V setup. In general, we have avoided explicitly calling out these "
94+
"implied dependencies in order to maintain focus and keep the cookbook to "
95+
"a more manageable length."
96+
msgstr ""
97+
98+
#: ../DISCOVER/01_about.md:24
99+
msgid ""
100+
"This cookbook also does not offer reasons or rationale for **why "
101+
"inclusion and diversity are important**. The cookbook presumes the "
102+
"organizing committee is already interested in improving diversity and "
103+
"inclusion at their conference or event. Hence the suggestions herein are "
104+
"focused on the &quot;how&quot; rather than the &quot;why&quot;."
105+
msgstr ""
106+
107+
#: ../DISCOVER/01_about.md:27
108+
msgid "Acknowledgements:"
109+
msgstr ""
110+
111+
#: ../DISCOVER/01_about.md:29
112+
msgid ""
113+
"We sincerely appreciate the efforts and input of the many individuals who"
114+
" contributed to the creation of this cookbook. We also thank the numerous"
115+
" individuals and organizations whose work we have drawn from in order to "
116+
"compile this cookbook. Resources we consulted are collected at the end of"
117+
" each section under the heading &quot;Further Reading&quot;."
118+
msgstr ""
119+
120+
#: ../DISCOVER/01_about.md:31
121+
msgid "In particular, we thank:"
122+
msgstr ""
123+
124+
#: ../DISCOVER/01_about.md:33
125+
msgid ""
126+
"The NumFOCUS DISC Committee members who compiled the initial skeleton of "
127+
"this cookbook: Jennifer Klay, Reshama Shaikh, and Gina Helfrich. And "
128+
"those who set up this page: Mwai Karimi, Bojan Božić and Leonie Mueck"
129+
msgstr ""
130+
131+
#: ../DISCOVER/01_about.md:35
132+
msgid ""
133+
"Participants in the 2017 DISC Unconference who expanded and elaborated "
134+
"upon the initial skeleton: Kasia Rachuta, Ashley Otero, Dave Clements, "
135+
"Sarah Supp, Raniere Silva, and Tania Allard."
136+
msgstr ""
137+
138+
#: ../DISCOVER/01_about.md:38
139+
msgid "Other Considerations"
140+
msgstr ""
141+
142+
#: ../DISCOVER/01_about.md:40
143+
msgid "**Further reading:**"
144+
msgstr ""
145+
146+
#: ../DISCOVER/01_about.md:42
147+
msgid ""
148+
"[Scent and smoking policy](https://adacamp.org/adacamp-"
149+
"toolkit/policies/#scent)"
150+
msgstr ""
151+
152+
#: ../DISCOVER/01_about.md:43
153+
msgid ""
154+
"[Conference booklet "
155+
"template](http://geekfeminism.wikia.com/wiki/Conference_booklet_template)"
156+
msgstr ""
157+
158+
#: ../DISCOVER/01_about.md:46
159+
msgid "Special Considerations Depending on Geographic Context"
160+
msgstr ""
161+
162+
#: ../DISCOVER/01_about.md:48
163+
msgid ""
164+
"Most of the material contained herein is written from the U.S. "
165+
"perspective (e.g. Americans with Disabilities Act (ADA) protections)."
166+
msgstr ""
167+
168+
#: ../DISCOVER/01_about.md:49
169+
msgid ""
170+
"Something to be aware of: some U.S. states may have discriminatory laws "
171+
"in place which could affect whether you should choose to host an event or"
172+
" conference there."
173+
msgstr ""
174+
175+
#: ../DISCOVER/01_about.md:50
176+
msgid ""
177+
"We welcome input on considerations for events and conferences in other "
178+
"countries."
179+
msgstr ""
180+
181+
#: ../DISCOVER/01_about.md:51
182+
msgid ""
183+
"Additional considerations may need to be made for very remote event "
184+
"locations with no public transit, e.g. for folks who are mobility "
185+
"impaired."
186+
msgstr ""
187+
188+
#: ../DISCOVER/01_about.md:55
189+
msgid "REQUEST FOR INPUT"
190+
msgstr ""
191+
192+
#: ../DISCOVER/01_about.md:57
193+
msgid ""
194+
"NumFOCUS invites the community to make suggestions for improvements to "
195+
"the DISCOVER Cookbook via pull request (PR). PRs will be evaluated by the"
196+
" NumFOCUS DISC Committee and/or its volunteers. PRs should be written so "
197+
"as to conform to the [NumFOCUS Contributor Code of "
198+
"Conduct](https://www.numfocus.org/about/code-of-conduct/)."
199+
msgstr ""
200+
201+
#: ../DISCOVER/01_about.md:59
202+
msgid ""
203+
"For a full statement of the NumFOCUS DISC Program mission and the "
204+
"NumFOCUS position on diversity and inclusion, please see [Diversity and "
205+
"Inclusion](https://www.numfocus.org/programs/diversity-and-inclusion/)."
206+
msgstr ""
207+

0 commit comments

Comments
 (0)