• Resolved Blue3agle

    (@blue3agle)


    Hello.

    Let me first explain the usage scenario:
    I am setting up a WordPress Network for a sports club with 38 groups. Each group will have their site in the network, and will post news English and Norwegian. The main site will be a portal, and the news feed here should aggregate the news from the group sites.

    The challenge:
    I use Feed Pull to pull the content from the group pages. However this needs me to specify the link to each site’s feed including the language tag (https://subgroup.domain.tld/<language>/feed). This will however only give one language.

    Suggested solution:
    Create a special “language” tag called “raw” or “all” that gives the untranslated content with language tags and all. (Example: [:no]Overskrift[:en]Heading[:])

    This would allow me to put the posts directly into the front site and have translations work. The only requisite for this to work is that the main site has activated support for all languages that the sub groups may use.

    I am not sure if this should be available for any page and post, or just for the news feed… I see no harm in having it available for all page types, but it should not be selectable from the language switcher, as it would look weird and not be friendly to human readers.

    https://www.ads-software.com/plugins/qtranslate-x/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Gunu

    (@grafcom)

    @blue3agle,

    download here the latest Beta version.

    See under Settings – Languages – Advanced Settings – Editor Mode and see if you can work with it as you have in mind.

    Success

    Thread Starter Blue3agle

    (@blue3agle)

    Hello Gunu.

    I have now set up a test site to test the beta code, but I do not see how the Editor Mode should help accomplish what I wish to do.

    Please re-read the support request as I do believe you may have misunderstood the issue.

    At present I have two languages used for my sites, and I use pre-path mode. This means that I get two distinct news feeds (https://example.com/no/feed which gets all the norwegian content and https://example.com/en/feed which gets all the english content). However when I want to syndicate all news from the sites onto the main site I want to have a news feed with the language codes intact so that the main sites news feed shows either Norwegian or English content.

    I therefore need q-translate to have a “special” language “raw” that does not filter out the content when providing the news feed.

    Plugin Author Gunu

    (@grafcom)

    @blue3agle,

    This means that I get two distinct news feeds

    I understand that

    I want to have a news feed with the language codes intact so that the main sites news feed shows either Norwegian or English content.

    You mean both Norwegian and English with the language codes?

    Thread Starter Blue3agle

    (@blue3agle)

    Yes, I would like to get unfiltered text from the special tag.

    If I go to https://example.com/no/feed/ I would get content like

    Title: Dette er en fin post
    Content: Denne fine posten er p? norsk

    If I go to https://example.com/en/feed I would get content like

    Title: This is a nice post
    Content: This nice post is in English

    If I go to https://example.com/raw/feed I would get content like

    Title: [:no]Dette er en fin post[:en]This is a nice post[:]
    Content: [:no]Denne fine posten er p? norsk[:en]This nice post is in English[:]

    This will allow me to import the newsfeed https://example.com/raw/feed to a site that uses qTranslate and just plug it in to a new post and qTranslate will then show the right content in either Norwegian or English.

    Plugin Author Gunu

    (@grafcom)

    This looks like a question for an custom additional function.

    You can ask this through qTranslate-x on GitHub

    Thread Starter Blue3agle

    (@blue3agle)

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Special tag to get "raw" (untranslated) text’ is closed to new replies.