Plugin YammYamm (Wordpress)

Big update ! A few bug corrections and now widget compatible !

Download : Plugin YammYamm 0.6 for Wordpress

YammYamm (yet another multilingual manager x2). You create a top category and a top level page for each language. In the options panel, you set the languages. When you create an article, make it under the language top category. When you create a page, make it under the language top page. Then you call the appropriate functions in your template for language selection and navigation display. That's it.

Usage :

  1. Unzip then upload the yammyamm folder in the "plugins" folder
  2. Create a top-level category for each language.
    Exemple : "Français" and "English".
  3. Create a top-level page for each language.
    Exemple : "Accueil" and "Welcome".
  4. Go to your space, then "Manage", then "YammYamm".
  5. For each language do something like this :
  6. Go to your space, then "Options", then "YammYamm" and set your options
  7. Then you must tell your template to use YammYamm :

There are 2 files to edit:

  1. sidebar.php :

    Edit your sidebar.php then call the function "yy_menu($args_page,$args_blog);" instead of "wp_list_cats" and/or "wp_list_pages" like this :

    <ul>

    <?php if(function_exists('yy_menu')) yy_menu('sort_column=menu_order&title_li=','title_li=&hierarchical=1'); ?>

    </ul>

    Explanation :

    The function will display the menu (with "ul/li" tags) automagically depending on whether the visitor is on a page or a post, and will guess the language too.

    1. The first argument is equivalent to the internal fonction "wp_list_pages"
    2. The second argument is equivalent to the internal fonction "wp_list_cats"

    Update : To show always and only the blog categories, dont fill the "$args_page" argument, and do the contrary to show only the pages :

    <ul>

    <?php if(function_exists('yy_menu')) yy_menu('','title_li=&hierarchical=1'); ?>

    </ul>

  2. header.php :
    1. At the very beginning add :

      <?php if(function_exists('yy_redirect')) yy_redirect(); ?>

      It will detect the language from the browser and redirect to the home page og this language.

      Update : In the options panel, you can choose whether to set the top page or the top category as the home of your website.

    2. When you want to add a language selection menu :

      <?php if(function_exists('yy_lang_menu')) yy_lang_menu("lang_menu"); ?>

      This will output :

      <li id="fr_FR" class="lang_menu current_page_item">

      <a href="http://www.jide.fr/francais/">

      <span>francais</span>

      </a>

      </li>

      (etc...)

One of the biggest part of this update is that there is now a sidepanel in the admin page :

When you write a blog post, if no langu_age is set for that post, all the categories will be shown. If you set a language, only the sub-categories will display :


That is the same for the pages. If no language is set, all the pages will be shown. If you choose a language, only the children pages will display :


Roadmap :

  • bug of "ALTER TABLE"
  • automatise categories and pages creation for languages
  • automatise languages creation + flags
  • make shortcuts to create modify etc in the sidepanel
  • link posts and pages in different languages
  • link categories
  • use options rather than a table
  • handle rss correctly with languages
  • make compatible with widgets

Download : Plugin YammYamm 0.6 for Wordpress

I use this plugin , thanks

I use this plugin , thanks for info.

How to choose right degree: social work degree or online nursing programs?

mobiliario

YammYamm 0.6 Download not working

please, fix the problem.

Смешная история

Да уж. По поводу коментариев - навеяла на меня где-то услышанная фраза:
Только мы знаем, что такое верхняя боковушка возле туалета в поезде Туапсе-Владивосток....

@Thomas : YammYamm has been

@Thomas : YammYamm has been released a long time ago and i did not test it with lastest versions of wordpress, so i am not sure whether it works well with 2.7 or not. API changes fast with wordpress... It may work or not, sorry i cannot help more.

Language selection is

Language selection is available for new posts, but not for new pages. What am I doing wrong?

I have another issue: I have

I have another issue: I have categories (e.g. EN and FR) and I tried to create a "Freeware" category for both languages. However, a category must be unique in Wordpress, which means that I can't create two different "Freeware" categories. Especially for fixed terms and abbreviations like "HTML" or "WordPress" this is an issue, but also if you have the same words in two different languages, e.g. "modern" is the same in English and German, "hallo" is the same in French and German.

A bug maybe: I have created

A bug maybe: I have created categories as told, but YammYamm didn't let me choose the top level categories. Just categories were available where acticles have been published for. Example: I have created two top level categories (EN and FR). I have created sub-categories for each language and posted some articles already (existing installation). YammYamm now won't let me select EN nor FR.

I have three points to ask or

I have three points to ask or mention today:

1.) I could not find YammYamm using the plugin search feature of WordPress 2.7.1. My search term is "YammYamm".

2.) I downloaded YammYamm 0.6 but when I install it, it says version 0.5.

3.) Also unclear: do I need to publish the top level pages or is it enough to have drafts only?

[...] Nie najgorszym, prostym

[...] Nie najgorszym, prostym i w miarę bezproblemowym rozwiązaniem jest plugin YammYamm. [...]

Hello! Very Interesting

Hello!

Very Interesting post! Thank you for such interesting resource!

PS: Sorry for my bad english, I'v just started to learn this language ;)

See you!

Your, Raiul Baztepo

Great Plugin! Wordpres is my

Great Plugin! Wordpres is my favorite CMS

Hi Jide, first thanks for

Hi Jide,

first thanks for this great plugin, i'm having small problem with your plugin, and tryed to download ver 0.6 but in zip is still ver 0.5.

I have bug with categories, i dont want to show them, just want to show pages and i followed your procedure for that but plugin still shows categories, even i add only cdoe for pages.

Thanks for your answer

Thank you for the spent time.

Thank you for the spent time. Very useful information

@Fran6 Many time even you

@Fran6

Many time even you are not in USA your windows setup is with English language (like mine), and your browser will always use english language for start. But if you instal redirect plugin you can do small tweak. You just add redirection www.website.com/ to www.website.com/parentlangpage/welcomepage. So, this will help you to choose which language will be main.

Please How install language

Please

How install language for theme

[...] J’ai donc commencé avec

[...] J’ai donc commencé avec YammYamm, plugin français et dont j’avais gardé un bon souvenir. Déjà, première surprise, le plugin n’a pas évolué depuis bien longtemps. Je l’essaie donc et très vite, j’accroche. Il est simple d’utilisation, très intuitif… Sauf que je n’arrive pas à afficher certaines choses sous une certaine configuration: notamment les articles en choisissant une page statique comme page d’accueil. Donc, difficile d’aller plus loin sans mes articles !! [...]

Hi Jide, I have installed

Hi Jide, I have installed your great plugin but I still have a problem, I cannot change the "good language home"... I don't want it to work. I would like to set it up to "english"... I could I do that ? Thx !

[...] Plugin за Wordpress

[...] Plugin за Wordpress разрешаващ воденето на блог на 2 езика jide.fr » Plugin YammYamm (Wordpress) Wordpress Plugin MakerThis plugin is made for developers or Wordpress users who love Cut and Paste and hate FTP Wordpress Plugin Maker ...Jaiku Plugin for WordPressJaiku Plugin for WordPress has two features: You can display your latest Jaiku presence on your WordPress blog. Note the Doug on Jaiku section in my sidebar. You can actually post to Jaiku from your WordPress blog! Jaiku Plugin for WordPress | The Marketing Technology Blog ...Get The Image WordPress PluginGet The Image plugin will allow you to have full control over images displayed, or it takes the power of WordPress and uses its image cropping methods. This makes for a much smaller file size. Right now, the file is under 6kb. Get The Image WordPress Plugin... [...]

I'm using Wordpress 2.6.1.

I'm using Wordpress 2.6.1. It kind of works, but I don't see the admin sidepanel, and both languages options show at the top

As I recommended in the Freshy2 comments, a forum would be great if you want users of your theme to help each other out!

thx for the great stuff. Keep

thx for the great stuff. Keep up your nice work!

3qThank's for greate post.5t

3qThank's for greate post.5t I compleatly disagree with last post . gan

паркет и ламинат 0c

8mThank's for greate post.6q

8mThank's for greate post.6q I compleatly disagree with last post . kno

паркет и ламинат 2h

8qGood idea.3m I compleatly

8qGood idea.3m I compleatly disagree with last post . ebm

паркет 0n

1eThank's for greate post.2r

1eThank's for greate post.2r I compleatly disagree with last post . gyu

ламинат купить 0p

9oI'll thingk about it.9g I

9oI'll thingk about it.9g I compleatly agree with last post. xdi

ламинат 8e

5mI'll thingk about it.1t I

5mI'll thingk about it.1t I compleatly agree with last post. xkq

ламинат и паркет 3v

9jI'll thingk about it.3a I

9jI'll thingk about it.3a I compleatly disagree with last post . dyz

ламинированный паркет 2u

1wThank's for greate post.1e

1wThank's for greate post.1e I compleatly disagree with last post . pnp

купить ламинат 6s

3oThank's.3n I compleatly

3oThank's.3n I compleatly disagree with last post . viv

купить ламинат 6f

6tI'll thingk about it.2d I

6tI'll thingk about it.2d I compleatly agree with last post. kfs

ламинат 5c

8fI'll thingk about it.6n I

8fI'll thingk about it.6n I compleatly agree with last post. sxh

паркет и ламинат 5p

9lI'll thingk about it.6h I

9lI'll thingk about it.6h I compleatly agree with last post. zgy

ламинат купить 5e

7cI'll thingk about it.9u I

7cI'll thingk about it.9u I compleatly agree with last post. lxi

ламинат купить 8v

2uI'll thingk about it.4r I

2uI'll thingk about it.4r I compleatly agree with last post. auv

паркет и ламинат 9x

1uThank's.0g I compleatly

1uThank's.0g I compleatly disagree with last post . sbp

купить ламинат 4w

4oGood idea.3f I compleatly

4oGood idea.3f I compleatly agree with last post. lfw

паркет и ламинат 2e

6cI'll thingk about it.3z I

6cI'll thingk about it.3z I compleatly agree with last post. cqn

купить ламинат 3g

0tThank's for greate post.1d

0tThank's for greate post.1d I compleatly agree with last post. wpp

ламинированный паркет 4s

0kGood idea.0j I compleatly

0kGood idea.0j I compleatly agree with last post. wmf

ламинированный паркет 5f

9wThank's.2z I compleatly

9wThank's.2z I compleatly disagree with last post . yeo

ламинированный паркет 4t

2yI'll thingk about it.1p I

2yI'll thingk about it.1p I compleatly agree with last post. aea

паркет 2h

0xThank's.5u I compleatly

0xThank's.5u I compleatly disagree with last post . bsl

ламинированный паркет 2b

8aGood idea.4i I compleatly

8aGood idea.4i I compleatly disagree with last post . nmz

ламинат 7l

2gThank's.3v I compleatly

2gThank's.3v I compleatly agree with last post. hzz

купить ламинат 9t

6jThank's.5s I compleatly

6jThank's.5s I compleatly disagree with last post . axd

ламинат купить 3p

1lGood idea.2t I compleatly

1lGood idea.2t I compleatly agree with last post. hxp

ламинат купить 1g

7wI'll thingk about it.8t I

7wI'll thingk about it.8t I compleatly agree with last post. gvs

ламинированный паркет 8p

8iGood idea.6g I compleatly

8iGood idea.6g I compleatly agree with last post. klh

ламинат купить 3x

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options