Skip to content
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

FR - Language-specific templates part I #564

Merged

Conversation

borisschapira
Copy link
Contributor

@borisschapira borisschapira commented Nov 28, 2019

Translation for the following pages in the language specific templates directory :

  • base.html
  • base_chapter.html
  • chapter.html

done according to #539.

To manage the pluralization of the word "comments", I've added some JS to show or hide the right translation strings.

Copy link
Member

@tunetheweb tunetheweb left a comment

Choose a reason for hiding this comment

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

Interesting way of approaching the comment/comments thing! But it works and can't think of a better way.

A few additions:

  • Can you make the same change to en/2019/base.html? I know you have the fallback but suspect English will be the base that people will copy from for next language so let's add it to that to give them something to work from.
  • Can you add French to language.py and close FR - Language Support #563 for now?
  • Can you add yourself to config/2019.json? To the developers and translators teams.

@borisschapira
Copy link
Contributor Author

borisschapira commented Nov 28, 2019

Ok done.

(assuming I join the translators team)
- Does not conform with the CSP
- Is useless with the CSS styling
Show the right word according to the number of comment.
Copy link
Member

@tunetheweb tunetheweb left a comment

Choose a reason for hiding this comment

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

Almost there thanks! But spotted a few more alt attributes.

Then will let a Fench speaker review the actual content.

@borisschapira borisschapira force-pushed the language-specific-templates-fr branch from d581090 to 20c3abd Compare November 28, 2019 14:07
@borisschapira
Copy link
Contributor Author

Thanks a lot Barry for pointing out what I had missed.

@tunetheweb
Copy link
Member

@AymenLoukil / @SilentJMA can you review? Then we're good to merge this.

Copy link
Member

@tunetheweb tunetheweb left a comment

Choose a reason for hiding this comment

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

Some suggestions from latest commit. Thanks for your work on this!!

@borisschapira
Copy link
Contributor Author

Some suggestions from latest commit. Thanks for your work on this!!

My contribution is nothing compared to your ability to pinpoint what I have missed. Thank you, Barry.

@tunetheweb
Copy link
Member

My contribution is nothing compared to your ability to pinpoint what I have missed. Thank you, Barry.

Oh you better believe I'm real fun to know in real life 😀

Copy link
Contributor

@SilentJMA SilentJMA left a comment

Choose a reason for hiding this comment

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

Good

Copy link
Contributor

@SilentJMA SilentJMA left a comment

Choose a reason for hiding this comment

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

i checked them its good approch in the comment section 'nice move'

With fallback to English team names if the dictionary is not populated.
related to HTTPArchive#569
instead of duplicating HTML markup.
Thanks @mikegeyser
@tunetheweb tunetheweb added development Building the Almanac tech stack translation world wide web labels Nov 29, 2019
@tunetheweb tunetheweb added this to the Après Ski milestone Nov 29, 2019
Copy link
Contributor

@SilentJMA SilentJMA left a comment

Choose a reason for hiding this comment

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

good

@tunetheweb tunetheweb merged commit ec783e8 into HTTPArchive:master Nov 29, 2019
@borisschapira borisschapira deleted the language-specific-templates-fr branch December 5, 2019 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development Building the Almanac tech stack translation world wide web
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants