Description
The Translation helper is supposed to insert a little globe icon for some users, where you can contribute missing translations.
Learn about the translation system at:
- https://publiclab.org/wiki/translation
- https://github.com/publiclab/plots2/blob/main/doc/Translation_System.md
Unfortunately it is broken in a few places:
To see this yourself, you have to log in, join the translation team at https://publiclab.org/wiki/translation, and visit https://publiclab.org/profile/warren or another profile page.
What's wrong?
Note that to the right side it says Joined %{time_ago}
- something must be going wrong with this line of code:
plots2/app/views/users/profile.html.erb
Line 63 in 7de0bb0
Also, in the left column under "Remembering Tonawanda" it says:
{:one=>"1 note", :other=>"%{count} notes"} | {:one=>"1 question", :other=>"%{count} questions"} | {:one=>"1 comment", :other=>"%{count} comments"} by @warren
That leads to this line of code:
plots2/app/views/tag/_profileCard.html.erb
Lines 27 to 30 in 7de0bb0
There, I think we are passing back a hash instead of a number... somehow we're misusing the helper, which can be found here:
plots2/app/helpers/application_helper.rb
Lines 157 to 170 in a54bf46
This is a pretty complex pair of issues. I'm not sure how easy they will be to fix -- so we're hoping for someone with a little Ruby experience to help out here! Thanks!