jDownloadsownloads.com


Author Topic: THOUSANDS_SEPARATOR in Top Downloads  (Read 3700 times)

0 Members and 1 Guest are viewing this topic.

Offline Zoker

  • jD Tester
  • *
  • Posts: 36
  • Translator - Tester
THOUSANDS_SEPARATOR in Top Downloads
« on: 21.07.2015 21:09:40 »
Hallo Arno,

Ich hab folgendes problem mit dem "Top Downloads" module:


Wie kann ich das lösen?

Offline Arno

  • Administrator
  • ***
  • Posts: 12.271
    • jDownloads.com
Re: THOUSANDS_SEPARATOR in Top Downloads
« Reply #1 on: 21.07.2015 21:51:58 »
Hi,
welche Sparchdateien verwendest du in Joomla?

In den englischen für Joomla (en-GB.ini) steht es so:
Quote
; Localised number format
DECIMALS_SEPARATOR="."
THOUSANDS_SEPARATOR=","

In der deutschen Datei (de-DE.ini) sollte es dann so stehen:
Quote
; Localised number format
DECIMALS_SEPARATOR=","
THOUSANDS_SEPARATOR="."

Kann es sein, das die Datei bei dir nicht installiert ist?
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline ColinM

  • Moderator
  • *
  • Posts: 3.642
Re: THOUSANDS_SEPARATOR in Top Downloads
« Reply #2 on: 21.07.2015 22:08:51 »
Hi
This looks like a language problem. I tried to reproduce but it was good (in English, French and German versions). See pic for English version.  Which Joomla! site language are you using?
As explained in the article http://www.jdownloads.net/documentations/item/international-dates-times-and-number-style jDownloads uses the main Joomla language file for the THOUSANDS_SEPARATOR definition
I tried with the English French and German site Languages and it was fine (although the French one wrapped on the spaces)
You could also try changing the Short and Long date- time fields (I forget which one is used!)
Does this happen on the Download Details view?

Have you tried the other Modules to see if problem is wider?

Colin

@Arno
Thought: in public static function strToNumber it could test if returned string is > 1 char and use default if it were a long string.  That would then work for partial language translations.
Colin

[gelöscht durch Administrator]
« Last Edit: 21.07.2015 22:10:10 by ColinM »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.271
    • jDownloads.com
Re: THOUSANDS_SEPARATOR in Top Downloads
« Reply #3 on: 21.07.2015 22:27:27 »
Quote
@Arno
Thought: in public static function strToNumber it could test if returned string is > 1 char and use default if it were a long string.  That would then work for partial language translations.
I have it already changed. Please try the file below and copy the unzipped file to: com_jdownloads/helpers/
When the language keys are not defined we use now the english seperators instead.


Edit:
see to late that it is an jD 2.5 issue. hm... for jD 3.2 users is it updated in next version.
« Last Edit: 21.07.2015 22:29:09 by Arno »
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline Zoker

  • jD Tester
  • *
  • Posts: 36
  • Translator - Tester
Re: THOUSANDS_SEPARATOR in Top Downloads
« Reply #4 on: 23.07.2015 14:46:39 »
I switched the language to english, but same issue...
Im using Joomla 2.5.28

Offline Arno

  • Administrator
  • ***
  • Posts: 12.271
    • jDownloads.com
Re: THOUSANDS_SEPARATOR in Top Downloads
« Reply #5 on: 23.07.2015 22:55:24 »
I switched the language to english, but same issue...
Im using Joomla 2.5.28
The version 2.5 is not more supported. So you should update very soon to 3.2.x and your problem is solved.
But i have in your case now added a small fix. Please install the version below and post here the result.

[gelöscht durch Administrator]
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline Zoker

  • jD Tester
  • *
  • Posts: 36
  • Translator - Tester
Re: THOUSANDS_SEPARATOR in Top Downloads
« Reply #6 on: 26.07.2015 22:53:24 »
Thank you!

I tried it but it did not work. Same issue...
Other plugins do work (see attach)


[gelöscht durch Administrator]
« Last Edit: 26.07.2015 23:05:06 by Zoker »

Offline Arno

  • Administrator
  • ***
  • Posts: 12.271
    • jDownloads.com
Re: THOUSANDS_SEPARATOR in Top Downloads
« Reply #7 on: 27.07.2015 00:53:24 »
Verstehe ich nicht. Irgendetwas läuft hier bei dir total falsch.
Wass meinst du mit 'other plugins'? Wir reden doch von der jD Komponente oder meinst du das content plugin?
Wovon stammt denn dein Screenshot?
Schick mir bitte Login Daten für dein Backend via PM. So macht das hier keinen Sinn.
Best Regards / Gruß
Arno
Please make a Donation for jDownloads and/or write a review on the Joomla! Extensions directory!

Offline Tinnakon

  • Newbie
  • *
  • Posts: 1
Re: THOUSANDS_SEPARATOR in Top Downloads
« Reply #8 on: 11.09.2018 10:05:28 »
Thank you for your advice