• Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Log In
  • Get Easy Forms
  • Home
  • Blog
  • Documentation
  • FAQ
    • Pre-Sales Questions
  • Log In
  • Get Easy Forms
home/Knowledge Base/Developers "How To's"/How to Change the Default Language after a new registration
Popular Search:Getting Started

How to Change the Default Language after a new registration

336 views 8 December 21, 2017 Updated on October 31, 2023 admin

To change the User’s Default Language after a new registration (English, by default), you need to edit the following file:

– controllers/UserController.php – Line 332 

For example, if you want the default language after a new registration to be Portuguese, you need to replace this line:

$profile->language = !empty(Yii::$app->language) ? Yii::$app->language : 'en-US'

By:

$profile->language = 'pt-PT'

Note: ‘pt-PT’ must be an available language in the application, that is, the translation file must be included in the @app/messages folder.

And that’s it!

Was this helpful?

8 Yes  1 No
Related Articles
  • Customize the Landing Page, Login Page and Application design
  • How to compare two fields to pass the validation (jQuery Validation)
  • How can I add custom css styles to radio buttons?
  • How To remove “For more details please go here” from the email notifications
  • How to set the PHP CLI path in the application
  • How To Change the Login Page Slogan

Didn't find your answer? Contact Us

Developers "How To's"
  • How to Change the Default Language after a new registration
  • Customize the Landing Page, Login Page and Application design
  • How to compare two fields to pass the validation (jQuery Validation)
  • How can I add custom css styles to radio buttons?
  • How To remove “For more details please go here” from the email notifications
  • How to set the PHP CLI path in the application
View All 17  
Popular Articles
  • How to Show/Hide HTML elements with Conditional Rules
  • How to enable / disable DEBUG mode
  • How to Submit a Form as WhatsApp Message
  • How to update Form Stats from the command line
  • How to compare two fields to pass the validation (jQuery Validation)
KB Categories
  • Add-Ons
  • Advanced Techniques
  • Common Issues & Troubleshooting
  • Developers "How To's"
  • Getting Started
  • How To

  How To Change the Login Page Slogan

How To Add A Tracking Code to your Forms  

About Easy Forms

With Easy Forms you can create unlimited web forms and most importantly the complete management of them without paying monthly fees

Resources
  • Knowledge Base
  • Documentation
  • Pre-sales Questions
  • Blog
Useful Help Links
  • Get Easy Forms
  • Live Demo
  • License Terms
  • Contact Us
Frequent Visit Links
  • Pre-Sales Questions
  • System Requirements
  • Installing Easy Forms
  • Upgrading Easy Forms
  • Privacy Policy
  • © 2015 - 2024 Baluart EIRL. All Rights Reserved.

Popular Search:Getting Started