miracle2k/android2po — Issue #17: Long Arrays get corrupted
Author: timsu
Created: 2012-02-29 06:37:37+00:00
State: open

I'm not really sure what the problem here is, but it's really simple to reproduce. My guess is that android2po is not handling two-digit array indices in the message context very well.

.po file:
```
msgctxt "EPr_quiet_hours_start:0"
msgid "disabled"
msgstr "desactivado"

msgctxt "EPr_quiet_hours_start:1"
msgid "8 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:2"
msgid "9 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:3"
msgid "10 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:4"
msgid "11 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:5"
msgid "12 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:6"
msgid "1 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:7"
msgid "2 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:8"
msgid "3 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:9"
msgid "4 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:10"
msgid "5 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:11"
msgid "6 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:12"
msgid "7 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:13"
msgid "8 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:14"
msgid "9 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:15"
msgid "10 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:16"
msgid "11 AM"
msgstr ""

msgctxt "EPr_quiet_hours_start:17"
msgid "12 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:18"
msgid "1 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:19"
msgid "2 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:20"
msgid "3 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:21"
msgid "4 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:22"
msgid "5 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:23"
msgid "6 PM"
msgstr ""

msgctxt "EPr_quiet_hours_start:24"
msgid "7 PM"
msgstr ""
```

I would expect all of the times to be ordered as they are above, but the following XML is produced:

```

desactivado

8 PM

5 AM

6 AM

7 AM

8 AM

9 AM

10 AM

11 AM

12 PM

1 PM

2 PM

9 PM

3 PM

4 PM

5 PM

6 PM

7 PM

10 PM

11 PM

12 AM

1 AM

2 AM

3 AM

4 AM

```

Notice that it's all out of order. Sad times.