WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: qTranslate] WordPress 2.5 compatibility (34 posts)

  1. submarine
    Member
    Posted 6 years ago #

    Hi.

    Your plugin is great : I'm using it very often for my plugin Category icons.

    But I upgraded to WordPress 2.5 and I've found a little bug : when I activate your plugin, I'm not able to write posts anymore...

    http://wordpress.org/extend/plugins/qtranslate/

  2. csak
    Member
    Posted 6 years ago #

    Hi,

    I also use qTranslate 1.0.2 on my blog (http://bamako.secureweb.hu) and I also have the same problem. When I activate the plugin the content that is already multi-lingual shows up properly, but the editor doesn't show up at all. When I deactivate the plugin I get the raw data on the site with the [lang_xx] tags, and the editor works.

    As a quick workaround, so I could still post on the blog I modified the wp-content/plugins/qtranslate/qtranslate.php and commented the line
    add_filter('the_editor','qtrans_modifyRichEditor');
    on line 1651.

    This way I'm able to show my multi-lingual content as usual, and also I'm able to use the original editor. However to have multi-lingual content I have to add the [lang_xx] tags by hand to both the title and the content.

    I hope to have this issue resolved and the plugin will be upgraded to 2.5 compatible, because I liked the editor it had.

  3. amberbee
    Member
    Posted 6 years ago #

    I agree with submarine - great plugin!

    Thanks for the hack csak - that's good to know.

    I see this on the plugin page:

    Is WordPress 2.5 supported?
    No, it isn’t. I will be, but not in the close future. So if you want to use qTranslate, you will have to stick with 2.3.3 for a while.

    It would be great to have a rough idea when WordPress 2.5 will be supported.

    Many thanks

  4. akos.maroy
    Member
    Posted 6 years ago #

    we're just starting a project site, and not having WP 2.5 support means that we just have to live without this pluign :(

    would have been great though...

  5. gorilas
    Member
    Posted 6 years ago #

    It's a great plugin. Many people were waiting for. We'd love to use it for WP 2.5.

    Please don't make us wait for a long time.

    Many thanks

  6. RobV
    Member
    Posted 6 years ago #

    I second that; it all started off beautifully with this plugin and then I found it's not supported under 2.5. A real shame and it'll cost me a lot of extra work to manually create language-seperate-categories etc..
    I'll have a look what's causing the problem with the editor

  7. chineseleper
    Member
    Posted 6 years ago #

    hi guys,

    i'm been really busy with my exams lately. If you take a look at the code, the editor modification is basically all heavy javascript. WP 2.5 is much harder to code because it has a lot of new functions with I need to change manually. It's not like I don't want to use WP 2.5 on my site, I can't wait to upgrade, so all I can say to you guys is: please wait patiently.

    But if you guys like the plugin that much, consider supporting the plugin. I'd like more language to be included by default, but I don't speak that many languages perfectly. ;)

  8. RobV
    Member
    Posted 6 years ago #

    hi chinesleper,

    Thanks for the update and all the work you're putting into this. Imho qTranslate is _the best_ multi-lingual tool available for wordpress, so i'd love to use it.
    Can you elaborate on what exactly you'd need done from us in order to translate to a specific language?
    I have some experience with translations to/from Dutch if you need that language

    Robert

  9. chineseleper
    Member
    Posted 6 years ago #

    I need: (Example)
    Native Language Name (English)
    Locale (en_US)
    Not Available Message (Sorry, this entry is only available in %LANG:, : and %.)
    Time Format for strftime (%I:%M %p)
    Date Format for strftime (%A %B %e%q, %Y)
    Flag Image file name included with qTranslate (gb.png)

    I will mention who submitted which language in the source code. It'd be best if only native speakers submit data.

  10. RobV
    Member
    Posted 6 years ago #

    Dutch

    Native Language Name (Nederlands)
    Locale (nl_NL)
    Not Available Message (Onze verontschuldigingen, dit bericht is alleen beschikbaar in %LANG:, : en %.)
    Time Format for strftime (%H:%M)
    Date Format for strftime (%d/%m/%y)
    Flag Image file name included with qTranslate (nl.png)

  11. BoxheaD
    Member
    Posted 6 years ago #

    Finnish

    Native Language Name (Suomi)
    Locale (fi_FI)
    Not Available Message (Pahoittelemme, artikkeli on saatava vain %LANG:, : ja %. kielellä)
    Time Format for strftime (%H:%M)
    Date Format for strftime (%d/%m/%y)
    Flag Image file name included with qTranslate (fi.png)

  12. BoxheaD
    Member
    Posted 6 years ago #

    forgot to mention:

    I cannot wait qTranslate to support 2.5.x. The Plugin is pure gold!

  13. gari
    Member
    Posted 6 years ago #

    Basque

    Native Language Name (Euskara)
    Locale (eu_ES)
    Not Available Message (Barka, baina sarrera hau hizkuntza hauetan dago soilik: %LANG:, : eta %.)
    Time Format for strftime (%H:%M)
    Date Format for strftime (%y/%m/%d)
    Flag Image file name included with qTranslate (eu.png)

    Please note that "eu" is the ISO 639-1 Code for Basque, not for "Europe".
    Thanks for the great plugin, we're all waiting for the 2.5-compatible version!

  14. chineseleper
    Member
    Posted 6 years ago #

    I released a WP 2.5 compatible version, which should work just fine. Further testing is still needed though.

    @RobV
    In the next development version, I added Dutch. I'll need your real name for credits though.
    @BoxheaD
    Finish has already been included in older versions, please take a look in the qtranslate.php file to check if the content is correct.
    @gari
    As for Basque, I'll need the flag name for the flag included with qtranslate, not the iso code. eu.png is the european flag. I'll need your real name as well.

  15. rkantz
    Member
    Posted 6 years ago #

    Hi chineseleper,

    thanks for the immediate WP 2.5.1 support. Today I installed your qtranslate 1.1 update and it seems to run fine. Some more testing is required. Excuisite work! One hint: The french unavailable phrase sais:

    Désolé, cet article n´est pas disponible en .... but it should be:
    Désolé, cet article n´est que disponible en .... or
    Désolé, cet article est seulement disponible en .....

    Thanks again for the great work

    Roland

  16. bear3556
    Member
    Posted 6 years ago #

    I Chinesleper,
    Thanks for the great plugin. I am swedish and can give you the swedish words in order to integrate swedish in next update....

    Native Language Name (Svenska)
    Locale (sv SE)
    Not Available Message (Tyvärr är denna artikel enbart tillgänglig på %LANG:, : och %. )
    Time Format for strftime (%H:%M)
    Date Format for strftime (%d/%m/%y)
    Flag Image file name included with qTranslate (se.png)

    By the way, I have problem with the plugin. I cannot get the flags to show propably even though all links seems to be OK. Can you give me any hint for how to solve this?

    I am looking forwards to hearing from you within soon.

  17. zoom4
    Member
    Posted 6 years ago #

    I think I found a small bug.

    When you edit a post that has brakes inside (br) qTranslate doubles the brakes. When you save again, each line separated by brakes is turned into a paragraph.

  18. bear3556
    Member
    Posted 6 years ago #

    I have found some bugs.

    1) Recognition for title of Categories are lost.
    I run qt 1.1.0 on my blog http://www.japan-sweden.com and I run three languages....english..swedish and japanese.

    In one block (Categories) I enter title in three languages. It works perfekt for a while, but then when you add or modify any widgets, the setting is lost and only the default language is shown for the title "Categories". It still works to switch languages, and all other titles changes, but "Categories" remains set to the default language.

    2) Blogroll
    When you add a link, you enter the title of your choice in Manage/Links/Add links, with the code [lang_en]English text[/lang_en][lang_sv]Swedish text[/lang_sv][lang_ja]Japanese text[/lang_ja]. After saving your link, when you go to the live site, the title for your link just shows title in all language including the language tags....

    3) Calendar does not change language.
    On qt 1.0.3, which I have on http://www.japantea.se/blog the title "Calendar" in Calendar changes when you change the language. But with qt 1.1.0, language does not change in the calendar (compare with http://www.japan-sweden.com).

    4) Flags does not appear.
    On qt 1.0.3 flags appear in the language chooser. With Qt 1.1.0, I cannot get flags to appear. Please compare http://www.japantea.se/blog with http://www.japan-sweden.com

    This was my five cents.

    Best Regards,
    Bjorn

  19. morganfardo
    Member
    Posted 6 years ago #

    Hi everybody!

    does anybody know how to translate the home name in menu?

    it´s possible to call different sidebars according the language choosed? how?

    it´s possible to specify different tag for each language? how?

    best regards,

    Morgan

  20. morganfardo
    Member
    Posted 6 years ago #

    questions 1 and 2 were solved... now i´m trying to solve the TAG problem.

    does anybody knows?

  21. bear3556
    Member
    Posted 6 years ago #

    Hi morgan,
    For everones references, please post your solution that you found on how to solve the problems. There are propably more people that had similar problems as you. 
    
    Setting the language title for sidebars and blog title and home is not that difficult. Here is my solution for it...at least it works for me...
    
    Sidebars and blog title:
    When logged into the administrators area on your wp, insert the following code in the field for the title (you  find this in the user options settings) and for the sidebar (go to widgets)
    
    just surround the text you want inside the 'language' tags as follows:
    
    [lang_en]English text[/lang_en][lang_sv]Swedish text[/lang_sv][lang_ja]Japanese text[/lang_ja]
    
    lang_en = English, lang_sv = Swedish, etc 
    
    Please note that the tags need to be opened and closed properly, ie. [lang_xx] should be closed by [/lang_xx]
    
    For "Home", it is basically same code that you need to enter, but you need to insert this in the php-files. You edit header.php
    
    below <div class="navigators">
    
    You can insert a code like below:
    • <a href="<?php echo
      get_settings('home'); ?>"><?php echo qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage('[lang_en]Home[/lang_en][lang_sv]Hem[/lang_sv]
      [lang_ja]ホーム[/lang_ja]'); ?>
    • `

      Is there anyone that knows how you make the flags appear. Please see my site http://www.japan-sweden.com

      As you can see in the language bar to the top left, there is no flag icon....and I want the flag icons to show....if there is anyone that knows how to do this, please post your solution here.
      `

  22. morganfardo
    Member
    Posted 6 years ago #

  23. bear3556
    Member
    Posted 6 years ago #

    Hi Morganfardo,
    Thank you for your post. I have read the instructions on the developers home page, but I still do not understand what file to find this code in.....I do not find it in qtranslate.php nor in the other php-files that comes with qtranslate 1.1.0.

    It this code somewhere else?

    If you could give me some example or and information on what file to look in, maybe that would help me to understand.

    Thank you very much for your support.

    Best Regards,
    Beanie3556

  24. morganfardo
    Member
    Posted 6 years ago #

    i just add this <?php echo qtrans_generateLanguageSelectCode('image'); ?> in my header theme file.

    in your case you should add it in the sidebar...

  25. morganfardo
    Member
    Posted 6 years ago #

    does anybody knows why my flags is all together? before they hava a space between them, and I did´t change any code in the qtranslate file.

  26. Follow the rabbit
    Member
    Posted 6 years ago #

    First off, thank you Qian for a truly amazing plugin!
    I'm using it with WP 2.5.1 and it works like a charm... except for one thing.

    Everytime I specify a custom permalink structure i.e /%postname%, I get a 404 error. I've managed to make the default language work by using index.php/%postname% as permalink structure but still, the 404 error page apears when i switch language.

    Is this a common problem or is it just my incompetence? I've even tried it on different hosts but no change. Any clues?

    /Chris

  27. bear3556
    Member
    Posted 6 years ago #

    Hi Morganfardo,

    Thanks for the advice. Just to confirm before I try....

    so you mean the following code should be placed in my sidebar.php

    <?php echo qtrans_generateLanguageSelectCode('image'); ?>

    or should it be

    <?php echo qtrans_generateLanguageSelectCode('both'); ?>

    in order to show both flag and text?

    Where in the sidebar.php should it be placed?

  28. bear3556
    Member
    Posted 6 years ago #

    Hello Morganfardo and everybody else,
    I have managed to get the flags appear in the sidebar but not within the qtranslate language chooser object.

    Please see http://www.japan-sweden.com

    I guess, the trick is to find where the qtranslate language chooser object is and then insert same code inside.

    For this I need find where this object is...

    Does anyone know where to find it? Any suggestion or ideas are highly appreciated.

  29. bear3556
    Member
    Posted 6 years ago #

    Dear Morganfardo,
    I have solved the flag-problem. I could not find where to insert the code in the sidebar, so I altered the code in qtranslate_wigdet.php

    Maybe this is not how it should be, but at least it works for me.

    If anyone want to see the code that I altered, please post a request and I will post the code.

    I also want to apologize on beforehand to the creator of qtranslate for altering the core code without prior permission. I tried to contact to receive your help on how to solve the issue in a conventional way. As I did not get any response, I needed to manipulate the code in a more inconventional way.

    Best Regards,
    B

  30. vean
    Member
    Posted 6 years ago #

    Hello,

    I have just one questions/problem:

    I need to use some tags like [lang_xyz][/lang_xyz] inside my single.php file. Is there some kind of code for something like that?

    I need this because I have some Custom Fields and need to get them translated in template file.

    Here is example what I try but that doesn't work:
    <p>[lang_en]<strong>English text</strong>[/lang_en] [lang_de]<strong>Deutsch text</strong>[/lang_de]<?php meta(ad_xyz); ?></p>

    Thanks for any help

Topic Closed

This topic has been closed to new replies.

About this Topic