Skip to content

i18n: escape double quotes in prop2po output so msgfmt keeps them - #486

Merged
jacalata merged 2 commits into
developmentfrom
jac/escape-quotes-in-po
Nov 2, 2026
Merged

jacalata merged 2 commits into
developmentfrom
jac/escape-quotes-in-po

Conversation

@jacalata

Copy link
Copy Markdown
Contributor

prop2po writes .properties values into the .po without escaping, so a value containing " ends the msgstr early. msgfmt.py then fails to parse the line (ERROR (skipped)) and the .mo stores the wrong text.

Two strings were affected on development:

  • editsite.options.subscription_email was stored with stray wrapping quotes.
  • session.options.site lost its ("") in every locale.

Bare quotes are now escaped in prop2po, and the catalogs are regenerated. The English .mo entries now match the source.

🤖 Generated with Claude Code

prop2po wrote values into the .po unescaped, so a value containing " ended the
msgstr early. msgfmt.py's literal_eval then failed (ERROR (skipped)) and the .mo
stored the wrong text: editsite.options.subscription_email kept stray wrapping
quotes, and session.options.site lost its ("") in every locale. Escape bare
quotes in prop2po and regenerate the catalogs.

Co-Authored-By: Claude Code <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 26, 2026 20:07

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

Coverage

Coverage Report
FileStmtsMissCoverMissing
tabcmd
   __main__.py121212 0%
   _version.py111111 0%
   tabcmd.py151515 0%
   version.py1066 40%
tabcmd/commands
   commands.py101010 0%
   constants.py771818 77%
   server.py1351818 87%
tabcmd/commands/auth
   session.py3945050 87%
tabcmd/commands/datasources_and_workbooks
   datasources_and_workbooks_command.py1571818 89%
   datasources_workbooks_views_url_parser.py14255 96%
   delete_command.py702323 67%
   export_command.py1202525 79%
   get_url_command.py1274747 63%
   publish_command.py1341616 88%
   runschedule_command.py2177 67%
tabcmd/commands/extracts
   create_extracts_command.py4288 81%
   decrypt_extracts_command.py2722 93%
   delete_extracts_command.py3766 84%
   encrypt_extracts_command.py2722 93%
   extracts.py2022 90%
   reencrypt_extracts_command.py2722 93%
   refresh_extracts_command.py481010 79%
tabcmd/commands/group
   create_group_command.py2955 83%
   delete_group_command.py2722 93%
tabcmd/commands/project
   create_project_command.py4688 83%
   delete_project_command.py3544 89%
   publish_samples_command.py3044 87%
tabcmd/commands/site
   create_site_command.py3455 85%
   delete_site_command.py2722 93%
   edit_site_command.py661818 73%
   list_command.py771212 84%
   list_sites_command.py2922 93%
tabcmd/commands/user
   add_users_command.py2955 83%
   create_site_users.py581111 81%
   create_users_command.py5999 85%
   delete_site_users_command.py4355 88%
   user_data.py2223131 86%
tabcmd/execution
   _version.py222 0%
   global_options.py15588 95%
   localize.py671111 84%
   logger_config.py6066 90%
   tabcmd_controller.py4277 83%
TOTAL295447084% 

Drop tracked .mo files; development no longer tracks them (generated, gitignored).

Co-Authored-By: Claude Code <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings November 2, 2026 18:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review any files in this pull request. Check if the Files changed in this pull request are included in default exclusions.

@jacalata
jacalata merged commit 68d84b1 into development Nov 2, 2026
22 checks passed
@jacalata
jacalata deleted the jac/escape-quotes-in-po branch November 2, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants