• Resolved ian6

    (@ian6)


    First my thanks for creating this very nice plugin!
    Discovered it yesterday and looks very promising ??
    (I’ve been using qTranslate, that seems broken under wp-3.5)

    For my new website (in 8 languages) I’m a bit confused as to the steps to follow to get all working in an efficient way.

    Menus if I understand well:
    1) Every language needs its own menu, but some entries are common.
    2) Some entries are categories (thus, have to be translated before in the proper language, to be used correctly) ?

    How do I best handle this?

    Categories
    1) Do I create new ones in the new languages, or I have to translate the existing ones (from default English) ?
    2) what is best, when writing an article in a language, for putting its translated versions in the other language categories?

    flags
    1) Is there a way to hide flags for languages that are not yet completely ready for publication?
    2) possible (& how) to hide flag(s) when an post/page is not yet translated and uploaded on the website?
    3) is there a way to make a dropdown with flags?

    translation not available
    Is there a way to show a message like “post is only available in x,y,z language” instead of going to the homepage (if a translation isn’t yet online or not coming) ?

    Thanks a lot for anyone taking time to explain these elementary things, but maybe useful to other newbies

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

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

    (@chouby)

    What a lot of question! I will try not to miss one…

    Menus:
    1. yes
    2. yes
    You are obliged to create the category before adding it to the menu. As far as I know there no option to automatically add categories in menus (as there is for top pages).

    Categories:
    1. As you want. You are not obliged to have all categories translated.
    2. If you assign a category to a post, if the category translation already exists then it will be automatically assigned to post translation.

    Flags:
    1. The flag does not appear if there is no content in that language.
    2. This is possible if you use the template tag ‘pll_the_languages’ that you can put anywhere in your theme (not if you use the widget or the language switcher in a menu)
    Example:

    <ul><?php pll_the_languages(array('hide_if_no_translation' => 1));?></ul>

    3. There is not such possibility in Polylang. However, I believe taht this should be realizable with some code and external library. You can refer to: https://www.ads-software.com/support/topic/plugin-polylang-flags-in-dropdown-list

    – translation not available
    It is possible to include the language switcher inside the loop of your theme and so use flags dependent of the post.
    Example:

    <?php global $post_id;?>
    <ul><?php pll_the_languages(array('post_id' => $post_id));?></ul>

    Note that all option of the template tag pll_the_languages are described in the documentation.

    Thread Starter ian6

    (@ian6)

    What a fast reply! and you didn’t even miss one question!
    Thank you ??

    Most questions are clear ??

    Categories
    I’ll need all categories & subcategories in all languages.

    So, to connect English (default) & translations I have to do it through the “Language” dropdown when creating a new category, right?

    Because I have 3 levels of categories’ hierarchy, it looks like I better start from the top hierarchies going down to subcategories; I tried assigning a translation but it had no parent in its language… confusing for a newbie…
    (Does the “Parent” dropdown work differently than usual?)

    Flags
    I’m using them 2 times in a widget (header & aside), so they are visible all the time. Not a big problem, I’ll publish only the languages I have completely translated and I’ll add the new ones as the translators are ready.
    I hope I can add a new language later on the website, right?

    translation not available
    hmm, it seems safer to wait for all translations before publishing a post, users may be confused otherwise.

    Thank you very much until now, keep it up!

    Plugin Author Chouby

    (@chouby)

    Once the English category is created, you just have to click on the ‘+’ in the category list to add a new translation. It is better to start from the top of the hierarchy, thus when you translate a child, the correct parent should be proposed by default. NB: you may have to refresh your screen by clicking on the ‘categories’ menu on the left side of your screen as there is still some glitches when WordPress updates its screen with ajax.

    I hope I can add a new language later on the website, right?

    Yes of course.

    Thread Starter ian6

    (@ian6)

    Nice ??

    but is it also possible to (temporary) disable/park/delete languages?
    (e.g. if changes have to be made or the translator gets sick…)

    It would be handy as a feature (if it’s not there) and I’m wondering what the consequences can be if I delete a language some day (files left behind etc and how to clean up)

    Thank you very much ??

    Plugin Author Chouby

    (@chouby)

    There is currently no way to disable a language.

    If you delete it, you will loose all the links between the content and the language but the content will be kept intact. Individual posts and pages will even be accessible to the public (with the same permalink if you chose not to add the language code in url). Archives will no more be accessible.

    Thread Starter ian6

    (@ian6)

    OK, clear

    thanks a lot for this great plugin, I’ll have to make a final test with everything before going on air, but it looks fine up to now.

    I’m curious what you’re coming next up with ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[request] best practice workflow for new website’ is closed to new replies.