1 /* 2 * Copyright 2006, Haiku. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Stephan Aßmus <superstippi@gmx.de> 7 */ 8 9 #include "CommonPropertyIDs.h" 10 11 #include <stdio.h> 12 13 #include <debugger.h> 14 15 #include <Catalog.h> 16 #include <Locale.h> 17 18 19 #undef B_TRANSLATION_CONTEXT 20 #define B_TRANSLATION_CONTEXT "Icon-O-Matic-PropertyNames" 21 22 23 // name_for_id 24 const char* 25 name_for_id(int32 id) 26 { 27 const char* name = NULL; 28 switch (id) { 29 case PROPERTY_NAME: 30 name = B_TRANSLATE("Name"); 31 break; 32 33 case PROPERTY_ALPHA: 34 name = B_TRANSLATE("Alpha"); 35 break; 36 case PROPERTY_OPACITY: 37 name = B_TRANSLATE("Opacity"); 38 break; 39 case PROPERTY_COLOR: 40 name = B_TRANSLATE("Color"); 41 break; 42 43 case PROPERTY_WIDTH: 44 name = B_TRANSLATE("Width"); 45 break; 46 case PROPERTY_HEIGHT: 47 name = B_TRANSLATE("Height"); 48 break; 49 50 case PROPERTY_CAP_MODE: 51 name = B_TRANSLATE("Caps"); 52 break; 53 case PROPERTY_JOIN_MODE: 54 name = B_TRANSLATE("Joins"); 55 break; 56 case PROPERTY_MITER_LIMIT: 57 name = B_TRANSLATE("Miter Limit"); 58 break; 59 case PROPERTY_STROKE_SHORTEN: 60 name = B_TRANSLATE("Shorten"); 61 break; 62 63 case PROPERTY_CLOSED: 64 name = B_TRANSLATE("Closed"); 65 break; 66 case PROPERTY_PATH: 67 name = B_TRANSLATE("Path"); 68 break; 69 70 case PROPERTY_HINTING: 71 name = B_TRANSLATE("Rounding"); 72 break; 73 case PROPERTY_MIN_VISIBILITY_SCALE: 74 name = B_TRANSLATE("Min LOD"); 75 break; 76 case PROPERTY_MAX_VISIBILITY_SCALE: 77 name = B_TRANSLATE("Max LOD"); 78 break; 79 80 case PROPERTY_TRANSLATION_X: 81 name = B_TRANSLATE("Translation X"); 82 break; 83 case PROPERTY_TRANSLATION_Y: 84 name = B_TRANSLATE("Translation Y"); 85 break; 86 case PROPERTY_ROTATION: 87 name = B_TRANSLATE("Rotation"); 88 break; 89 case PROPERTY_SCALE_X: 90 name = B_TRANSLATE("Scale X"); 91 break; 92 case PROPERTY_SCALE_Y: 93 name = B_TRANSLATE("Scale Y"); 94 break; 95 96 case PROPERTY_DETECT_ORIENTATION: 97 name = B_TRANSLATE("Detect Orient."); 98 break; 99 100 default: 101 name = B_TRANSLATE("<unkown property>"); 102 break; 103 } 104 return name; 105 } 106 107