Skip to content

[script] Add script to generate pot from database table#10448

Open
driusan wants to merge 2 commits intoaces:mainfrom
driusan:GenerateTablePotScript
Open

[script] Add script to generate pot from database table#10448
driusan wants to merge 2 commits intoaces:mainfrom
driusan:GenerateTablePotScript

Conversation

@driusan
Copy link
Copy Markdown
Collaborator

@driusan driusan commented Apr 14, 2026

This adds a script, generate_table_po.php in order to extract translateable strings from a database table and generate the .pot file to be translated.

It will only create new templates and refuses to overwrite existing ones.

Related to #10447 (though they aren't interdependent.)

This adds a script, generate_table_po.php in order to extract translateable
strings from a database table and generate the .pot file to be translated.

It will only create new templates and refuses to overwrite existing ones.
@github-actions github-actions Bot added the Language: PHP PR or issue that update PHP code label Apr 14, 2026
driusan pushed a commit to driusan/Loris that referenced this pull request Apr 27, 2026
This adds the pot files and Japanese po files I used for testing
translations on the candidate_list page.

pot files were generated by the script in aces#10448, while test translation
strings mostly come from Google Translate.

To use them, you need to manually copy the raisinbread locale to the
project/locale directory and run `msgfmt -o table.mo table.po` for each.

This is not currently done by the raisinbread refresh script which only
deals with the database.
driusan added a commit that referenced this pull request Apr 27, 2026
This adds the pot files and Japanese po files  used for testing
translations on the candidate_list page.

pot files were generated by the script in #10448, while test translation
strings mostly come from Google Translate.

To use them, you need to manually copy the raisinbread locale to the
project/locale directory and run `msgfmt -o table.mo table.po` for each.

This is not currently done by the raisinbread refresh script which only
deals with the database.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: PHP PR or issue that update PHP code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants