PDA

View Full Version : Tip&Tricks: add additional country flag icons to Yadis


TheLastMohican
29-12-10, 16:07
This is a small guide and necessary files to enhance the use of the country flags used in Yadis.

This Tip & Trick applies to version 2.0.4 of Yadis

Version 2.0.4 already added country flag icons for Poland, Belgium and Thailand compared to previous versions.

--------------------

Yadis uses country flag icons to signal in what countries a movie was produced. But in my collection i have some Belgian and Thai movies and those didn't have a flag as these aren't available in Yadis. So i started to look what i had myself concerning flag icons. I downloaded several of these icon packs a while ago to use in my own soccer database, so i had some of these lingering on my computer.

Long story short i had the exact same flag icons Fred-L is using in Yadis and was able to get flags for my Belgian and Thai movies.

As this worked excellently, i thought why not share this with other Yadis users.


Now how does this work;

All flag icons are saved in the images directory under the Yadis program directory. Besides that there's a countries.xml file under the workspace directory. So adding images with the correct name in the images directory and editing the countries.xml file did the trick.

For instance you want to have an flag icon for your Romanian movies, just add the flag icon for Romania provided with this guide, see below, to the images directory and add the following entry into the countries.xml file just before the tag

</countries>

<country fr="Roumanie">Romania</country>

And save the countries.xml file.


When you click on Apply next to your Romanian movie and hold and below you'll see your movie now has a Romanian country flag added.

--------------------

Some additional country flag icons can be downloaded here (http://dl.dropbox.com/u/9529242/flags.rar) ( 225 KB )

To decide what countries should be included in the package i look at dvdprofiler and also on the wonderful Kinoblog (http://filmjournal.net/kinoblog) which covers Central and Eastern European films.

--------------------

If don't want to edit the countries.xml file yourself, you can download an edited version from here (http://dl.dropbox.com/u/9529242/countries.rar) which includes all the countries where there are flag icons for in the flags.rar file

--------------------

Countries included in the package are;


Armenia
Austria
Azerbaijan
Bosnia-Herzegovina
Bulgaria
Chile
Columbia
Croatia
Estonia
Finland
Georgia
Greece
Hungary
Iceland
India
Indonesia
Iran
Israel
Latvia
Lithuania
Macedonia
Malaysia
Norway
Peru
Philippines
Portugal
Romania
Singapore
Slovakia
Slovenia
Switzerland
Taiwan
Turkey
Ukraine
Vietnam


If you need any other country flags, just let me know. And i'll add them to the package.

Have fun.


--------------------

Included files for this Tip & Trick;

flags.rar ( 225 KB ) (http://dl.dropbox.com/u/9529242/flags.rar)
countries.rar ( 4 KB ) (http://dl.dropbox.com/u/9529242/countries.rar)

TheLastMohican
29-12-10, 16:07
Reserved for future updates

This tip & trick is no longer needed as Fred-L has incorporated this in the second build of 2.0.4 (29/12/2010 23:05). So in this build. (http://www.mpcclub.com/forum/showpost.php?p=209105&postcount=345)

Fred-L
29-12-10, 18:53
May I include your flags in the next release of yaDIS ?

TheLastMohican
29-12-10, 21:30
Sure no problem, so this tip & trick will not have a big lifespan :) Ah no worries it
might be that someone needs yet another flag and then they just need to ask.

Fred-L
30-12-10, 11:35
So your package has been incorporated into 2.0.4.
I modified a few french country names in the countries.xml ;)

Thanks.

TheLastMohican
30-12-10, 11:43
Living so close to the French border my French should be better but unfortunately it's not.

Thanks for that.

TheLastMohican
30-12-10, 18:15
Brrr can't edit my Reserved post, second post, in this thread :-?

OK then like this. New version with 3 additional country flags.

flags_101.rar ( 242 KB ) can be downloaded from here (http://dl.dropbox.com/u/9529242/flags_101.rar)

Additions
----------

Koeweit ( Amreeka - Cherien Dabis )
Morocco ( Brideshead Revisited - Julian Jarrold ) strange one this, but it's listed on IMDb
Luxembourg ( JCVD - Mabrouk El Mechri)