tshrinivasan / tools-for-wiki

Tools required for wiki projects
6 stars 9 forks source link

set_label_wikidata:How can set two language codes at a time? #24

Open tha-uzhavan opened 7 years ago

tha-uzhavan commented 7 years ago

The default language code is one. But most of the Indic languages are using English also. The how can i set two language codes at a time? For example, the below line is Tamil and English from my CSV file. //Q12976825~இது தமிழகத்தின் வேலூர் மாவட்டத்தில் உள்ளது~Karnambut Gram Panchayat~கரிணாம்பட் ஊராட்சி// If i can use two languages at a time, there will be no need to run the script for each language input. I think, We can use these [](https://github.com/emijrp/wikidata/blob/master/common.descriptions.py python3 code,)

[](https://github.com/XXN/wikidata/blob/master/human.aliases.es.py aliases,)

[]( https://github.com/emijrp/wikidata/blob/master/common.descriptions.py descriptions,)

for all the Indic languages need.

tshrinivasan commented 7 years ago

attach a sample csv file for this.

tha-uzhavan commented 7 years ago

A line of a csv file as below. WikidataCode~EnglishName~RegionalName~Description~AlsoKnownAs(aliases) Q23738771~Alunthur Panchayat~அளுந்தூர் ஊராட்சி~இது திருச்சி மாவட்டத்தில் உள்ளது~அளூந்தூர் பஞ்சாயத்து Second line begins as above. Example page https://www.wikidata.org/wiki/Q23738771