• filipopoland

    (@filipopoland)


    Ok, I have realised that I can’t manually set the language through just changing the text. It turns out that certain elements can’t be translated. I am using oxygen to style my page.

    I have encountered a problem because I can’t change the displayed the language on my comment element. I would assume that it is the fault of the language that the page is set to. I have no clue how to change it. I might not be right.

    The way I translated mh pages up till now was creating separate posts and pages for English and Polish versions. This was great because I had absolute control over the content but now I have a problem with an element which would be childishly easy in standard HTML.

    I would imagine it is also like this here and I am just missing something.

    All and any help would be very much appreciated.
    Filip.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator bcworkz

    (@bcworkz)

    What element do you have trouble with? WP only sets the language site wide for its own interface elements. For this the General Settings language is used. You can dynamically alter which language WP is using for its elements with the “locale” filter. This setting also controls the “lang” attribute used in the page’s html tag.

    However, what appears in posts is up to you and whatever multi-language plugin you may be using. It is outside of what WP does for languages by itself.

    Thread Starter filipopoland

    (@filipopoland)

    Well I was trying to avoid a plug-in. The solution was “PolyLang”(a plug-in).
    This solved the problem with comment element(that I was struggling with). Knowing how to do it manually via “WordPress” would have saved me the following mess:

    I am using “Oxygen” to style my page. Unfortunately, when I want to load the posts that I have under the “English” category that is the translation of the “Polish” category I can not find it in the “Oxygen” editor. It is necessary for my blog archive. This lets me display other posts of this category. I have also tried to use the tag(which is visible) but this did not work – no results.

    I hope my description is clear.

    Would be very grateful for any help as the other solution gave birth to this problem.

    Filip.

    Moderator bcworkz

    (@bcworkz)

    It looks like the problem is your theme is no longer supported and is only about halfway translated into Polish. You could generate your own translations and compile using the gettext system. This can get pretty involved to translate everything missing. The alternative would be to switch to a theme that is better supported and has complete Polish translations.

    The problem of not being able to access your English translations is a separate issue. Just as a test, try switching to the twentynineteen theme. Can you access the English versions now? You can restore Oxygen after this test. if you can access the English content under twentynineteen, it’s another indication that you should consider finding another theme.

    If you could not access English posts even under twentynineteen, something else is going on beyond themes. If you have any other plugins active, they could be causing an issue. Try deactivating one at a time to see if you can regain access. If you have trouble even with no plugins while using twentynineteen theme, there is something unusual about the English posts that I’m not understanding.

    Thread Starter filipopoland

    (@filipopoland)

    I might have not lay out my problem right or I might not understand your solution.

    For reference the website in question is http://polskibrzeg.pl/?p=1181&lang=en. Under the text “Other Journeys” posts should appear.

    The current problem are not the translations of elements. I am sorry if it was unclear. The first problem was solved by installing the Polylang plug-in.

    I currently have a problem with the blog archive. Up till now I was able to easily select the category I wanted displayed. Now I wasn’t able to find it.

    Filip

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Translating elements – setting page language’ is closed to new replies.