Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

i18n: Include string locations in make translate output file #5172

Closed
akirk opened this issue May 3, 2016 · 1 comment
Closed

i18n: Include string locations in make translate output file #5172

akirk opened this issue May 3, 2016 · 1 comment

Comments

@akirk
Copy link
Member

akirk commented May 3, 2016

For our translators it would be very useful if the calypso-strings.php file contained the actual paths where the string is coming from.

It is likely that this is not possible with the current approach because the strings are actually extracted from the minified files.

It the process it might be useful to switch from generating a PHP file to a POT file.

The contents of calypso-strings.pot could look like this:

#: client/my-sites/sidebar-navigation/sidebar-navigation.jsx:24
msgid "All Sites"
msgstr ""

#: client/me/sidebar-navigation/sidebar-navigation.jsx:22
msgid "Me"
msgstr ""

Generating a .pot file would solve our need to get the file locations into GlotPress at the same time (currently it just says wp-content/js/jed/calypso-strings.php:4257).

@yoavf
Copy link
Contributor

yoavf commented May 30, 2016

Related: Automattic/xgettext-js#4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants