Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Translation question

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 6 months ago #224778 by nijan
Translation question was created by nijan
Hello,

I would like to implement a multilanguage site (French - Dutch and English).
One of my registration tab is the language.

French version choices are : Français, Anglais, Néerlandais
English version choices are : French, English, Dutch
...

When user updates his profile the value saved in the db will be Français (if french site version) or French (if english site version).

I see a problem with the search criteria. The idea is to find the member for Français AND French but it probably will depend of the current site language. Do you see what I mean ?

Thanks !

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #224818 by krileon
Replied by krileon on topic Translation question
Is this a custom field you've created or the language selector provided by the user params field? If it's a custom field then you need to use defines for the values (e.g. _UE_ENGLISH).


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.

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 6 months ago #224830 by nijan
Replied by nijan on topic Translation question
It is not a custom field. It is a multiple checkbox field.
I used _UE variable.

Let's take an example :

User 1 uses french version and saves his profile with Country "Angleterre" --> _UE_COUNTRY01 in french version.

User 2 uses english version and saves his profile wiht Country "England" --> _UE_COUNTRY01 in english version.

If I search all member comming from "Angleterre" in french version can I find User 1 and User 2 ? Same question if I search "England" in english version ?

Thanks !

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #224833 by krileon
Replied by krileon on topic Translation question
How are you searching the field? On a CB Userlist it provides them a field to select the checkbox values they want to search and they don't have to type anything in. If using Joomla search with CB Search Bot then they need to supply the actual field value (I believe translated values will work, but I can't recall for sure).


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.

  • nijan
  • nijan
  • OFFLINE
  • Posts: 108
  • Thanks: 1
  • Karma: 0
11 years 6 months ago #224838 by nijan
Replied by nijan on topic Translation question
On a CB Userlist. So it should work.
I'll test it and come back to you.

Another point : Is it possible to show / hide a field based on the current language site ? Or maybe the best is to create a registration form per language and to attribute it a specific language ?

Cheers !

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

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
11 years 6 months ago #224852 by krileon
Replied by krileon on topic Translation question

Is it possible to show / hide a field based on the current language site ?

Yes, use Conditional Self and select Custom Value as the field. Now supply [cb:config param="lang" /] as the Value then select Equal To as the Operator then select en-GB as the next Value; this for example conditions off the language output from Joomla against the value you input. You may want to output [cb:config param="lang" /] to a delimiter field to ensure you supply the correct value to condition with.

Or maybe the best is to create a registration form per language and to attribute it a specific language ?

I don't know why you even need per language fields or tabs as you can translate everything in CB.


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.

Moderators: beatnantkrileon
Powered by Kunena Forum