• Resolved TheElear

    (@peterpap)


    Everything works as intended with one exception.
    I enabled in language setting language flag switchers at the end of nav menu. It works fine when pages are selected from the the nav.
    Some nav menu items however are categories. When these are selected to display relevant category posts, flags disapear from the nav menu!

    Any help on how to fix it will be greatly appreciated

    kind regards,
    Peter

    https://www.ads-software.com/extend/plugins/polylang/

Viewing 14 replies - 1 through 14 (of 14 total)
  • Plugin Author Chouby

    (@chouby)

    I have no such issue on my test local site. Which theme are you using ? Have you a link ?

    Thread Starter TheElear

    (@peterpap)

    Hello Chouby,

    I use twentyten.
    Link to the test site: coelo.eu

    Quiet possibly the reason might be that I installed and tested xili, qtranslate on the same site/wp installation before. So perhaps these other sites messed sth up?

    After checking all other plugins I wanted to go ahead with polyang as it is simple, light and does the job but came accross the above mentioned issue.

    Another question is: Is it possible to have a static page as the Home page. You specify this page in Dashboard settings/Reading. Obviosly you can specify only one (in one language)……..

    Peter

    Plugin Author Chouby

    (@chouby)

    My tests are done with Twenty Ten too ??

    Did you set a language for the test category ? Conflicts with Xili language are possible. I did not test that.

    It is possible to use a static page as home page. You have to create one in each language and set translations and then choose one of them in the settings/Reading panel. the same for page for posts.

    Thread Starter TheElear

    (@peterpap)

    I did set language for all categories.

    I will prepare a clean test environment to get rid of all other multilingual plugin remains and test it again. I will then post my findings here.

    speak soon,
    P

    Thread Starter TheElear

    (@peterpap)

    OK, so I put Polylang on the fresh WP 3.1.1 installation and I found I had 2 issues present:

    1. One as described above – language switcher flags disappear on a page which is a post category page. It works fine on stand alone pages.

    2. In WP dashboard when I add a new post, when I want to select which categories it belongs to in a ‘category widget’ I cannot see any categories even though there are categories set up in the WP.
    This is true for posts added after installing Polylang. When I edit posts added before Polylang installation, which had categories added before I can still see the full list of available categories.

    THe above problems no 1 and no 2 were the result of relevant categories in different languages not matched! Once I matched/translated categories all works brilliantly!

    One more question then:
    How to make switcher flags align to the right edge of the nav menu.
    They are currently just after the last menu item but I would like them to be on the right hand side.

    Any help will be much appreciated.

    regards,
    Pete

    Plugin Author Chouby

    (@chouby)

    For the theme Twenty Ten, just add the following css rule in style.css:

    #access li.lang-item {
    	float: right;
    }

    However, it is better to create a child theme rather than directly editing the style.css in Twenty Theme, otherwise your modifications will be overwritten by the next theme update.

    Thread Starter TheElear

    (@peterpap)

    Many thanks Chouby. This is very helpful.
    I already use child themes.

    Would you know how to move the flags to the page title bar?

    REGARDS,

    Plugin Author Chouby

    (@chouby)

    To display the switcher outside the menu or the widget sidebar, you need to use the function pll_the_languages with the correct arguments described in the documentation. You will also have to style it using the css class .lang-item

    You will probably have to put this function somewhere around the line 65 the in twentyten/header.php

    Thread Starter TheElear

    (@peterpap)

    Chouby, thank you very much both for the advise and for making this plugin. I just cannot believe how simple it is yet does the job so brilliantly!

    I have just noticed that widget labels are translated automatically!!!

    However the category page title/label which reads in English “Category Archives:” and then displays the particular category name is not translated in to the other language. Same with meta texts e.g “Posted in”, “Posted by”, “Tagged”, etc. What changes should I make for this to be translated? (thought it would be a short post but the more I use the plugin the more questions pop up ?? )

    Plugin Author Chouby

    (@chouby)

    Download the pl_PL.mo file here and upload it in twentyten/languages.

    Thread Starter TheElear

    (@peterpap)

    Many thanks. Works like a dream!

    Thread Starter TheElear

    (@peterpap)

    Hi again Chouby,

    So I set up this test site where I activated Polylang and as expressed above it works like a dream. Now I have activated it in my live site and have the same problem again!

    I can set up languages in settings, I can set up pages in different languages and easily link relevant page translations using ID field. I can then see liitle ‘+’ and pencil icons in the table listing all pages.

    However when it comes to categories and tags I am not able to even set a language.

    Lets say I have 30 categories, all with English selected in the dropdown (they were original categories). I add a couple of new translated categories. Now I click on edit (new) category. The language shows English. So I select Polish from the drop down (as this is the second language for my project). A frame shows up below – more like a table – showing 3 columns in 1 row:
    Language – English
    Translation – No untranslated term
    Edit – Add new

    There is no drop down field where I could select matching English category! I believe a drop-down field should appear where there is ‘No untranslated term’ is.

    It is absolutely doing my head in!!!
    I click ‘Update’ button and my language selection is not saved.
    When I come back to re-edit the category it still reads English even though I had selected different language.
    (is it because it is not saving ‘Polish’ I select, that then ‘No untranslated term’ shows on any English category???)

    I remember I had a similar issue on the test site and then suddenly these drop-downs where I could select matching translated category showed up. From then on I could match all categories/tags. I do not recall what I did to get to that point though.

    Any ideas?
    Your help will be much appreciated,
    Pete

    Plugin Author Chouby

    (@chouby)

    The last question is duplicated from https://www.ads-software.com/support/topic/plugin-polylang-categories-and-tags-cannot-assign-language. I change this topic to resolved.

    Thread Starter TheElear

    (@peterpap)

    Many thanks Chouby.

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘[Plugin: Polylang] flag language switcher not always showing’ is closed to new replies.