summaryrefslogtreecommitdiff
path: root/src/pep.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-05-10 10:37:00 +0200
committermathieui <mathieui@mathieui.net>2015-05-11 22:31:12 +0200
commitdd98aa44a5084f0590645f5ee9565ab962e6c844 (patch)
tree8e16fbb20e969eadfea5ba2689e1de4539ffcf94 /src/pep.py
parent861f5c4bbd775b091362766ecafeb7d1955aab2f (diff)
downloadpoezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.tar.gz
poezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.tar.bz2
poezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.tar.xz
poezio-dd98aa44a5084f0590645f5ee9565ab962e6c844.zip
Remove gettext support, as we don’t want to translate poezio, and it takes more than 1ms per call.
Diffstat (limited to 'src/pep.py')
-rw-r--r--src/pep.py356
1 files changed, 177 insertions, 179 deletions
diff --git a/src/pep.py b/src/pep.py
index 0478b5fd..0f7a1ced 100644
--- a/src/pep.py
+++ b/src/pep.py
@@ -3,89 +3,87 @@ Collection of mappings for PEP moods/activities
extracted directly from the XEP
"""
-from gettext import gettext as _
-
MOODS = {
- 'afraid': _('Afraid'),
- 'amazed': _('Amazed'),
- 'angry': _('Angry'),
- 'amorous': _('Amorous'),
- 'annoyed': _('Annoyed'),
- 'anxious': _('Anxious'),
- 'aroused': _('Aroused'),
- 'ashamed': _('Ashamed'),
- 'bored': _('Bored'),
- 'brave': _('Brave'),
- 'calm': _('Calm'),
- 'cautious': _('Cautious'),
- 'cold': _('Cold'),
- 'confident': _('Confident'),
- 'confused': _('Confused'),
- 'contemplative': _('Contemplative'),
- 'contented': _('Contented'),
- 'cranky': _('Cranky'),
- 'crazy': _('Crazy'),
- 'creative': _('Creative'),
- 'curious': _('Curious'),
- 'dejected': _('Dejected'),
- 'depressed': _('Depressed'),
- 'disappointed': _('Disappointed'),
- 'disgusted': _('Disgusted'),
- 'dismayed': _('Dismayed'),
- 'distracted': _('Distracted'),
- 'embarrassed': _('Embarrassed'),
- 'envious': _('Envious'),
- 'excited': _('Excited'),
- 'flirtatious': _('Flirtatious'),
- 'frustrated': _('Frustrated'),
- 'grumpy': _('Grumpy'),
- 'guilty': _('Guilty'),
- 'happy': _('Happy'),
- 'hopeful': _('Hopeful'),
- 'hot': _('Hot'),
- 'humbled': _('Humbled'),
- 'humiliated': _('Humiliated'),
- 'hungry': _('Hungry'),
- 'hurt': _('Hurt'),
- 'impressed': _('Impressed'),
- 'in_awe': _('In awe'),
- 'in_love': _('In love'),
- 'indignant': _('Indignant'),
- 'interested': _('Interested'),
- 'intoxicated': _('Intoxicated'),
- 'invincible': _('Invincible'),
- 'jealous': _('Jealous'),
- 'lonely': _('Lonely'),
- 'lucky': _('Lucky'),
- 'mean': _('Mean'),
- 'moody': _('Moody'),
- 'nervous': _('Nervous'),
- 'neutral': _('Neutral'),
- 'offended': _('Offended'),
- 'outraged': _('Outraged'),
- 'playful': _('Playful'),
- 'proud': _('Proud'),
- 'relaxed': _('Relaxed'),
- 'relieved': _('Relieved'),
- 'remorseful': _('Remorseful'),
- 'restless': _('Restless'),
- 'sad': _('Sad'),
- 'sarcastic': _('Sarcastic'),
- 'serious': _('Serious'),
- 'shocked': _('Shocked'),
- 'shy': _('Shy'),
- 'sick': _('Sick'),
- 'sleepy': _('Sleepy'),
- 'spontaneous': _('Spontaneous'),
- 'stressed': _('Stressed'),
- 'strong': _('Strong'),
- 'surprised': _('Surprised'),
- 'thankful': _('Thankful'),
- 'thirsty': _('Thirsty'),
- 'tired': _('Tired'),
- 'undefined': _('Undefined'),
- 'weak': _('Weak'),
- 'worried': _('Worried')
+ 'afraid': 'Afraid',
+ 'amazed': 'Amazed',
+ 'angry': 'Angry',
+ 'amorous': 'Amorous',
+ 'annoyed': 'Annoyed',
+ 'anxious': 'Anxious',
+ 'aroused': 'Aroused',
+ 'ashamed': 'Ashamed',
+ 'bored': 'Bored',
+ 'brave': 'Brave',
+ 'calm': 'Calm',
+ 'cautious': 'Cautious',
+ 'cold': 'Cold',
+ 'confident': 'Confident',
+ 'confused': 'Confused',
+ 'contemplative': 'Contemplative',
+ 'contented': 'Contented',
+ 'cranky': 'Cranky',
+ 'crazy': 'Crazy',
+ 'creative': 'Creative',
+ 'curious': 'Curious',
+ 'dejected': 'Dejected',
+ 'depressed': 'Depressed',
+ 'disappointed': 'Disappointed',
+ 'disgusted': 'Disgusted',
+ 'dismayed': 'Dismayed',
+ 'distracted': 'Distracted',
+ 'embarrassed': 'Embarrassed',
+ 'envious': 'Envious',
+ 'excited': 'Excited',
+ 'flirtatious': 'Flirtatious',
+ 'frustrated': 'Frustrated',
+ 'grumpy': 'Grumpy',
+ 'guilty': 'Guilty',
+ 'happy': 'Happy',
+ 'hopeful': 'Hopeful',
+ 'hot': 'Hot',
+ 'humbled': 'Humbled',
+ 'humiliated': 'Humiliated',
+ 'hungry': 'Hungry',
+ 'hurt': 'Hurt',
+ 'impressed': 'Impressed',
+ 'in_awe': 'In awe',
+ 'in_love': 'In love',
+ 'indignant': 'Indignant',
+ 'interested': 'Interested',
+ 'intoxicated': 'Intoxicated',
+ 'invincible': 'Invincible',
+ 'jealous': 'Jealous',
+ 'lonely': 'Lonely',
+ 'lucky': 'Lucky',
+ 'mean': 'Mean',
+ 'moody': 'Moody',
+ 'nervous': 'Nervous',
+ 'neutral': 'Neutral',
+ 'offended': 'Offended',
+ 'outraged': 'Outraged',
+ 'playful': 'Playful',
+ 'proud': 'Proud',
+ 'relaxed': 'Relaxed',
+ 'relieved': 'Relieved',
+ 'remorseful': 'Remorseful',
+ 'restless': 'Restless',
+ 'sad': 'Sad',
+ 'sarcastic': 'Sarcastic',
+ 'serious': 'Serious',
+ 'shocked': 'Shocked',
+ 'shy': 'Shy',
+ 'sick': 'Sick',
+ 'sleepy': 'Sleepy',
+ 'spontaneous': 'Spontaneous',
+ 'stressed': 'Stressed',
+ 'strong': 'Strong',
+ 'surprised': 'Surprised',
+ 'thankful': 'Thankful',
+ 'thirsty': 'Thirsty',
+ 'tired': 'Tired',
+ 'undefined': 'Undefined',
+ 'weak': 'Weak',
+ 'worried': 'Worried'
}
@@ -93,131 +91,131 @@ MOODS = {
ACTIVITIES = {
'doing_chores': {
- 'category': _('Doing_chores'),
-
- 'buying_groceries': _('Buying groceries'),
- 'cleaning': _('Cleaning'),
- 'cooking': _('Cooking'),
- 'doing_maintenance': _('Doing maintenance'),
- 'doing_the_dishes': _('Doing the dishes'),
- 'doing_the_laundry': _('Doing the laundry'),
- 'gardening': _('Gardening'),
- 'running_an_errand': _('Running an errand'),
- 'walking_the_dog': _('Walking the dog'),
- 'other': _('Other'),
+ 'category': 'Doing_chores',
+
+ 'buying_groceries': 'Buying groceries',
+ 'cleaning': 'Cleaning',
+ 'cooking': 'Cooking',
+ 'doing_maintenance': 'Doing maintenance',
+ 'doing_the_dishes': 'Doing the dishes',
+ 'doing_the_laundry': 'Doing the laundry',
+ 'gardening': 'Gardening',
+ 'running_an_errand': 'Running an errand',
+ 'walking_the_dog': 'Walking the dog',
+ 'other': 'Other',
},
'drinking': {
- 'category': _('Drinking'),
+ 'category': 'Drinking',
- 'having_a_beer': _('Having a beer'),
- 'having_coffee': _('Having coffee'),
- 'having_tea': _('Having tea'),
- 'other': _('Other'),
+ 'having_a_beer': 'Having a beer',
+ 'having_coffee': 'Having coffee',
+ 'having_tea': 'Having tea',
+ 'other': 'Other',
},
'eating': {
- 'category':_('Eating'),
+ 'category':'Eating',
- 'having_breakfast': _('Having breakfast'),
- 'having_a_snack': _('Having a snack'),
- 'having_dinner': _('Having dinner'),
- 'having_lunch': _('Having lunch'),
- 'other': _('Other'),
+ 'having_breakfast': 'Having breakfast',
+ 'having_a_snack': 'Having a snack',
+ 'having_dinner': 'Having dinner',
+ 'having_lunch': 'Having lunch',
+ 'other': 'Other',
},
'exercising': {
- 'category': _('Exercising'),
-
- 'cycling': _('Cycling'),
- 'dancing': _('Dancing'),
- 'hiking': _('Hiking'),
- 'jogging': _('Jogging'),
- 'playing_sports': _('Playing sports'),
- 'running': _('Running'),
- 'skiing': _('Skiing'),
- 'swimming': _('Swimming'),
- 'working_out': _('Working out'),
- 'other': _('Other'),
+ 'category': 'Exercising',
+
+ 'cycling': 'Cycling',
+ 'dancing': 'Dancing',
+ 'hiking': 'Hiking',
+ 'jogging': 'Jogging',
+ 'playing_sports': 'Playing sports',
+ 'running': 'Running',
+ 'skiing': 'Skiing',
+ 'swimming': 'Swimming',
+ 'working_out': 'Working out',
+ 'other': 'Other',
},
'grooming': {
- 'category': _('Grooming'),
-
- 'at_the_spa': _('At the spa'),
- 'brushing_teeth': _('Brushing teeth'),
- 'getting_a_haircut': _('Getting a haircut'),
- 'shaving': _('Shaving'),
- 'taking_a_bath': _('Taking a bath'),
- 'taking_a_shower': _('Taking a shower'),
- 'other': _('Other'),
+ 'category': 'Grooming',
+
+ 'at_the_spa': 'At the spa',
+ 'brushing_teeth': 'Brushing teeth',
+ 'getting_a_haircut': 'Getting a haircut',
+ 'shaving': 'Shaving',
+ 'taking_a_bath': 'Taking a bath',
+ 'taking_a_shower': 'Taking a shower',
+ 'other': 'Other',
},
'having_appointment': {
- 'category': _('Having appointment'),
+ 'category': 'Having appointment',
- 'other': _('Other'),
+ 'other': 'Other',
},
'inactive': {
- 'category': _('Inactive'),
-
- 'day_off': _('Day_off'),
- 'hanging_out': _('Hanging out'),
- 'hiding': _('Hiding'),
- 'on_vacation': _('On vacation'),
- 'praying': _('Praying'),
- 'scheduled_holiday': _('Scheduled holiday'),
- 'sleeping': _('Sleeping'),
- 'thinking': _('Thinking'),
- 'other': _('Other'),
+ 'category': 'Inactive',
+
+ 'day_off': 'Day_off',
+ 'hanging_out': 'Hanging out',
+ 'hiding': 'Hiding',
+ 'on_vacation': 'On vacation',
+ 'praying': 'Praying',
+ 'scheduled_holiday': 'Scheduled holiday',
+ 'sleeping': 'Sleeping',
+ 'thinking': 'Thinking',
+ 'other': 'Other',
},
'relaxing': {
- 'category': _('Relaxing'),
-
- 'fishing': _('Fishing'),
- 'gaming': _('Gaming'),
- 'going_out': _('Going out'),
- 'partying': _('Partying'),
- 'reading': _('Reading'),
- 'rehearsing': _('Rehearsing'),
- 'shopping': _('Shopping'),
- 'smoking': _('Smoking'),
- 'socializing': _('Socializing'),
- 'sunbathing': _('Sunbathing'),
- 'watching_a_movie': _('Watching a movie'),
- 'watching_tv': _('Watching tv'),
- 'other': _('Other'),
+ 'category': 'Relaxing',
+
+ 'fishing': 'Fishing',
+ 'gaming': 'Gaming',
+ 'going_out': 'Going out',
+ 'partying': 'Partying',
+ 'reading': 'Reading',
+ 'rehearsing': 'Rehearsing',
+ 'shopping': 'Shopping',
+ 'smoking': 'Smoking',
+ 'socializing': 'Socializing',
+ 'sunbathing': 'Sunbathing',
+ 'watching_a_movie': 'Watching a movie',
+ 'watching_tv': 'Watching tv',
+ 'other': 'Other',
},
'talking': {
- 'category': _('Talking'),
+ 'category': 'Talking',
- 'in_real_life': _('In real life'),
- 'on_the_phone': _('On the phone'),
- 'on_video_phone': _('On video phone'),
- 'other': _('Other'),
+ 'in_real_life': 'In real life',
+ 'on_the_phone': 'On the phone',
+ 'on_video_phone': 'On video phone',
+ 'other': 'Other',
},
'traveling': {
- 'category': _('Traveling'),
-
- 'commuting': _('Commuting'),
- 'driving': _('Driving'),
- 'in_a_car': _('In a car'),
- 'on_a_bus': _('On a bus'),
- 'on_a_plane': _('On a plane'),
- 'on_a_train': _('On a train'),
- 'on_a_trip': _('On a trip'),
- 'walking': _('Walking'),
- 'cycling': _('Cycling'),
- 'other': _('Other'),
+ 'category': 'Traveling',
+
+ 'commuting': 'Commuting',
+ 'driving': 'Driving',
+ 'in_a_car': 'In a car',
+ 'on_a_bus': 'On a bus',
+ 'on_a_plane': 'On a plane',
+ 'on_a_train': 'On a train',
+ 'on_a_trip': 'On a trip',
+ 'walking': 'Walking',
+ 'cycling': 'Cycling',
+ 'other': 'Other',
},
'undefined': {
- 'category': _('Undefined'),
+ 'category': 'Undefined',
- 'other': _('Other'),
+ 'other': 'Other',
},
'working': {
- 'category': _('Working'),
+ 'category': 'Working',
- 'coding': _('Coding'),
- 'in_a_meeting': _('In a meeting'),
- 'writing': _('Writing'),
- 'studying': _('Studying'),
- 'other': _('Other'),
+ 'coding': 'Coding',
+ 'in_a_meeting': 'In a meeting',
+ 'writing': 'Writing',
+ 'studying': 'Studying',
+ 'other': 'Other',
}
}