Create your own Language Pack for Yendif Music Share
This article describes how to create translation for "Yendif Music Share" component. As example we are going to use our English language pack and translate it to French by doing some little modifications.
-
Download en-GB.com_yendifmusicshare_1.1.0.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 represent English language of United Kingdom. Since we are going to create a translation for French, our language tag would be "fr-FR".
Note : Kindly use appropriate language tag to which you transtale the component.
-
Extract the downloaded zip file.
You should get the following file structure,
- index.html
- administrator/en-GB.com_yendifmusicshare.ini
- administrator/en-GB.com_yendifmusicshare.sys.ini
- administrator/en-GB.plg_content_yendifmusicshare.ini
- site/en-GB.com_yendifmusicshare.ini
- site/en-GB.mod_yendifmusicshare_albums.ini
- site/en-GB.mod_yendifmusicshare_artists.ini
- site/en-GB.mod_yendifmusicshare_genres.ini
- site/en-GB.mod_yendifmusicshare_letterbar.ini
- site/en-GB.mod_yendifmusicshare_search.ini
- site/en-GB.mod_yendifmusicshare_songs.ini
- install.xml
- Open install.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 Music Share."
- That's it. Save the file. We have prepared the install.xml file for French.
- Now, open "administrator" folder and rename "en-GB" to "fr-FR" in all filenames.
-
Then open fr-FR.com_yendifmusicshare.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_YENDIFMUSICSHARE="Yendif Music Share"
What all you need is, just replace the string after the (=) sign in to your own French string. For example,
COM_YENDIFMUSICSHARE="Your French String"
- Kindly follow the same in all .ini files and other "site" folder too.
- That's it. Finally compress the package into ZIP file called lang-prefix-LANG-PREFIX.com_yendifmusicshare.zip (in our example the package will name as fr-FR.com_yendifmusicshare.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 This email address is being protected from spambots. You need JavaScript enabled to view it.. So, we will add it to the site for public use.
- Thanks for your Contribution !!!
What next ? Troubleshooting Guide