Avatar

Bug à l'inscription (French / Français)

by Auge ⌂, Wednesday, September 11, 2013, 11:58 (3873 days ago) @ Antoine

Hello

Je n'ai pas les messages d'erreur quand le forum est configuré en anglais. Le problème ne se pose à priori qu'avec le forum configuré en français.

Toujours pas résolu le problème, j'ai donc configuré le forum en anglais :-(

If I understand the google translation, the error occurs only when the forum is configured to french language but not when configured to english. So I compared the both translations because the program code itself is always the same.

There are – aside the translation itself – only two differences.

1. the first section about language settings (locale, date and time format, etc.) starts in the english language file (like the german one and all others) with the keyword [default]. The french file is the only one, that lacks this keyword.

english.lang:

################################################################################
 
[default]
language =                        en
charset =                         utf-8
locale =                          en_US.utf8
locale =                          en_US
locale =                          en
locale_charset =                  utf-8
dir =                             ltr
time_format =                     %Y-%m-%d, %H:%M
time_format_full =                %A, %B %d, %Y, %H:%M
forum_time =                      Forum time: [time]
forum_time_with_time_zone =       Forum time: [time] ([time_zone])
...

french.lang:

################################################################################
 
language =                        fr
charset =                         utf-8
locale =                          fr_FR.utf8
locale =                          fr_FR@euro
locale =                          fr
locale_charset =                  utf-8
dir =                             ltr
time_format =                     %d/%m/%Y, %H:%M
time_format_full =                %A %d %B %Y, %H:%M
forum_time =                      Temps actuel sur le forum : [time]
forum_time_with_time_zone =       Temps actuel sur le forum : [time] ([time_zone])
...

2. The second difference is a sentence in the text of an email (keyword: pwf_activating_email_txt, difference: "Link to confirm your request:")

english.lang (line 1034):

pwf_activating_email_txt =        """Hi [name],
this e-mail has been sent by the forum on [forum_address] because a new password has been requested. Please click the link below to confirm your request. By following the link a new password will be generated and sent to you. If this e-mail has been sent in error (either by you or someone else) please ignore this e-mail.
 
Link to confirm your request:
[activating_link]"""

french.lang (line 1024):

pwf_activating_email_txt =        """Bonjour [name],
Cet email a été envoyé par le forum ([forum_address]) car un nouveau mot de passe a été demandé. Veuillez cliquer sur le lien ci-dessous pour confirmer votre demande. Cette action générera un nouveau mot de passe qui vous sera envoyé. Si cet email a été envoyé par erreur (que ce soit par vous ou par d'autres) veuillez ignorer cet email.
 
[activating_link]"""

If I'm right and the language file causes the error, the first difference (keyword [default]) is the reason for the error.

Add [default] on top of line 8 (language = fr) and try to choose french language again. Please report afterwards.

Tschö, Auge

--
Trenne niemals Müll, denn er hat nur eine Silbe!


Complete thread:

 RSS Feed of thread