Skip to content

ENH: Create infrastructure for translations #61220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -141,3 +141,10 @@ doc/source/savefig/
# Pyodide/WASM related files #
##############################
/.pyodide-xbuildenv-*

# Web #
#######
web/pandas/content/en/pdeps
web/pandas/content/en/static
web/pandas/content/pt/pdeps
web/pandas/content/pt/static
6 changes: 5 additions & 1 deletion web/pandas/_templates/layout.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<!DOCTYPE html>
<html>
<html lang="{{ selected_language }}">
<head>
<script defer data-domain="pandas.pydata.org" src="https://views.scientific-python.org/js/script.js"></script>
<title>pandas - Python Data Analysis Library</title>
Expand All @@ -15,6 +15,8 @@
href="{{ base_url }}{{ stylesheet }}">
{% endfor %}
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/font/bootstrap-icons.min.css">
<meta id="languages" data-lang="{{ languages }}">
<script src="{{ base_url }}static/js/language_switcher.js"></script>
</head>
<body>
<header>
Expand Down Expand Up @@ -50,6 +52,8 @@
</li>
{% endif %}
{% endfor %}
<!-- Language switcher -->
<div id="language-switcher-container"></div>
</ul>
</div>
</div>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions web/pandas/config.yml → web/pandas/content/en/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
main:
base_url: "en"
templates_path: _templates
base_template: "layout.html"
production_url: "https://pandas.pydata.org/"
Expand Down Expand Up @@ -58,6 +59,7 @@ navbar:
target: community/benchmarks.html
- name: "Contribute"
target: contribute.html

blog:
num_posts: 50
posts_path: community/blog
Expand Down
File renamed without changes.
14 changes: 14 additions & 0 deletions web/pandas/content/en/donate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Donate to pandas

<div id="salsalabs-donate-container">
</div>
<script type="text/javascript"
src="https://default.salsalabs.org/api/widget/template/4ba4e328-1855-47c8-9a89-63e4757d2151/?tId=salsalabs-donate-container">
</script>

_pandas_ is a Sponsored Project of [NumFOCUS](https://numfocus.org/), a 501(c)(3) nonprofit charity in the United States.
NumFOCUS provides _pandas_ with fiscal, legal, and administrative support to help ensure the
health and sustainability of the project. Visit numfocus.org for more information.

Donations to _pandas_ are managed by NumFOCUS. For donors in the United States, your gift is tax-deductible
to the extent provided by law. As with any donation, you should consult with your tax adviser about your particular tax situation.
File renamed without changes.
File renamed without changes.
127 changes: 127 additions & 0 deletions web/pandas/content/pt/about/citing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
# Citing and logo

## Citing pandas

If you use _pandas_ for a scientific publication, we would appreciate citations to the published software and the
following paper:

- [pandas on Zenodo](https://zenodo.org/search?page=1&size=20&q=conceptrecid%3A%223509134%22&sort=-version&all_versions=True),
Please find us on Zenodo and replace with the citation for the version you are using. You can replace the full author
list from there with "The pandas development team" like in the example below.

@software{reback2020pandas,
author = {The pandas development team},
title = {pandas-dev/pandas: Pandas},
month = feb,
year = 2020,
publisher = {Zenodo},
version = {latest},
doi = {10.5281/zenodo.3509134},
url = {https://doi.org/10.5281/zenodo.3509134}
}

- [Data structures for statistical computing in python](https://pub.curvenote.com/01908378-3686-7168-a380-d82bbf21c799/public/mckinney-57fc0d4e8a08cd7f26a4b8bf468a71f4.pdf),
McKinney, Proceedings of the 9th Python in Science Conference, Volume 445, 2010.

@InProceedings{ mckinney-proc-scipy-2010,
author = { {W}es {M}c{K}inney },
title = { {D}ata {S}tructures for {S}tatistical {C}omputing in {P}ython },
booktitle = { {P}roceedings of the 9th {P}ython in {S}cience {C}onference },
pages = { 56 - 61 },
year = { 2010 },
editor = { {S}t\'efan van der {W}alt and {J}arrod {M}illman },
doi = { 10.25080/Majora-92bf1922-00a }
}

## Brand and logo

When using the project name _pandas_, please use it in lower case, even at the beginning of a sentence.

The official logos of _pandas_ are:

### Primary logo

<table class="table logo">
<tr>
<td>
<img alt="" src="{{ base_url }}static/img/pandas.svg"/>
</td>
<td style="background-color: #150458">
<img alt="" src="{{ base_url }}static/img/pandas_white.svg"/>
</td>
</tr>
</table>

### Secondary logo

<table class="table logo">
<tr>
<td>
<img alt="" src="{{ base_url }}static/img/pandas_secondary.svg"/>
</td>
<td style="background-color: #150458">
<img alt="" src="{{ base_url }}static/img/pandas_secondary_white.svg"/>
</td>
</tr>
</table>

### Logo mark

<table class="table logo">
<tr>
<td>
<img alt="" src="{{ base_url }}static/img/pandas_mark.svg"/>
</td>
<td style="background-color: #150458">
<img alt="" src="{{ base_url }}static/img/pandas_mark_white.svg"/>
</td>
</tr>
</table>

### Logo usage

The pandas logo is available in full color and white accent.
The full color logo should only appear against white backgrounds.
The white accent logo should go against contrasting color background.

When using the logo, please follow the next directives:

- Primary logo should never be seen under 1 inch in size for printing and 72px for web
- The secondary logo should never be seen under 0.75 inch in size for printing and 55px for web
- Leave enough margin around the logo (leave the height of the logo in the top, bottom and both sides)
- Do not distort the logo by changing its proportions
- Do not place text or other elements on top of the logo

### Colors

<table class="table">
<tr>
<td style="text-align: center;">
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<circle cx="50" cy="50" r="50" fill="#150458"/>
</svg>
<br/>
<b style="color: #150458;">Blue</b><br/>
RGB: R21 G4 B88<br/>
HEX: #150458
</td>
<td style="text-align: center;">
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<circle cx="50" cy="50" r="50" fill="#ffca00"/>
</svg>
<br/>
<b style="color: #150458;">Yellow</b><br/>
RGB: R255 G202 B0<br/>
HEX: #FFCA00
</td>
<td style="text-align: center;">
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100">
<circle cx="50" cy="50" r="50" fill="#e70488"/>
</svg>
<br/>
<b style="color: #150458;">Pink</b><br/>
RGB: R231 G4 B136<br/>
HEX: #E70488
</td>
</tr>
</table>
Loading
Loading