This repository has been archived by the owner on Dec 25, 2023. It is now read-only.
Wrong support of ' (single quote) in some places (French localisation) #273
Labels
bug
Something isn't working
JS - Lychee-Front
JavaScript related see https://github.com/LycheeOrg/Lychee-front
Detailed description of the problem
With the French version some texts are truncated.
For example instead of "
Nom d'utilisateur actuel :
" I see this:The text comes from https://github.com/LycheeOrg/Lychee/blob/master/app/Locale/French.php#L325:
Steps to reproduce the issue
The problem
I discussed the issue on https://gitter.im/LycheeOrg/Lobby with @nagmat84
It looks like the problematic code is https://github.com/LycheeOrg/Lychee-front/blob/master/scripts/main/view.js#L927
Working cases
In other places the single quotes are correctly displayed.
For example with the login screen that uses:
I get the correct:
The corresponding code is https://github.com/LycheeOrg/Lychee-front/blob/master/scripts/main/lychee.js#L352
Possible solution
In the case the quote are correctly displayed the PHP code uses
$${lychee.locale["USERNAME"]}
instead of justlychee.locale["USERNAME_CURRENT"]
.It looks like the use of
$${ }
is important here.The text was updated successfully, but these errors were encountered: