NAME

normalize_database_whitespace.pl - Normalizes leading/trailing whitespaces for all translations in the database

DESCRIPTION

normalize_database_whitespace.pl normalizes leading/trailing whitespaces for all translations in the database. After running this script, run 'serge --recreate-ts-files' to update translation files.

SYNOPSIS

normalize_database_whitespace.pl --database=DBI:SQLite:dbname=/path/to/translate.db3 --save-to=output_log.html

Use --help option for more information.

Use --man for the full documentation.

OPTIONS

-db DSN, --database=DSN

Database to read statistics from. This parameter is required.

-u user, --user=user

Database username (optional; not needed for SQLite databases).

-p [password], --password[=password]

Database password (optional; not needed for SQLite databases). If password is ommitted, you will be prompted to enter it securely (with no echo).

--server-url=URL

Server URL. This is used to construct links back to the server.

--save-to=/path/to/report.html

If provided, a report will also be saved to a specified HTML file

--lang=xx[,yy][,zz], --language=xx[,yy][,zz], --languages=xx[,yy][,zz]

An optional comma-separated list of languages to check (by default, goes through all languages). You can specify either languages or translation identifiers, but not both at the same time.

--dry-run

Do not update the database, just generate the output

--debug

Print debug output

-?, --help

Show help on program usage and options. For a more verbose output, use --man

--man

Show all available documentation on this program.