Skip to content

Commit

Permalink
translated to French in files (automated)
Browse files Browse the repository at this point in the history
  • Loading branch information
kxrom committed Apr 20, 2019
1 parent 5245003 commit 9b8e15a
Show file tree
Hide file tree
Showing 21 changed files with 56 additions and 56 deletions.
6 changes: 3 additions & 3 deletions models/measure.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = (event, state) => {
loading: { ...state.loading, page: !state.browser, measures: true },
location: {
...state.location,
title: 'Legislation',
title: 'Législation',
ogImage: query.legislature && query.legislature.length === 2 && `${ASSETS_URL}/legislature-images/${query.legislature}.png`
},
}, fetchMeasures({ hide_direct_votes: state.cookies.hide_direct_votes, ...state.location.query }, state.user)]
Expand Down Expand Up @@ -54,10 +54,10 @@ module.exports = (event, state) => {
loading: { ...state.loading, page: true },
location: {
...state.location,
title: 'Proposed Legislation',
title: 'Vos propositions',
},
}, combineEffects([
changePageTitle('Proposed Legislation'),
changePageTitle('Vos propositions'),
fetchUserMeasures(state.user)
])]
default:
Expand Down
8 changes: 4 additions & 4 deletions models/session.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,31 @@ module.exports = (event, state) => {
if (state.location.query.ph) {
return [state, updatePhoneNumber(atob(state.location.query.ph), state.user)]
}
return [{ ...state, location: { ...state.location, title: 'Join' } }, combineEffects([
return [{ ...state, location: { ...state.location, title: 'Rejoindre' } }, combineEffects([
fetchMetrics,
state.cookies.proxying_user_id && fetchProxyingProfile({ id: state.cookies.proxying_user_id }),
])]
case '/sign_in':
if (state.user) return [state, redirect('/')]
return [{
...state,
location: { ...state.location, title: 'Sign in' }
location: { ...state.location, title: 'Se connecter' }
}, state.cookies.proxying_user_id && fetchProxyingProfile({ id: state.cookies.proxying_user_id })]
case '/sign_in/verify':
if (state.user) return [state, redirect('/')]
if (state.location.query.totp) {
return [{
...state,
loading: { ...state.loading, page: true },
location: { ...state.location, title: 'Sign in' },
location: { ...state.location, title: 'Se connecter' },
}, verifyOTP({
totp: state.location.query.totp,
device_id: state.cookies.device_id,
device_desc: state.location.userAgent || 'Unknown',
redirect_to: state.cookies.redirect_to || '/get_started',
})]
}
return [{ ...state, location: { ...state.location, title: 'Sign in' } }, refreshPageWhenAuthed]
return [{ ...state, location: { ...state.location, title: 'Se connecter' } }, refreshPageWhenAuthed]
case '/sign_out':
return [{ ...state, loading: { page: true }, user: null }, signOut(state.user)]
default:
Expand Down
2 changes: 1 addition & 1 deletion models/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ module.exports = (event, state) => {
return [{
...state,
loading: { page: true },
location: { ...state.location, title: 'Settings' },
location: { ...state.location, title: 'Paramètres' },
}, fetchSettings(state.user)]
case '/settings/unsubscribe':
return [{
Expand Down
2 changes: 1 addition & 1 deletion views/contact-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const contactWidgetButton = (state, dispatch) => {
<span class="icon is-small">
<i class="fa fa-comment"></i>
</span>
<span>Help</span>
<span>Aide</span>
</a>
</p>
`
Expand Down
2 changes: 1 addition & 1 deletion views/get-started-basics-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = ({ error, loading, location, user }, dispatch) => {
</div>
<div class="field">
<div class="control">
<button class="${`button is-primary ${loading.user ? 'is-loading' : ''}`}" disabled=${!!loading.user} type="submit">Next</button>
<button class="${`button is-primary ${loading.user ? 'is-loading' : ''}`}" disabled=${!!loading.user} type="submit">Suivant</button>
</div>
</div>
<p class="help is-small has-text-grey">All of your information is kept strictly private.</p>
Expand Down
2 changes: 1 addition & 1 deletion views/get-started-profile-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ module.exports = (state, dispatch) => {
<a class="button has-text-grey" href="/get_started?skip=t">Skip</a>
</div>
<div class="control">
<button class="button is-primary" type="submit">Next</button>
<button class="button is-primary" type="submit">Suivant</button>
</div>
</div>
<p class="has-text-right has-text-grey">
Expand Down
2 changes: 1 addition & 1 deletion views/get-started-verification-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ module.exports = ({ error, loading, forms: { verification: formData = {} }, user
${!user ? signupMsg() : ''}
${user && user.verified ? alreadyVerifiedMsg() : ''}
<div class="content">
<h2 class="subtitle">Verify your identity</h2>
<h2 class="subtitle">Vérifiez votre identité</h2>
<p>Verify your phone number to make sure your reps know you are their constituent.</p>
<p>This also lets you create your own profile page, so you can start representing other people and increase your voting power.</p>
</div>
Expand Down
10 changes: 5 additions & 5 deletions views/home-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,19 @@ module.exports = (state, dispatch) => {
<section onconnected="${activateScrollReveal}" class="hero is-link is-bold is-fullheight subtract-toolbar">
<div class="hero-body">
<div class="container reveal">
<h2 class="title is-2 is-size-1-desktop is-size-3-mobile delayed">The Most Powerful Way to Advocate for Your Community</h2>
<h2 class="title is-2 is-size-1-desktop is-size-3-mobile delayed">L'assemblée la plus puissante pour défendre l'intérêt général et la séparation des pouvoirs</h2>
<br />
<br />
<h3 class="subtitle is-3 is-size-4-mobile delayed1">Built for the legislative process</h3>
<h4 class="subtitle is-3 is-size-4-mobile delayed1">Easily invite your community to support your position</h4>
<h4 class="subtitle is-3 is-size-4-mobile delayed1">Address verification so reps hear their constituents</h4>
<h3 class="subtitle is-3 is-size-4-mobile delayed1">Une assemblée plus intelligente et moins corruptible</h3>
<h4 class="subtitle is-3 is-size-4-mobile delayed1">Conçue pour le processus législatif</h4>
<h4 class="subtitle is-3 is-size-4-mobile delayed1">Invitez facilement votre communauté à soutenir votre position</h4>
<br />
<br />
<div class="delayed2 has-text-centered-mobile">
${!state.user ? html`
<a class="button is-link is-inverted is-medium" href="/join">
<span class="icon"><i class="fa fa-star"></i></span>
<span><strong>Create your free account</strong></span>
<span><strong>Créez votre compte</strong></span>
</a>
` : ''}
</div>
Expand Down
2 changes: 1 addition & 1 deletion views/join-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ module.exports = ({ cookies, error, loading, location, profiles = {}, usersCount
<button class="${`button is-primary ${loading.signIn ? 'is-loading' : ''}`}" disabled=${loading.signIn} type="submit"><strong>Create Account</strong></button>
</div>
<div class="is-hidden-desktop">
<button class="${`button is-primary ${loading.signIn ? 'is-loading' : ''}`}" disabled=${loading.signIn} type="submit"><strong>Join</strong></button>
<button class="${`button is-primary ${loading.signIn ? 'is-loading' : ''}`}" disabled=${loading.signIn} type="submit"><strong>Rejoindre</strong></button>
</div>
</div>
</div>
Expand Down
14 changes: 7 additions & 7 deletions views/legislation-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const addAddressNotification = (geoip = {}, user) => {
return html`
<p class="help">
We guessed your location is <strong>${geoip.city}, ${geoip.regionName}.</strong><br />
But this is only an approximation. <strong><a href="${user ? '/get_started/basics' : '/join'}">${user ? 'Go here' : 'Join'} to set your address</a></strong>.
But this is only an approximation. <strong><a href="${user ? '/get_started/basics' : '/join'}">${user ? 'Go here' : 'Rejoindre'} to set your address</a></strong>.
</p>
`
}
Expand All @@ -153,18 +153,18 @@ const makeFilterQuery = (order, query) => {
const filterTabs = ({ geoip, legislatures, location, cookies, user }, dispatch) => {
const { query } = location
const orderDescriptions = {
upcoming: "Bills upcoming for a vote in the legislature.",
new: 'Bills recently introduced.',
proposed: `Bills introduced on ${APP_NAME}`,
upcoming: "Les projets de loi seront soumis au vote de l'Assemblée législative.",
new: 'Les projets de loi récemment introduits.',
proposed: `Projets introduits sur l'assemblée liquide.`,
}

return html`
<div>
<div class="tabs">
<ul>
<li class="${!query.order || query.order === 'upcoming' ? 'is-active' : ''}"><a href="${`/legislation?${makeFilterQuery('upcoming', query)}`}">Upcoming for vote</a></li>
<li class="${query.order === 'new' ? 'is-active' : ''}"><a href="${`/legislation?${makeFilterQuery('new', query)}`}">Recently introduced</a></li>
<li class="${query.order === 'proposed' ? 'is-active' : ''}"><a href="${`/legislation?${makeFilterQuery('proposed', query)}`}">Introduced on ${APP_NAME}</a></li>
<li class="${!query.order || query.order === 'upcoming' ? 'is-active' : ''}"><a href="${`/legislation?${makeFilterQuery('upcoming', query)}`}">Prochains scrutins</a></li>
<li class="${query.order === 'new' ? 'is-active' : ''}"><a href="${`/legislation?${makeFilterQuery('new', query)}`}">Nouveaux projets de loi</a></li>
<li class="${query.order === 'proposed' ? 'is-active' : ''}"><a href="${`/legislation?${makeFilterQuery('proposed', query)}`}">Projets de l'assemblée liquide</a></li>
</ul>
</div>
<div class="columns">
Expand Down
4 changes: 2 additions & 2 deletions views/legislator-profile-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ module.exports = (state, dispatch) => {
<div class="container is-widescreen">
${isMyRep && !user ? html`
<div class="notification is-info has-text-centered">
This looks like one of your reps. <a href="/join"><strong>Join ${APP_NAME}</strong></a> to begin holding them accountable.
This looks like one of your reps. <a href="/join"><strong>Rejoignez ${APP_NAME}</strong></a> to begin holding them accountable.
</div>
` : []}
${isMyRep && user && !user.verified ? html`
<div class="notification is-dark has-text-centered">
This is one of your reps. <a href="/get_started"><strong>Verify your identity</strong></a> to begin holding them accountable.
This is one of your reps. <a href="/get_started"><strong>Vérifiez votre identité</strong></a> to begin holding them accountable.
</div>
` : []}
${proxied_name ? html`
Expand Down
2 changes: 1 addition & 1 deletion views/measure-sidebar.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module.exports = (state, dispatch) => {
<div class="panel-heading has-text-centered">
<h3 class="title has-text-weight-semibold is-size-5">
<a href="${measureUrl}" class="has-text-dark">
${l.introduced_at ? `${l.short_id.replace(/^[^-]+-(\D+)(\d+)/, '$1 $2').toUpperCase()}` : (l.short_id === 'should-nancy-pelosi-be-speaker' ? 'Proposed Nomination' : 'Proposed Legislation')}
${l.introduced_at ? `${l.short_id.replace(/^[^-]+-(\D+)(\d+)/, '$1 $2').toUpperCase()}` : (l.short_id === 'should-nancy-pelosi-be-speaker' ? 'Proposed Nomination' : 'Vos propositions')}
</a>
</h3>
<h4 class="subtitle is-size-7 has-text-grey is-uppercase has-text-weight-semibold">
Expand Down
2 changes: 1 addition & 1 deletion views/navbar-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module.exports = ({ loading, query, results, showResults }, dispatch) => {
onfocus=${(event) => dispatch({ type: 'inputFocused', event })}
onblur=${(event) => dispatch({ type: 'blurred', event })}
onkeyup=${(event) => dispatch({ type: 'inputChanged', event })}
class="input" placeholder="Search Bills or People" />
class="input" placeholder="Recherche de projets de loi ou de personnes" />
<span class="icon is-left">
<i class="fa fa-search"></i>
</span>
Expand Down
22 changes: 11 additions & 11 deletions views/navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ const style = `
const navbarAnon = ({ location }) => {
const { path } = location
return html`
<a class=${`navbar-item ${path.slice(0, 12) === '/legislation' ? 'is-active' : ''}`} href="/legislation">Legislation</a>
<a class=${`navbar-item has-text-link has-text-weight-bold ${path === '/join' ? 'is-active' : ''}`} href="/join">Join</a>
<a class=${`navbar-item ${path.slice(0, 8) === '/sign_in' ? 'is-active' : ''}`} href="/sign_in">Sign in</a>
<a class=${`navbar-item ${path.slice(0, 12) === '/legislation' ? 'is-active' : ''}`} href="/legislation">Législation</a>
<a class=${`navbar-item has-text-link has-text-weight-bold ${path === '/join' ? 'is-active' : ''}`} href="/join">Rejoindre</a>
<a class=${`navbar-item ${path.slice(0, 8) === '/sign_in' ? 'is-active' : ''}`} href="/sign_in">Se connecter</a>
`
}

Expand All @@ -88,23 +88,23 @@ const navbarAuthed = ({ location, user }) => {
const { path } = location

return html`
<a class=${`navbar-item ${path.slice(0, 12) === '/legislation' ? 'is-active' : ''}`} href="/legislation">Legislation</a>
<a class=${`navbar-item ${path.slice(0, 8) === '/proxies' ? 'is-active' : ''}`} href="/proxies">Your Proxies</a>
<a class=${`navbar-item ${path.slice(0, 12) === '/legislation' ? 'is-active' : ''}`} href="/legislation">Législation</a>
<a class=${`navbar-item ${path.slice(0, 8) === '/proxies' ? 'is-active' : ''}`} href="/proxies">Vos procurations</a>
<div class="navbar-item has-dropdown is-hoverable">
<a class="navbar-link" href="${username_url}">${user.first_name || 'You'}</a>
<a class="navbar-link" href="${username_url}">${user.first_name || 'Vous'}</a>
<div class="navbar-dropdown is-right">
${
!user.verified
? html`<a class="${`navbar-item ${path.slice(0, 12) === '/get_started' ? 'is-active' : ''}`}" href="/get_started">Verify your identity</a>`
? html`<a class="${`navbar-item ${path.slice(0, 12) === '/get_started' ? 'is-active' : ''}`}" href="/get_started">Vérifiez votre identité</a>`
: ''
}
<a class=${`navbar-item ${path === username_url ? 'is-active' : ''}`} href=${username_url}>Profile</a>
<a class=${`navbar-item ${path === username_url ? 'is-active' : ''}`} href=${username_url}>Profil</a>
${user.username
? html`<a class=${`navbar-item ${path === '/edit_profile' ? 'is-active' : ''}`} href="/edit_profile">Edit Profile</a>`
: ''}
<a class=${`navbar-item ${path === `/legislation/yours` ? 'is-active' : ''}`} href="/legislation/yours">Proposed Legislation</a>
<a class=${`navbar-item ${path === '/settings' ? 'is-active' : ''}`} href="/settings">Settings</a>
<a class=${`navbar-item ${path === '/sign_out' ? 'is-active' : ''}`} href=${`${WWW_URL}/sign_out`}>Sign out</a>
<a class=${`navbar-item ${path === `/legislation/yours` ? 'is-active' : ''}`} href="/legislation/yours">Vos propositions</a>
<a class=${`navbar-item ${path === '/settings' ? 'is-active' : ''}`} href="/settings">Paramètres</a>
<a class=${`navbar-item ${path === '/sign_out' ? 'is-active' : ''}`} href=${`${WWW_URL}/sign_out`}>Se déconnecter</a>
</div>
</div>
`
Expand Down
2 changes: 1 addition & 1 deletion views/propose-legislation-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const publicProfileRequiredMsg = (verified) => {
You must create a public profile to propose legislation.
${verified
? html`<a href="/get_started">Choose a username</a> and make a public profile.</a>`
: html`<a href="/get_started">Verify your identity</a> to choose a username and make a public profile.</a>`
: html`<a href="/get_started">Vérifiez votre identité</a> to choose a username and make a public profile.</a>`
}
</p>
`
Expand Down
10 changes: 5 additions & 5 deletions views/proxies-page.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ module.exports = (state, dispatch) => {
` : ''}
<div class="columns is-variable is-5">
<div class="column">
<h3 class="title is-5">Add Proxy</h3>
<h3 class="title is-5">Ajout de procurations</h3>
${proxySearch(state, dispatch)}
</div>
<div class="column">
<h3 class="title is-5">Your Proxies</h3>
<h3 class="title is-5">Vos procurations</h3>
${proxies.length ? html`
<p>The highest ranked gets your extra vote. If your 1st choice doesn't vote, it goes to your 2nd, then 3rd, and on.</p>
` : ''}
Expand All @@ -35,13 +35,13 @@ module.exports = (state, dispatch) => {
? proxiesTable(state, dispatch)
: html`
<div class="content">
<p>You don't have any proxies yet.</p>
<p>Vous n'avez pas encore de procurations.</p>
<p>
<span>${APP_NAME} lets you pick <strong>anyone</strong> to represent you.</span>
<span>${APP_NAME} vous permet de choisir n'importe qui pour vous représenter. Vous pouvez les modifier à tout moment, et vous pouvez toujours voter directement sur les projets de loi.</span>
You can change at anytime, and you can always
override them and vote directly on bills.
</p>
<p>For any item that you don't vote on, one of your proxies get an additional vote. This ensures that your values are still represented, even when you don't have the time to look into all the issues.</p>
<p>Pour toute proposition sur laquelle vous ne votez pas, l'une de vos procurations obtient un vote supplémentaire. Cela garantit que votre opinion soit toujours représentée, même si vous n'avez pas le temps d'examiner toutes les questions.</p>
</div>
`}
</div>
Expand Down
10 changes: 5 additions & 5 deletions views/proxy-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ module.exports = (state, dispatch) => {
<div>
<div class="tabs">
<ul>
<li class=${tab === 'search' ? 'is-active' : ''}><a href=${`${path}?tab=search`}>Search by Name</a></li>
<li class=${tab === 'email' ? 'is-active' : ''}><a href=${`${path}?tab=email`}>Invite by Email</a></li>
<li class=${tab === 'twitter' ? 'is-active' : ''}><a href=${`${path}?tab=twitter`}>Invite by Twitter</a></li>
<li class=${tab === 'search' ? 'is-active' : ''}><a href=${`${path}?tab=search`}>Recherche de profils</a></li>
<li class=${tab === 'email' ? 'is-active' : ''}><a href=${`${path}?tab=email`}>Invitation par courriel</a></li>
<li class=${tab === 'twitter' ? 'is-active' : ''}><a href=${`${path}?tab=twitter`}>Invitation par Twitter</a></li>
</ul>
</div>
${tab === 'email' ? addProxyByEmailForm(state, dispatch) : []}
Expand All @@ -27,7 +27,7 @@ const addProxyByEmailForm = (state, dispatch) => {

return html`
<form method="POST" onsubmit=${handleForm(dispatch, { type: 'proxy:addedProxyViaEmail' })}>
<label for="add_proxy[search]" class="label has-text-weight-normal">Proxy to someone not on ${APP_NAME} via email:</label>
<label for="add_proxy[search]" class="label has-text-weight-normal">Donnez procuration à quelqu'un qui n'a pas encore de profil par e-mail :</label>
<div class="field is-horizontal">
<div class="field-body">
<div class="field">
Expand Down Expand Up @@ -69,7 +69,7 @@ const addProxyByTwitterForm = (state, dispatch) => {
const { error } = state
return html`
<form method="POST" onsubmit=${handleForm(dispatch, { type: 'proxy:addedProxyViaTwitter' })}>
<label for="add_proxy[search]" class="label has-text-weight-normal">Proxy to someone not on ${APP_NAME} by adding their Twitter username:</label>
<label for="add_proxy[search]" class="label has-text-weight-normal">Donnez procuration à quelqu'un en ajoutant son nom d'utilisateur Twitter :</label>
<div class="field is-horizontal">
<div class="field-body">
<div class="field is-grouped">
Expand Down
Loading

0 comments on commit 9b8e15a

Please sign in to comment.