You've already forked phpmyadmin
mirror of
https://github.com/phpmyadmin/phpmyadmin.git
synced 2026-10-23 18:29:15 +03:00
The script takes options now: --revision, --minimum, --update and --credits-file. The po files can still be given as arguments, they default to all of them. --update merges the generated entries into the Translators section of the credits file instead of printing them, so the list can be refreshed without editing by hand. The merge only ever adds: the entries the file already has are kept as they are and in their order, and a generated entry is skipped when the file already credits that address or that name, so a second run changes nothing. Sections the file does not have are inserted alphabetically, and the names the po files use for a section the file names otherwise are mapped: Chinese (Simplified Han script) to Chinese (China), Chinese (Traditional) to Chinese (Taiwan), Khmer (Central) to Khmer. A name that only differs by a parenthetical is matched on its base name. Only the Translators section is touched, the "Documentation translators" list below it has its own source. This is what makes the file maintainable without hand work, but it keeps the hand-curated entries safe: the po files start in 2010, so a regeneration cannot see the translators of the language files of the earlier versions, and Daniel Hinostroza is one of them. The tooling accounts are filtered out, and an account registered under a placeholder name keeps the address alone, which is the Weblate account that translated Croatian as "test". Fixes the shellcheck findings so the script passes the shellcheck workflow: the environment is read under set -u, the paths are quoted, and the usage text is a single heredoc instead of being duplicated in the option parser. Co-authored-by: DeepSeek <noreply@deepseek.com> Signed-off-by: William Desportes <williamdes@wdes.fr>