Skip to content

Update French translation for statistics page - Needing help 😊 - #493

Open
ldmpub wants to merge 5 commits into
Razeeman:devfrom
ldmpub:patch-1
Open

ldmpub wants to merge 5 commits into
Razeeman:devfrom
ldmpub:patch-1

Conversation

@ldmpub

@ldmpub ldmpub commented Sep 12, 2026

Copy link
Copy Markdown
Contributor

Hi,

I'm trying to understand and improve french translation for app stats page.
Yet I have performed 3 changes, I'm 90% sure 😁.

Can you please help me perform next improvement (see yellow part of the screenshot below):
TOTAL

As far as I understand, the 'Total' label here is not a total but a "time difference" (ie subtraction).
I suggest to change it to short label "Différence" or "Résultat" for french (I'm still in reflection yet) but do I need to change (extract for the default / en language file):

string name="statistics_total_tracked_short">Total (1)

or

string name="statistics_detail_total_duration">Total (2)

or does this change requires to add a new string in the translation file? (3)

These proposed changes can also be "ideas" to improve other translations and main / English labels in particular.

@ldmpub

ldmpub commented Sep 13, 2026

Copy link
Copy Markdown
Contributor Author

In french 'Total' changed to 'Écart', I hope the key statistics_detail_total_duration is not used in other app screens than statistics near 'Retard' / 'Avance' labels?

@Razeeman

Copy link
Copy Markdown
Owner

Hello! This statistics is more "Total" than "Difference" it seems. For example if bars in the chart show: 1 -2 3 -4, total excess will be 4, total deficit will be -6, and total in this card in the screen will be a sum of all bars (or a sum of total excess and total deficit) will be -2. "Difference" or "Gap" in this case would mean a bit different value, which would be a gap between total excess and total difference, which will be 10.

@ldmpub

ldmpub commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

Thanks for your explanation, it's more clear 👍.
I suggest the french word "Solde" instead of total ... "solde" can easily have a positive or negative value.

@ldmpub

ldmpub commented Sep 20, 2026

Copy link
Copy Markdown
Contributor Author

(sorry => it has to link with the original Title but it's on my same branch 😇)

  • Changes performed in french translation:

    • Put the number first, as this is more natural in french and so the most important/variable information comes first (improve readability)
    • Avoid using a dash before a number, as it can be confused with the “−” sign.
  • Change to be done in code

    • Handle singular/plural using 2 different translation keys?
Image

<string name="records_all_sort_time_started">Heure de début</string>
<string name="records_all_sort_duration">Durée</string>
<string name="records_all_days_without_records">Jours sans enregistrements - %s</string>
<string name="records_all_days_without_records">%s jour(s) sans enregistrements</string>

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Handle singular/plural using 2 different translation keys for this string?
see #493 (comment)

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