Skip to Content Skip to Menu

Multi-lingual dropdown list of countries

7 years 3 weeks ago #293675 by rkreijveld
Multi-lingual dropdown list of countries was created by rkreijveld
We are developing a multi-lingual community-builder based website. For addresses we use a field of type Query Drop Down (Single Select) that loads a list of countries from the database.
Code:
SELECT `iso`, `country` FROM `country_info` ORDER BY country
How can I make this coutry select list multilingual?
Should I use some kind of [cb:if] construction for it?

Thanks!

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 68609
  • Thanks: 9108
  • Karma: 1434
7 years 3 weeks ago #293677 by krileon
Replied by krileon on topic Multi-lingual dropdown list of countries
Each option is passed through CB language translations. So you'll need to add language keys and strings for each country. You can do this using the override functionality of your CB language plugins. See the below on how to use language overrides.

www.joomlapolis.com/blog/kyle/18701-language-overrides-have-arrived


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

7 years 3 weeks ago #293678 by rkreijveld
Replied by rkreijveld on topic Multi-lingual dropdown list of countries
Oh hell... :-(

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 68609
  • Thanks: 9108
  • Karma: 1434
7 years 3 weeks ago #293687 by krileon
Replied by krileon on topic Multi-lingual dropdown list of countries
Translations for most might already be done. Check out the CBSubs language plugins and CBSubs has a countries database table and likely translations for the countries used in it. Create 1 language override so CB generates the overrides.php file in your CB language plugin then copy and paste those strings over form the CBSubs language plugin.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: rkreijveld

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum

Facebook Twitter LinkedIn