corrected the bug when selecting the category

Added a few more language lines.
Added a method to get the category type of a category.