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_OPACITY: 34 name = B_TRANSLATE("Opacity"); 35 break; 36 case PROPERTY_COLOR: 37 name = B_TRANSLATE("Color"); 38 break; 39 40 case PROPERTY_WIDTH: 41 name = B_TRANSLATE("Width"); 42 break; 43 case PROPERTY_HEIGHT: 44 name = B_TRANSLATE("Height"); 45 break; 46 47 case PROPERTY_CAP_MODE: 48 name = B_TRANSLATE("Caps"); 49 break; 50 case PROPERTY_JOIN_MODE: 51 name = B_TRANSLATE("Joins"); 52 break; 53 case PROPERTY_MITER_LIMIT: 54 name = B_TRANSLATE("Miter Limit"); 55 break; 56 case PROPERTY_STROKE_SHORTEN: 57 name = B_TRANSLATE("Shorten"); 58 break; 59 60 case PROPERTY_CLOSED: 61 name = B_TRANSLATE("Closed"); 62 break; 63 case PROPERTY_PATH: 64 name = B_TRANSLATE("Path"); 65 break; 66 67 case PROPERTY_HINTING: 68 name = B_TRANSLATE("Rounding"); 69 break; 70 case PROPERTY_MIN_VISIBILITY_SCALE: 71 name = B_TRANSLATE("Min LOD"); 72 break; 73 case PROPERTY_MAX_VISIBILITY_SCALE: 74 name = B_TRANSLATE("Max LOD"); 75 break; 76 77 case PROPERTY_TRANSLATION_X: 78 name = B_TRANSLATE("Translation X"); 79 break; 80 case PROPERTY_TRANSLATION_Y: 81 name = B_TRANSLATE("Translation Y"); 82 break; 83 case PROPERTY_ROTATION: 84 name = B_TRANSLATE("Rotation"); 85 break; 86 case PROPERTY_SCALE_X: 87 name = B_TRANSLATE("Scale X"); 88 break; 89 case PROPERTY_SCALE_Y: 90 name = B_TRANSLATE("Scale Y"); 91 break; 92 93 case PROPERTY_DETECT_ORIENTATION: 94 name = B_TRANSLATE("Detect Orient."); 95 break; 96 97 default: 98 name = B_TRANSLATE("<unkown property>"); 99 break; 100 } 101 return name; 102 } 103 104