Title: `extract` will return literals that are part of an expression · Issue #415 · python-babel/babel · GitHub
Open Graph Title: `extract` will return literals that are part of an expression · Issue #415 · python-babel/babel
X Title: `extract` will return literals that are part of an expression · Issue #415 · python-babel/babel
Description: _('foo' + bar) _(bar['foo']) Though those are both incorrect usages of gettext, neither should result in 'foo' being picked up as a localized string. However: $ pybabel extract foo.py -o /dev/stdout extracting messages from foo.py writin...
Open Graph Description: _('foo' + bar) _(bar['foo']) Though those are both incorrect usages of gettext, neither should result in 'foo' being picked up as a localized string. However: $ pybabel extract foo.py -o /dev/stdou...
X Description: _('foo' + bar) _(bar['foo']) Though those are both incorrect usages of gettext, neither should result in 'foo' being picked up as a localized string. However: $ pybabel extr...
Opengraph URL: https://github.com/python-babel/babel/issues/415
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`extract` will return literals that are part of an expression","articleBody":"``` python\n_('foo' + bar)\n_(bar['foo'])\n```\n\nThough those are both incorrect usages of gettext, neither should result in `'foo'` being picked up as a localized string.\n\nHowever:\n\n```\n $ pybabel extract foo.py -o /dev/stdout\nextracting messages from foo.py\nwriting PO template file to /dev/stdout\n# Translations template for PROJECT.\n# Copyright (C) 2016 ORGANIZATION\n# This file is distributed under the same license as the PROJECT project.\n# FIRST AUTHOR \u003cEMAIL@ADDRESS>, 2016.\n#\n#, fuzzy\nmsgid \"\"\nmsgstr \"\"\n\"Project-Id-Version: PROJECT VERSION\\n\"\n\"Report-Msgid-Bugs-To: EMAIL@ADDRESS\\n\"\n\"POT-Creation-Date: 2016-06-06 18:32-0700\\n\"\n\"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\\n\"\n\"Last-Translator: FULL NAME \u003cEMAIL@ADDRESS>\\n\"\n\"Language-Team: LANGUAGE \u003cLL@li.org>\\n\"\n\"MIME-Version: 1.0\\n\"\n\"Content-Type: text/plain; charset=utf-8\\n\"\n\"Content-Transfer-Encoding: 8bit\\n\"\n\"Generated-By: Babel 2.3.4\\n\"\n\n#: foo.py:1 foo.py:2\nmsgid \"foo\"\nmsgstr \"\"\n```\n","author":{"url":"https://github.com/asottile","@type":"Person","name":"asottile"},"datePublished":"2016-06-07T01:33:57Z","url":"https://github.com/python-babel/babel/issues/415"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2ea5a417-a475-24a1-cb8e-ee8c3786a2ba |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A820:47016:4BFA09:6588AD:6B00A535 |
| html-safe-nonce | 70e253b325820bf8267d6168a0597466d7b4941bfbbe72fc377ef352020df602 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODIwOjQ3MDE2OjRCRkEwOTo2NTg4QUQ6NkIwMEE1MzUiLCJ2aXNpdG9yX2lkIjoiMTY2ODg4MDAyNTA2OTMzMTc2NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 551930c1f24ba62c58d0034a19ac971f669cb368292b33d35632428af79e3ca4 |
| hovercard-subject-tag | issue:158811122 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-babel/babel/415/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b710a94636b0365a915cbca8c1959ef8e48be2caa59bd50cf6572dd2898b0d23/python-babel/babel/issues/415 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b710a94636b0365a915cbca8c1959ef8e48be2caa59bd50cf6572dd2898b0d23/python-babel/babel/issues/415 |
| og:image:alt | _('foo' + bar) _(bar['foo']) Though those are both incorrect usages of gettext, neither should result in 'foo' being picked up as a localized string. However: $ pybabel extract foo.py -o /dev/stdou... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | asottile |
| hostname | github.com |
| expected-hostname | github.com |
| None | 455b493e3402a3a3a06beac5d20bb7db3da060808b220aa48d6a7eca7c59863a |
| turbo-cache-control | no-preview |
| go-import | github.com/python-babel/babel git https://github.com/python-babel/babel.git |
| octolytics-dimension-user_id | 14215782 |
| octolytics-dimension-user_login | python-babel |
| octolytics-dimension-repository_id | 11150301 |
| octolytics-dimension-repository_nwo | python-babel/babel |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 11150301 |
| octolytics-dimension-repository_network_root_nwo | python-babel/babel |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2f575159976167242d488c0b062eb355c4e198b7 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width