Ikariam Alliance Sorter

By MT0 Last update Jul 6, 2009 — Installed 95,191 times.

decimal separator

in
Subscribe to decimal separator 5 posts, 2 voices



omnior User
FirefoxWindows

would it be possible to adapt the script so that sorting of the ally members in countries where the decimal separator is a . instead of a , is possible.
Actually the script cannot sort correctly values greater then 1 Mio points because e.g. the value in these countries has two dots e.g. 1.000.000 and the script wrongly translates the value into 1,000 and sorts these members wrong.

Did I explain it understandable?

 
MT0 Script's Author
FirefoxWindows

The only domain I have found that uses '.' instead of ',' is the German one (at least that is how it looks from lookin at the highscores). Is this where you are running this script or is there another domain?

 
omnior User
FirefoxWindows

yes, it is the german .de domain, but I think there are some other countries as well (see http://en.wikipedia.org/wiki/Decimal_separator)
The ideal solution would be a possibility to change the form, but if you could give me hint where and what to change, I could try it myself.

 
MT0 Script's Author
FirefoxWindows

I have made the change in the last update (Jul 6, 2009 22:20). Yes I have seen that page previously but it is not like that in the game. I have created accounts on about 20 domains to check this out and the only one that uses ',' as a radix point is the German domain.

Anyway, the code that gets changed is:

	"german":	{	ltr: true,	ds: '.', dp: ',', change: 'Ändern', online: 'ONLINE', inactive: 'INACTIVE', i: '(i)', edit: 'Bearbeiten Alliance Sorter Konfiguration', activity: 'Aktivitätsart Konfiguration', activity1: 'Default Image', activity2: 'Standard-Image oder (i)', activity3: 'Standard-Bild oder Text', activity4: 'Nur Text', title: 'Konfiguration', score: 'Ergebnis Konfiguration', score1: 'Keine', score2: 'Absolute Zunahme', score3: 'Erhöhung', score4: 'Checkpoint Ergebnis', checkpoint: 'Letzte Checkpoint', reset: 'Reset', scoreCP: 'Ergebnis Checkpoint', msg: 'Reload der Seite nach dem Ändern der Konfiguration.' },

The thousands seperator (ds) and the radix point (dp) are set here for each language:

ds: '.', dp: ',',

So just install the latest version of the script and it should work for you.

 
omnior User
FirefoxWindows

great, works fine!!
Thanks a lot for the quick adaption.

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel