WordPress Plugin Development Tutorial - Adding languages and Internationalization - Pricode

  Рет қаралды 3,290

Pricode

Pricode

Күн бұрын

In this video, following our WordPress Plugin tutorial , let's add language translations to our plugin using POEDIT, xgettext and WP-CLI.
I would like to know your opinions, leave a comment and click on the like button as many times as you can.
Stay tuned to the channel for more useful content.
//Github
github.com/Pri...
//Pricode Website
pricode.io
//Twitter
/ pricoders
//Instagram
/ aldinomad
#wordpress #wordpresstutorial #developers #development
Music by Ru Frequence / moon

Пікірлер: 20
@Pricoders
@Pricoders 2 жыл бұрын
Any questions you have just leave a comment, I will be pleased to listen and help all of you!
@onelook1870
@onelook1870 10 ай бұрын
Thanks for the tutorial
@Pricoders
@Pricoders 10 ай бұрын
Our pleasure
@onelook1870
@onelook1870 10 ай бұрын
@@Pricoders Did my first translation watching the tutorial. Thank you!
@BakiGoxhaj
@BakiGoxhaj 8 ай бұрын
Great tutorial, well done! You could try to keep a faster pace - it would help I think.
@Pricoders
@Pricoders 8 ай бұрын
I am doing my best, I hope the upcoming times I can really add a good pace. Thanks for the comment!
@accuratecalcs
@accuratecalcs 3 ай бұрын
You can control the speed of delivery under settings for any KZbin video. I suggest you try it. 🙂
@Pricoders
@Pricoders 3 ай бұрын
thanks!!
@NagatoKamiPain
@NagatoKamiPain Жыл бұрын
how can you translate JS file that have hardcoded values in it? for example line 51 (lets pretend you cant use php tag)
@Pricoders
@Pricoders Жыл бұрын
You can look on Google "JS unobfuscation"
@Pricoders
@Pricoders Жыл бұрын
For some reason I totally misunderstood the question, the way to do this is either setup the value by php or by i18n.js file
@hieutongdang3149
@hieutongdang3149 Жыл бұрын
With this way can I translate the data from the database out?
@Pricoders
@Pricoders Жыл бұрын
no, this is a cached laguange translation
@hieutongdang3149
@hieutongdang3149 Жыл бұрын
@@Pricoders Is there a way to translate language data stored in phpmyadmin?
@BasDeBom
@BasDeBom 2 жыл бұрын
Thanks man! I used your vid to translate a plugin and it works. Side note: I did get a fatal error while creating a .pot file due to memory shortage. I fixed that by increasing the PHP_MEMORY in the php.ini file from WP_CLI. It could be helpful for other programmers. Thanks again!
@Pricoders
@Pricoders 2 жыл бұрын
It is my pleasure, the idea is that everybody learn something, thanks for the comment!
@hieutongdang3149
@hieutongdang3149 Жыл бұрын
Thank you , I have created my own plugin , but I want Adding languages ​​and Internationalization for my javascript file ? Do you have any ideas for me?
@Pricoders
@Pricoders Жыл бұрын
You can either create a backend in ajax that allows you to setup the localization with WordPress. or you can simply setup an array with your languages and get the lang of the browser
@hieutongdang3149
@hieutongdang3149 Жыл бұрын
@@Pricoders thanks you
@Pricoders
@Pricoders Жыл бұрын
Our pleasure
How To Create Your Own WordPress Plugin
9:34
WPTuts
Рет қаралды 12 М.
Мясо вегана? 🧐 @Whatthefshow
01:01
История одного вокалиста
Рет қаралды 7 МЛН
STOP using Wordpress in 2024! My Top Alternatives to Build A Website
11:24
react-i18next in 8 minutes
8:16
COMMAND
Рет қаралды 45 М.