Multilingual Issues with WordPress - php

I am trying to set up one WordPress site that allows the user to choose what language they want to see their content in. I am wondering how I would go about showing navigation menus in the language of their choice. Where would I be able to have multiple values for a single menu item (one per language) in the administration area and how would WordPress know which one of these to use?
Are there plugins which allow for this? If not, do you have any suggestions for what I can do?

What you're talking about is internationalization. As a developer you would use the Wordpress Gettext libraries. You should check out the official Wordpress developer reference on the subject the implementation details and use of these libraries.

Related

Multilingual sites with different domains

I want to create a multilingual site and there are translators. I want to create 5 websites in different languages and the same contents and the top pages have different domains. There is a wordpress plugin of translation and flags are displayed on the toppages but if I click on a flag I jump to a subdomain. But I want to jump to another toppage. If I click on a flag on a blog page, I want to jump to a blog page of a different site. How can I do that? Please help me.
I want to make 5 websites because if google find a website with a toppage written in Japanese, google thinks it's a Japanese website and the rank on Japanese google gets higher. Likewise, if google finds a site with a toppage written in French, the rank on French google gets higher.
You could also only use sub-directories (google best practice) and easily create 1 website available in 5 languages with Weglot plugin https://weglot.com/wordpress-integration
I'll suggest you to do the following things...........
1. Install wordpress on 5 domain and connect to single database.and then use translation plugin.
Or,
Buy and use https://wpml.org/. It gives you options to use different domains for every languages.
You have to create your own menu and not rely on the widget from the plugin you are using. The widget provided with your multilingual plugin wil have links like : www.example.com/fr & www.example.com/en . Or if you use WPML you have the option to link to different domains.
But i have to say that having different sites for all languages is not a good idea. Google will ignore websites with the same content. Google will think those sites are duplicates and your search results will suffer greatly. You have a setting in most multilingual plugins to auto detect your language based on your browser. This is far more superior imo than having a lot of different sites.

Multi Language WordPress website with 2 installs advice

I have a potential client who wants a HTML website migrated to WordPress, the current website is 100 pages; 50 English and 50 French of the same content. There are several reasons for moving to WordPress, and having an English and French version of the same site instead of just a translator plugin. So enough back story, my real questions is...
How do I deal with running 2 Wordpress websites (one English the other French) when a visitor wants to change a specific page from English to French for example? and avoid going back to the home page when requesting to change language?
If a visitor is viewing a specific page in English but wants to view it in French, I do not want the Language selection button to take them to the home page really. How can I do this in WordPress; with 2 separate installs so when you click the language button the page just changes to the requested language?
I hope someone can help me, Thank you.
Luke
No need to make 2 separate websites . Just use qTranslate.
It is hands down the best solution for multilingual wordpress installation, and I myself have used it with over 100 multilingual sites
The management and maintenance would be much easier , you will have a control over all aspects of the multilingual behavior and you could SHARE resources ( like scripts, images , themes etc ) .
With this plugin you can choose if you want to have a URL like :
http://www.mysite.com/fr and http://www.mysite.com/en
http://fr.mysite.com and http://en.mysite.com
http://www.mysite.com/?lang=fr and http://www.mysite.com/?lang=en
All your users will see is a small flags based or menu based language switcher .
The Admin screens easily share languages , switching, and content handling . Even switching the admin area language itself is a breeze .
You even have control over local SEO.
Every aspect from title to media to custom fields is also supported . Basically you have duplicate fields for title content etc . The best way to understand is just install one time and start to use .
you will get the idea in a second .
It has a very extensive hooks base and custom functions that allow you to easily do virtually everything !
Example of a working ( old ) wp install with qTranslate supporting 5 languages can be found here
P.s.
I am in no way affiliated with the author of this totally free plugin - But I do admire the work he has made and the techniques used in his code . If you end up using it - a small token of appreciation for the author would surely be appreciated by him .
Edit I after comment.
Grammar or the correctness of the translation is irrelevant .
qtranslate is not an automated translation service / plugin
It does not really translate your site , but gives you the tools to do so in terms of UI, accessibility, functions and hooks.
The actual content is translated by YOU. No automatic content generation ( unless you specifically want one )
It actually does create 2 different websites ( in a sense ) but using the same install, core files, resources etc ..
Until you will not try and use it , you will not fully understand how it works.
Wordpress Multisite Language Switcher is the way to go.
Every language version gets its own Wordpress blog
You get a "Network Root" where admin tasks spanning all two blogs are done
Posts/pages can be associated between the two language sites
This is like Wordpress.com hosted blogs.
I use this plugin on a blog successfuly. I worried about routing some time: which URL should be canonical? foo.com/bar or foo.com/en/bar? This became an issue when my client wanted to install a separate .de domain instead of using the virtual sub folder /de/

Jooma 3.1 Templating - Tutorials/Documentation?

I am to develop a Joomla 3.1 Template. The template should consist of a static header and footer, as well as multiple pages, all of which need their own styling. Further, the client would like to be able to add 'events' to a specific listings page. Customers should be able to book said events via a simple form.
Thanks to some really basic guides, I have the header and footer down, as well as some simple template options. However, I am now running into some problems;
How would I approach the content section? Ideally, a page would consist of multiple, editable sections. The client would be able to edit said sections in the backend without having to deal with or accidentally changing the layout or styling of the page itself. Since there are multiple pages, I obviously need different views/containers for each of them. Is this possible and if so, how?
Another problem is the documentation, which I found to be very lacking. Even google only got me so far (basic structure, index.php, templateDetails.xml and so forth). Are there any other resources I may have missed or do I really need to refer to other templates (most of which, obviously, aren't free) and use var_dump all the time?
Writing this, I just realized that I could theoretically build a template for every single page but ... that surely can't be right, right?
If someone could provide a basic outline or at least tell me how you personally would tackle a project like this, it'd be very much appreciated.
All the best
Edit;
I just found some video tutorials but since my bandwidth is limited, I cannot watch them. Please take this into account when writing an answer. Thanks.
I have only one word for you :
GANTRY :D
gantry-framework.org
Joomla revolves around menu items that point to components. For each menu item, you can assign modules to different positions within the template to create a unique page. You only need one template if you really understand how Joomla templating works.
Joomla has very good documentation here - http://docs.joomla.org/
Few things to remember -
Component - this is a type of content or app of sorts. A component will define what content is and how it is displayed. This can be anything from blog articles and categories to an event registration system to a message board or social network. Menu items generally will point to a view in a component.
Modules - these are used to display additional content around the component output. This can be a menu, or a login box, or a weather widget or anything else you can come up with. Modules can be assigned to or excluded from the various menu items on your site.
Plugin - plugins are used to change the final output on a site. They can be used to insert Youtube videos, or forms within content, or even to alter the meta tags on a page.
Understanding how extensions work is an important first step. Once you get how those work, learning how templates and template overrides work will give you most of what you need to know to build a basic Joomla site.

edit magento navigation without coding

I just recently started working with a Magento site, and so far I'm really not liking it. I need to remove a couple links from the main navigation, but I can't seem to find the option for it. I've googled it numerous times, and all I see are examples for coding the navigation. My question is, can you edit the site navigation like you can with say wordpress? Seeing how it's a cms I'd imagine the user should be able to make changes to the navigation using some type of interface, and without having to pull the files from the server and edit them.
Also just out of curiosity, for anyone experienced with Magento would you say it's a good choice for a cms? I've heard of it before, but haven't seen many sites that use it.
No!, so you have three options here.
Learn how to extend the navigation with the 100's of tutorials out there, it is really not that hard, assuming you have a theme you just have to edit app/design/frontend/[theme]/default/template/page/html/topmenu.phtml
Get an extension to do it for you.
Hire a developer to do it for you, we create a static block with installer for the html which make it slightly more user friendly to update in the future.
Stackoverflow is a bad place to ask questions like this, it is aimed at programmers and doing such a procedure is rudimentary stuff, I really hope you are a client trying to be cheap rather than someone who claims they can run this site.
Edit: The cms features are ok but you need to be able to code to set them all up so the end user can make the changes with WYSIWYG.
If you don't want to code for navigation then you can do below things
1) Create category and then Display Settings=>Display Mode=>static block only and Display Settings=>CMS Block=>static block name. In static block u can include in page url or custom page
2)You need to hire developer
If you're using Magento and have an integrated WordPress blog, it's possible to design a completely custom menu in the WordPress Admin using the menu builder. You have complete control over what menu items you want and the hierarchy of each item.
To get this to work, you need to integrate your WordPress blog using WordPress Integration in full integration mode. Your Magento template also has to be using the default Topmenu block.

Sugesstion for a multilingual site using Joomla

I want to create a multilingual site using Joomla. The site will be in English and Hindi. Along with the static pages the Administrator should be able to post his research may be as a blog and a registered member can read the post and add his comments and/or questions. The administrator will then reply the comment and/or the question.
I'm new to Joomla and could not figure out how to start with this project. I must use all the extensions which are free to use. Is there any option for this or Should I create my own blogging system ? I need to set up donation functionality as well.
My advise will be to use one of this component to set up the admin blog : http://extensions.joomla.org/extensions/authoring-a-content/blog
And here is a module for the donation : http://extensions.joomla.org/extensions/e-commerce/donations
Do not create your own blogging system, you can easly achieve your project with Joomla!
I would recommend using K2 as a replacement for the built in Joomla articles and categories. It has a ton of features that would allow you to make a blog and manage all of your other content pages as well all within one component. It is also a lot more flexible than a component that is specifically for blogging so you can set it up to suite your needs.
You will probably want to install a multilingual component as well. For 1.7/2.5 you will need to use FaLang unless you want to wait for JoomFish to come out for 2.5.
K2 - http://extensions.joomla.org/extensions/authoring-a-content/content-construction/8061
FaLang - http://extensions.joomla.org/extensions/languages/multi-lingual-content/18210
JoomFish - http://extensions.joomla.org/extensions/languages/multi-lingual-content/460

Categories