CodeIgniter 4 - How to use Language - Part 14

CodeIgniter 4 - How to use Language - Part 14


CodeIgniter 4 - How to use Language - Part 14

Describe how to use Language in CodeIgniter 4, a language function can translate any language you’re set inside the FOLDER, such as multi langugae

Recommended:
Part 3 - How to pass one or more variables to views page
   • CodeIgniter 4  - How to pass one or m…  

Part 5 - How to remove public from URL at localhost
   • CodeIgniter 4 - How to remove public …  

Part 6 - How to route a page
   • CodeIgniter 4 - How to routes a page …  

Part 12 - How to use BaseController
   • CodeIgniter 4 - How to use BaseContro…  

Part 13 - How to use route segment
   • CodeIgniter 4 - How to use route segm…  

Latest Update
https://simpletine.com/coding


Content

0 -> Today covered about how to use language function
10.586 -> Do some simple setup
16.586 -> Create a new Language file Mycustom.php
33.245 -> For here we just need a php open tag and return as array
44.935 -> Create a new page
58.942 -> Add new routing
71.956 -> Create a new function
80.91 -> $this->homepage() is a function inside BaseController
122.103 -> Do a simple setup of a page
182.114 -> Now we copy a new folder of en folder inside Language folder and rename to the language slug you want to be
212.692 -> All the langugae array key must match to each other
300.065 -> Let's translate the language using google translate
359.968 -> The lang('{YOUR FILE NAME}.{YOUR ARRAY KEY NAME}', [] , '{YOUR LANGUAGE FOLDER NAME}')
445.17 -> Thanks for watching, lesson end
447.17 -> The last of next we will cover how to declare a constant variable
449.17 -> Stay tune and after that we will start a tutorial lesson in HMVC structure
452.412 -> See you

Source: https://www.youtube.com/watch?v=fxz1w5hpb1c