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
Missing query time in German #13975
Comments
|
Version 4.7.9 for WampServer (local environment) Maybe its a WampServer related bug if u cant reproduce it |
|
Does it happen for every query or only in some specific cases? |
|
Looks like every query |
|
@benjaminfunk Can you try on version Can you send more informations on OS, web server if I think that I had the same issue with French on a Windows 10 running |
|
@williamdes The problem still exists with phpMyAdmin 4.8.1 in my environment Windows 10 |
|
Successfully reproduced on Windows 10 ( 10.0.10586 ) and VirtualBox with :
Investigating... |
Results
|
I found where is the error, remove this line (some codes work perfectly) : phpmyadmin/libraries/classes/Language.php Line 180 in b9c0463
https://stackoverflow.com/a/29522488/5155484 @MauricioFauth do you think we can skip this line for windows platform or remove it completely ? |
|
Can you help with that, @nijel? |
|
@nijel Can you please have a look when you have some time ? |
|
AFAIK without this the numbers and dates won't be localized at all (that should be easy to verify). Anyway this really boils down to broken sprintf after calling setlocale? Can you try following snippet? <?php
$value = 0.001;
echo sprintf("original = %01.4f\n");
setlocale(0, 'de');
echo sprintf("localized = %01.4f\n");What's result of setlocale in this case? Maybe handling failure and using some other locale instead could be a workaround (apparently some of them seem to work). |
I had a similar issue with floating numbers. Try to uppercase the "f" in the sprintf function. Look here: http://php.net/manual/de/function.sprintf.php#49254 |
|
But that will ruin the localization for everybody, not just for the broken systems... |
…er format issue) Signed-off-by: Patrik Pasterčík <plaki@seznam.cz>
|
I find solution to fix this problem. Problem is conversion of number from int/float to string (when adding parameter to Message class) and then using @nijel I think I know why you couldn't reproduce it. It's because some servers (computers) not have installed support for different locales, so it's not use comma as decimal separator but use dot as decimal separator as fallback. With dot separator everything is working fine. |
|
@Plaki I won't comment on the solution you've found (it makes sense, though), but a fix should preferably target the QA_4_8 branch. |
Signed-off-by: William Desportes <williamdes@wdes.fr>

The query execution time in above the query box is alway 0.0000 seconds when i activate the german language.
Version 4.7+
The text was updated successfully, but these errors were encountered: