Skip to content

SPANISH TRANSLATION RAAAAAAAAAAAAHHHHHHHH#392

Open
TheParadoxBox wants to merge 38 commits intoComputerScienceHouse:developfrom
TheParadoxBox:translation-es
Open

SPANISH TRANSLATION RAAAAAAAAAAAAHHHHHHHH#392
TheParadoxBox wants to merge 38 commits intoComputerScienceHouse:developfrom
TheParadoxBox:translation-es

Conversation

@TheParadoxBox
Copy link
Copy Markdown

What

Adds a (mostly) fully functional Spanish version of the site, available through the added language switcher or by visiting https://csh.rit.edu/es.

Tour and blog posts do not have Spanish translations due to JS usage and workload, respectively.

Why

This improves accessibility for people who speak Spanish as their first language and English as their second, or prospective members whose parents only speak Spanish. Need I say more?

Test Plan

Viewed every page in both English and Spanish to check for errors

Env Vars

No

Checklist

  • Tested all changes locally

I need to remove the lang frontmatter because it's redundant lol so this needs to be committed now
Still have to figure out how to get title translations to work
This is what happens when you take a three month hiatus from a project
Got disappeared in the merge, oops
@TheParadoxBox TheParadoxBox requested review from a team as code owners March 23, 2026 07:56
@BigSpaceships
Copy link
Copy Markdown
Contributor

holy commits omg

Copy link
Copy Markdown
Contributor

@BigSpaceships BigSpaceships left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Amazing work omg, a few things but if I said a dumb thing disregard but also copy-paste might be your friend here lol

Comment on lines +4 to +5
{% assign strings = site.data[site.active_lang][page.strings] %}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay lowkey I've never used a static site generator like this before so this is more me asking question than anything, but is it a bad idea to do something like this on all the other templates? site.data[site.active_lang] is really repetitive and I'm guessing could get annoying

Comment on lines +4 to 7
strings: "eboard"
---
{% assign strings = site.data[site.active_lang][page.strings] %}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there's probably a better name for strings: "eboard" since we have multiple strings. If this is me being dumb and it's used in places it can't be changed ignore me but like I think having it be called page_name or something would make more sense and it seems like it's only used two lines down to assign the other strings

Comment on lines +12 to +15
<h2 class="header">{{ strings.email }}</h2>
<p class="long-form">{{ strings.email-evals }}</p>
<p class="long-form">{{ strings.email-chair }}</p>
<p class="long-form">{{ strings.email-webmaster }}</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is hard because idk if there's a not clunky way to do it, but having the <a> tags inside the strings also feels weird and it would be cool if there was multiple strings and then the email link happened here instead of in the lang files

Google search results) and in your feed.xml site description.
baseurl: "" # the subpath of your site, e.g. /blog
url: "https://pubsite.a.csh.rit.edu" # the base hostname & protocol for your site, e.g. http://example.com
url: "localhost:4000" # the base hostname & protocol for your site, e.g. http://example.com
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is this used? I'm guessing it's when you run the Jekyll command to run locally right?

Comment on lines +9 to +12
RUN chown -R jekyll:jekyll /site
USER jekyll
RUN bundle config set --local path 'vendor/bundle'
RUN bundle install
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can installing the bundle be ran before we copy the contents? that way we can cache docker stages better

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(I say this as I'm patiently waiting for those dependencies to install)

@@ -39,16 +36,16 @@ <h2 class="header">Current Students</h2>
<div class="col-12">
<h2 class="header">Member Expectations</h2>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one isn't translated

Comment on lines 33 to 39
<div class="row spaced" style="width: 100%;">
<div class="col-12">
<h2 class="header" id="tour-title">Dorm Room</h2>
<h2 class="header" id="tour-title">{{ strings.dorm }}</h2>
<p class="long-form" id="tour-description">
Though the walls are the same as regular dorm rooms, our rooms usually look rather different than the standard RIT room layout.
</p>
</div>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lowkey I have no clue, but the javascript uses variables under site so we might be able to translate this? if no disregard but we could maybe figure out a better way to implement this so we can translate

'photos': ['{{site.env.CSHPUBSITE_ASSETS_URL}}/tour/dorm/1'],

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update, I read and I see you exclude the assets directory from translation but there might be a way to make it so we don't need to do that. If you need help figuring it out lmk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants