[SOLVED] New decimal field: multilanguage?

4 years 7 months ago - 4 years 7 months ago #314145 by ericmuc
First thank you for this new field! I painfully missed that and now I am very happy to have this!

But how can I use this in a multilanguage environment?

You wrote: "In addition to this you've display formatting options to control how this field will display as a number on the users profile. You can optionally specify a thousands and decimal separator with both supporting language strings for localized formats. You'll find these new parameters under the Parameters > Display tab of your decimal fields as shown below."

What I have to do?

I added (for example for GERMAN) a language string (UE_THOUSANDS_SEP) in the field "Thousands Separator" and added him in the language override file ('UE_THOUSANDS_SEP' => '.'), but only the name of the language string is shown in the field, not the content.

Please Log in to join the conversation.

4 years 7 months ago #314146 by krileon
Replied by krileon on topic New decimal field: multilanguage?
Both the thousands and decimal separator parameters are passed through language API. Using a language string in both or either then using a language override to translate to a single character supported by PHPs number_format function should work fine (e.g. thousands separator set to . or ,). I've retested this to confirm it's working fine; ensure your language is properly loaded. Recommend using the language overrides interface shown below instead of manually editing the file.

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.
The following user(s) said Thank You: ericmuc

Please Log in to join the conversation.

4 years 7 months ago #314147 by ericmuc
Replied by ericmuc on topic New decimal field: multilanguage?
oh, yes, now it works!
The following user(s) said Thank You: krileon

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.209 seconds

Facebook Twitter LinkedIn