i18n/.tx/config
author Andrey Skvortsov <andrej.skvortzov@gmail.com>
Sun, 06 Jan 2019 01:22:46 +0300
changeset 2499 68f4f2d4516b
parent 2348 3a755d690398
permissions -rw-r--r--
use pregenerated CRC32 lookup tables for retain on Win32 and GNU/Linux

This code could be possible reused on low-end targets with limited RAM.

code to generate lookup table:
[---------------------------------------------------------------------]

/* CRC lookup table and initial state. */
uint32_t crc32_table[256];

/* Generate CRC32 lookup table. */
void GenerateCRC32Table(void)
{
unsigned int i, j;
/* Use CRC-32-IEEE 802.3 polynomial 0x04C11DB7 (bit reflected). */
uint32_t poly = 0xEDB88320;

for (i = 0; i <= 0xFF; i++)
{
uint32_t c = i;
for (j = 0 ; j < 8 ; j++)
c = (c & 1) ? (c >> 1 ) ^ poly : (c >> 1);
crc32_table[i] = c;
}
}

void main(void)
{
GenerateCRC32Table();
int j=0;
for(int i=0; i<256; i++) {
printf("0x%08X, ", crc32_table[i]);
if (++j >= 8) {
j = 0;
printf("\n");
}
}
}
[---------------------------------------------------------------------]
2348
3a755d690398 Add commands to pull translation from transifex
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     1
[main]
3a755d690398 Add commands to pull translation from transifex
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     2
host = https://www.transifex.com
3a755d690398 Add commands to pull translation from transifex
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     3
3a755d690398 Add commands to pull translation from transifex
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     4
[beremiz-ide.beremiz]
3a755d690398 Add commands to pull translation from transifex
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     5
file_filter = Beremiz_<lang>.po
3a755d690398 Add commands to pull translation from transifex
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     6
minimum_perc = 0
3a755d690398 Add commands to pull translation from transifex
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     7
source_file = messages.pot
3a755d690398 Add commands to pull translation from transifex
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     8
source_lang = en
3a755d690398 Add commands to pull translation from transifex
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
     9
type = PO
3a755d690398 Add commands to pull translation from transifex
Andrey Skvortsov <andrej.skvortzov@gmail.com>
parents:
diff changeset
    10