Skip to content

Instantly share code, notes, and snippets.

@vsxed
Created November 12, 2012 20:32
Show Gist options
  • Select an option

  • Save vsxed/4061699 to your computer and use it in GitHub Desktop.

Select an option

Save vsxed/4061699 to your computer and use it in GitHub Desktop.
WHOOP
// Catching the category from the Play Store description and sorting the list
if (isset($appCategory)){
switch($appCategory){
// APPS
case "Weather": $appCategory = "apps"; break; // Wetter
case "Transportation": $appCategory = "apps"; break; // Verkehr
case "Entertainment": $appCategory = "apps"; break; // Unterhaltung
case "Tools": $appCategory = "apps"; break; // Tools
case "Sports": $appCategory = "apps"; break; // Sport
case "Social": $appCategory = "apps"; break; // Soziale Netzwerke
case "Libraries & Demo": $appCategory = "apps"; break; // Software & Demo
case "Shopping": $appCategory = "apps"; break; // Shopping
case "Travel & Local": $appCategory = "apps"; break; // Reisen & Lokales
case "News & Magazines": $appCategory = "apps"; break; // Nachrichten & Magazine
case "Music & Audio": $appCategory = "apps"; break; // Musik & Audio
case "Medical": $appCategory = "apps"; break; // Medizin
case "Media & Video": $appCategory = "apps"; break; // Medien & Videos
case "Lifestyle": $appCategory = "apps"; break; // Lifestyle
case "Education": $appCategory = "apps"; break; // Lernen
case "Communication": $appCategory = "apps"; break; // Kommunikation
case "Health & Fitness": $appCategory = "apps"; break; // Gesundheit & Fitness
case "Photography": $appCategory = "apps"; break; // Fotografie
case "Finance": $appCategory = "apps"; break; // Finanzen
case "Productivity": $appCategory = "apps"; break; // Effizienz
case "Comics": $appCategory = "apps"; break; // Comics
case "Business": $appCategory = "apps"; break; // Büro
case "Books & Reference": $appCategory = "apps"; break; // Bücher & Nachschlagewerke
case "Personalization": $appCategory = "apps"; break; // Personalisierung
// GAMES
case "Arcade & Action": $appCategory = "games"; break; // Arcade & Action
case "Casual": $appCategory = "games"; break; // Gelegenheitsspiele
case "Cards & Casino": $appCategory = "games"; break; // Karten- & Glücksspiele
case "Brain & Puzzle": $appCategory = "games"; break; // Rätsel & Denksport
case "Racing": $appCategory = "games"; break; // Rennspiele
case "Sports Games": $appCategory = "games"; break; // Sportspiele
}
}else{
// NO CATEGORY, NO MARKET ENTRY
$appCategory = "apps"; // Alles andere
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment