This article describes how to create a translation for the "Yendif Video Share" Joomla 4 component. For example, we are going to use our English language pack and translate it to French by doing some little modifications.
-
Download en-GB.com_yendifvideoshare_2.0.1.zip.
The package name itself describes that the language is English. Basically Joomla! follow a standard language naming convention [xx-XX] which is made of [iso639 language code]-[iso3166 country code]
So, "en-GB" in our package name represents the English language of the United Kingdom. Since we are going to create a translation for French, our language tag would be "fr-FR".
Note: Kindly use the appropriate language tag to which you translate the component.
-
Extract the downloaded zip file.
You should get the following file structure,
- admin/en-GB/com_yendifvideoshare.ini
- admin/en-GB/com_yendifvideoshare.sys.ini
- admin/en-GB/plg_content_yendifvideoshare.ini
- admin/en-GB/plg_content_yendifvideoshare.sys.ini
- admin/en-GB/plg_system_yendifvideoshare.ini
- admin/en-GB/plg_system_yendifvideoshare.sys.ini
- site/en-GB/com_yendifvideoshare.ini
- site/en-GB/mod_yendifvideoshare_categories.ini
- site/en-GB/mod_yendifvideoshare_categories.sys.ini
- site/en-GB/mod_yendifvideoshare_player.ini
- site/en-GB/mod_yendifvideoshare_player.sys.ini
- site/en-GB/mod_yendifvideoshare_playlist.ini
- site/en-GB/mod_yendifvideoshare_playlist.sys.ini
- site/en-GB/mod_yendifvideoshare_search.ini
- site/en-GB/mod_yendifvideoshare_search.sys.ini
- site/en-GB/mod_yendifvideoshare_videos.ini
- site/en-GB/mod_yendifvideoshare_videos.sys.ini
- lang_com_yendifvideoshare_en-GB.xml
- Open lang_com_yendifvideoshare_en-GB.xml in your favorite Text editor.
- Search for "en-GB" in the whole document and replace them as "fr-FR".
- Edit the tag as "French language pack for Yendif Video Share."
- That's it. Save the file. We have prepared the lang_com_yendifvideoshare_en-GB.xml file for French.
- Now, open the "admin" folder and rename "en-GB" to "fr-FR" in all filenames.
-
Then open the fr-FR.com_yendifvideoshare.ini file in your Text editor. Please remember all .ini files should be saved as UTF-8 without BOM encoding.
You can see that each line from the file consists of a pair of strings separated by an equals sign like this,
KEY="VALUE"
where "KEY" is a string to be translated and "Value" is the translated string. For example,
COM_YENDIFVIDEOSHARE="Yendif Video Share"
All you need is, just replace the string after the (=) sign in to your own French string. For example,
COM_YENDIFVIDEOSHARE="Your French String"
- Kindly follow the same in all .ini files and other "site" folders too.
- That's it. Finally, compress the package into a ZIP file called lang-prefix-LANG-PREFIX.com_yendifvideoshare.zip (in our example the package will name fr-FR.com_yendifvideoshare.zip) Now the translation is ready, and can be installed via standard Joomla! installation procedure.
- Congrats! you have translated the component to your language. Kindly mail the translated version to admin@yendifplayer.com. So, we will add it to the site for public use.
- Thanks for your Contribution !!!
Still, having issues? You can either post your query in our forum section or mail it directly to admin@yendifplayer.com. All your queries will be replied to within 24 hrs.