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

Only english title with export tool #199

Open
herrvigg opened this issue Jun 22, 2018 · 1 comment

Comments

@herrvigg
Copy link
Collaborator

commented Jun 22, 2018

Issue by lilithfr
Thursday Jul 16, 2015 at 22:14 GMT
Originally opened as qTranslate-Team/qtranslate-x#199


I use the export tools from Wordpress to exports my pages and posts.
In the export file, the title contains only the English version but not the other languages.

@herrvigg herrvigg added the import qTX label Jun 22, 2018

@herrvigg

This comment has been minimized.

Copy link
Collaborator Author

commented Jun 22, 2018

Comment by cimbalo
Monday Sep 05, 2016 at 08:02 GMT


I had the same problem, the Wordpress export tool apply the the_title_rss filter to the content title [see code].

In wp-admin/includes/export.php change
`echo apply_filters( 'the_title_rss', $post->post_title );

to
`echo apply_filters( 'the_title_export', $post->post_title );

Somebody knows a better way to disable this filter during export without edit the file?

tibonihoo added a commit to tibonihoo/nikola that referenced this issue Jul 19, 2019

Enhance support for qtranslate titles and recent formats.
This supports "up to" qtranslateX format for translations.

It also allows to recover the titles' translation on the condition
that the wordpress exports is made with the following specific hack
taken from qtranslate/qtranslate-xt#199 :

```
In wp-admin/includes/export.php change
`echo apply_filters( 'the_title_rss', $post->post_title );

to
`echo apply_filters( 'the_title_export', $post->post_title );
```

tibonihoo added a commit to tibonihoo/nikola that referenced this issue Jul 19, 2019

Enhance support for qtranslate titles and recent formats.
This supports "up to" qtranslateX format for translations.

It also allows to recover the titles' translation on the condition
that the wordpress exports is made with the following specific hack
taken from qtranslate/qtranslate-xt#199 :

```
In wp-admin/includes/export.php change
`echo apply_filters( 'the_title_rss', $post->post_title );

to
`echo apply_filters( 'the_title_export', $post->post_title );
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.