Tizen 2.1 base
[platform/upstream/hplip.git] / base / strings.py
1 # -*- coding: utf-8 -*-
2 #
3 # (c) Copyright 2003-2007 Hewlett-Packard Development Company, L.P.
4 #
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
9 #
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 #
19 # Author: Don Welch, Naga Samrat Chowdary Narla, Yashwant Kumar Sahu
20 #
21
22 # string_table := { 'string_id' : 'short', 'long' ), ... }
23
24 # string_id's for error codes are the string form of the error code
25 # Strings that need localization use (self.__tr'string' ) form.
26 # Strings that refer to other strings, use '%reference%' form.
27 # Blank strings use '' form.
28
29 class StringTable:
30     def __init__(self):
31
32         self.string_table = {
33             '0' : (self.__tr('Unknown'), ''),
34             'unknown' : (self.__tr('Unknown'), ''),
35             'try_again' : ('', self.__tr('Please correct the problem and try again')),
36             'press_continue' : ('',self.__tr('Please correct the problem and press continue on the printer')),
37             '500' : (self.__tr('Started a print job'), ''),
38             '501' : (self.__tr('Print job has completed'), ''),
39             '502' : (self.__tr("Print job failed - required plug-in not found"), self.__tr("Please run hp-plugin (as root) to install the required plug-in")),
40             '600' : (self.__tr('Started a fax job'), ''),
41             '601' : (self.__tr('Fax job is ready for send'), ''),
42             '700' : (self.__tr('Printer queue stopped'), ''),
43             '701' : (self.__tr('Printer queue started'), ''),
44             '702' : (self.__tr('Printer is rejecting jobs'), ''),
45             '703' : (self.__tr('Printer is accepting jobs'), ''),
46             '704' : (self.__tr('Printer set as default'), ''),
47             '800' : (self.__tr('Fax queue stopped'), ''),
48             '801' : (self.__tr('Fax queue started'), ''),
49             '802' : (self.__tr('Fax is rejecting jobs'), ''),
50             '803' : (self.__tr('Fax is accepting jobs'), ''),
51             '804' : (self.__tr('Fax set as default'), ''),
52             '805' : (self.__tr("Fax job failed - required plug-in not found"), '%502%'),
53             '1000' : (self.__tr('Idle'), ''),
54             '1001' : (self.__tr('Busy'), ''),
55             '1002' : (self.__tr('Print job is continuing'), ''),
56             '1003' : (self.__tr('Turning off'), ''),
57             '1004' : (self.__tr('Report printing'), ''),
58             '1005' : (self.__tr('Canceling'), ''),
59             '1006' : ('%5002%', '%try_again%'),
60             '1007' : (self.__tr('Waiting for ink to dry'), ''),
61             '1008' : (self.__tr('Pen change'), ''),
62             '1009' : (self.__tr('The printer is out of paper'), self.__tr('Please load more paper and follow the instructions on the front panel (if any) to continue printing')),
63             '1010' : (self.__tr('Banner eject needed'), ''),
64             '1011' : (self.__tr('Banner mismatch'), '%try_again%'),
65             '1012' : (self.__tr('Photo mismatch'), '%try_again%'),
66             '1013' : (self.__tr('Duplex mismatch'), '%try_again'),
67             '1014' : (self.__tr('Paper or cartridge carriage jammed'), self.__tr('Please clear the jam and press continue on the printer')),
68             '1015' : ('%1014%', '%1014%'),
69             '1016' : ('%1014%', '%1014%'),
70             '1017' : (self.__tr('There is a problem with a print cartridge'), '%press_continue%'),
71             '1018' : ('%unknown_error%', '%try_again%'),
72             '1019' : (self.__tr('Powering down'), ''),
73             '1020' : (self.__tr('Front panel test'), ''),
74             '1021' : (self.__tr('Clean out tray missing'), '%try_again%'),
75             '1022' : (self.__tr('Output bin full'), '%try_again%'),
76             '1023' : (self.__tr('Media size mismatch'), '%try_again%'),
77             '1024' : (self.__tr('Duplexer is jammed'), '%1014%'),
78             '1025' : ('%1014%', '%1014%'),
79             '1026' : (self.__tr('An ink cartridge is out of ink'), '%try_again%'),
80             '1027' : (self.__tr('Internal device error'), '%try_again%'),
81             '1028' : ('%1014%', '%1014%'),
82             '1029' : (self.__tr('Second tray missing'), '%try_again%'),
83             '1030' : (self.__tr('Duplexer missing'), '%try_again%'),
84             '1031' : (self.__tr('Rear tray missing'), '%try_again%'),
85             '1032' : (self.__tr('Cartridge not latched'), '%try_again%'),
86             '1033' : (self.__tr('Battery very low'), '%try_again%'),
87             '1034' : ('%1017%', '%try_again%'),
88             '1035' : (self.__tr('Output tray closed'), '%try_again%'),
89             '1036' : (self.__tr('Manual feed blocked'), '%1014%'),
90             '1037' : (self.__tr('Rear feed blocked'), '%1014%'),
91             '1038' : (self.__tr('Second tray out of paper'), '%1009%'),
92             '1039' : (self.__tr('Input tray locked'), '%try_again%'),
93             '1040' : (self.__tr('Non-HP ink'), '%try_again%'),
94             '1041' : (self.__tr('Pen calibration needs resume'), '%press_continue%'),
95             '1042' : (self.__tr('Media type mismatch'), '%try_again%'),
96             '1043' : (self.__tr('Custom media mismatch'), '%try_again%'),
97             '1044' : (self.__tr('Pen cleaning in progress'), ''),
98             '1045' : (self.__tr('Pen checking in progress'), ''),
99             '1046' : (self.__tr('In power save mode'), ''),
100             '1047' : (self.__tr('Incorrect cartridge'), ''),
101             '1048' : (self.__tr('Missing cartridge'), ''),
102             '1049' : (self.__tr('Printhead(s): Missing or Damaged'), ''),            
103             '1501' : (self.__tr('Black cartridge is low on ink'), ''),
104             '1502' : (self.__tr('Tri-color cartridge is low on ink'), ''),
105             '1503' : (self.__tr('Photo cartridge is low on ink'), ''),
106             '1504' : (self.__tr('Cyan cartridge is low on ink'), ''),
107             '1505' : (self.__tr('Magenta cartridge is low on ink'), ''),
108             '1506' : (self.__tr('Yellow cartridge is low on ink'), ''),
109             '1507' : (self.__tr('Photo cyan cartridge is low on ink'), ''),
110             '1508' : (self.__tr('Photo magenta cartridge is low on ink'), ''),
111             '1509' : (self.__tr('Photo yellow cartridge is low on ink'), ''),
112             '1510' : (self.__tr('Photo gray cartridge is low on ink'), ''),
113             '1511' : (self.__tr('Photo blue cartridge is low on ink'), ''),
114             '1601' : (self.__tr('Black cartridge is low on toner'), ''),
115             '1604' : (self.__tr('Cyan cartridge is low on toner'), ''),
116             '1605' : (self.__tr('Magenta cartridge is low on toner'), ''),
117             '1606' : (self.__tr('Yellow cartridge is low on toner'), ''),
118             '1800' : (self.__tr('Warming up'), ''),
119             '1801' : (self.__tr('Low paper'), ''),
120             '1802' : (self.__tr('Door open'), '%try_again%'),
121             '1803' : (self.__tr('Offline'), ''),
122             '1804' : (self.__tr('Low toner'), ''),
123             '1805' : (self.__tr('No toner'), '%try_again%'),
124             '1806' : (self.__tr('Service request'), '%try_again%'),
125             '1807' : (self.__tr('Fuser error'), '%try_again%'),
126             '1900' : (self.__tr('Unsupported printer model'), ''),
127             '2000' : (self.__tr('Scan job started'), ''),
128             '2001' : (self.__tr('Scan job completed'), ''),
129             '2002' : (self.__tr('Scan job failed'), '%try_again%'),
130             '2003' : (self.__tr("Scan job failed - Required plug-in not found"), '%502%'),
131             '2004' : (self.__tr('Scanner automatic document feeder is loaded'), ''),
132             '2005' : (self.__tr('Scan to a destination is not specified'), ''),
133             '2006' : (self.__tr('Scanner is waiting for PC'), ''),
134             '2007' : (self.__tr('Scanner automatic document feeder jam'), ''),
135             '2008' : (self.__tr('Scanner automatic document feeder door opened'), ''),
136             '2009' : (self.__tr('Scan job cancelled'), ''),
137             '2010' : (self.__tr('Check scan image size requirements'), ''),
138             '2011' : (self.__tr('Scanner ADF empty'), ''),
139             '2012' : (self.__tr('Scanner ADF mispick'), ''),
140             '2013' : (self.__tr('Scanner busy'), ''),
141             '3000' : (self.__tr('Fax job started'), ''),
142             '3001' : (self.__tr('Fax job complete'), ''),
143             '3002' : (self.__tr('Fax job failed'), '%try_again%'),
144             '3003' : (self.__tr('Fax job canceled'), ''),
145             '3004' : (self.__tr('Fax send job continuing'), ''),
146             '3005' : (self.__tr('Fax receive job continuing'), ''),
147             '3006' : (self.__tr('Fax dialing'), ''),
148             '3007' : (self.__tr('Fax connecting'), ''),
149             '3008' : (self.__tr('Fax send error'), ''),
150             '3009' : (self.__tr('Fax error storage full'), ''),
151             '3010' : (self.__tr('Fax receive error'), ''),
152             '3011' : (self.__tr('Fax blocking'), ''),
153             '4000' : (self.__tr('Copy job started'), ''),
154             '4001' : (self.__tr('Copy job complete'), ''),
155             '4002' : (self.__tr('Copy job failed'), '%try_again%'),
156             '4003' : (self.__tr('Copy job canceled'), ''),
157             '5002' : (self.__tr('Device is busy, powered down, or unplugged'), '%5012%'),
158             '5004' : (self.__tr('Invalid device URI'), '%5012%'),
159             '5012' : (self.__tr('Device communication error'), '%try_again%'),
160             '5021' : (self.__tr('Device is busy'), ''),
161             '5026' : (self.__tr("Device status not available"), ''),
162             '5031' : ('%5021%', ''),
163             '5034' : (self.__tr('Device does not support requested operation'), '%try_again%'),
164             '5501' : (self.__tr('Device added'), ''),
165             '6000' : (self.__tr('Photocard unload started'), ''),
166             '6001' : (self.__tr('Photocard unload ended'), ''),
167             '6002' : (self.__tr('Photocard unload failed'), self.__tr('Make sure photocard is inserted properly and try again')),
168             '6003' : (self.__tr('Unable to mount photocard on device'), '%6002%'),
169             '6004' : (self.__tr('Photocard unloaded successfully'), ''),
170             'unknown_error' : (self.__tr('Unknown error'), ''),
171             'print' : (self.__tr('Print'), ''),
172             'scan' : (self.__tr('Scan'), ''),
173             'send_fax' : (self.__tr('Send fax'), ''),
174             'make_copies' : (self.__tr('Make copies'), ''),
175             'access_photo_cards' : (self.__tr('Access photo cards'), ''),
176             'agent_invalid_invalid' : (self.__tr('Invalid/missing'), ''),
177             'agent_invalid_supply' : (self.__tr('Invalid/missing ink cartridge'), ''),
178             'agent_invalid_cartridge':(self.__tr('Invalid/missing cartridge'), ''),
179             'agent_invalid_head' : (self.__tr('Invalid/missing print head'), ''),
180             'agent_unknown_unknown' : ('%unknown%', ''),
181             'agent_unspecified_battery' : ('Battery', ''),
182             'agent_black_head' : (self.__tr('Black print head'), ''),
183             'agent_black_supply' : (self.__tr('Black ink cartridge'), ''),
184             'agent_black_cartridge' : (self.__tr('Black cartridge'), ''),
185             'agent_cmy_head' : (self.__tr('Tri-color print head'), ''),
186             'agent_cmy_supply' : (self.__tr('Tri-color ink cartridge'), ''),
187             'agent_cmy_cartridge' : (self.__tr('Tri-color cartridge'), ''),
188             'agent_kcm_head' : (self.__tr('Photo print head'), ''),
189             'agent_kcm_supply' : (self.__tr('Photo ink cartridge'), ''),
190             'agent_kcm_cartridge' : (self.__tr('Photo cartridge'), ''),
191             'agent_cyan_head' : (self.__tr('Cyan print head'), ''),
192             'agent_cyan_supply' : (self.__tr('Cyan ink cartridge'), ''),
193             'agent_cyan_cartridge' : (self.__tr('Cyan cartridge'), ''),
194             'agent_magenta_head' : (self.__tr('Magenta print head'), ''),
195             'agent_magenta_supply' : (self.__tr('Magenta ink cartridge'), ''),
196             'agent_magenta_cartridge':(self.__tr('Magenta cartridge'), ''),
197             'agent_yellow_head' : (self.__tr('Yellow print head'), ''),
198             'agent_yellow_supply' : (self.__tr('Yellow ink cartridge'), ''),
199             'agent_yellow_cartridge': (self.__tr('Yellow cartridge'), ''),
200             'agent_photo_cyan_head' : (self.__tr('Photo cyan print head'), ''),
201             'agent_photo_cyan_supply' : (self.__tr('Photo cyan ink cartridge'), ''),
202             'agent_photo_cyan_cartridge' : (self.__tr('Photo cyan cartridge'), ''),
203             'agent_photo_magenta_head' : (self.__tr('Photo magenta print head'), ''),
204             'agent_photo_magenta_supply' : (self.__tr('Photo magenta ink cartridge'), ''),
205             'agent_photo_magenta_cartridge':(self.__tr('Photo magenta cartridge'), ''),
206             'agent_photo_yellow_head' : (self.__tr('Photo yellow print head'), ''),
207             'agent_photo_yellow_supply' : (self.__tr('Photo yellow ink cartridge'), ''),
208             'agent_photo_yellow_cartridge': (self.__tr('Photo yellow cartridge'), ''),
209             'agent_photo_gray_head' : (self.__tr('Photo gray print head'), ''),
210             'agent_photo_gray_supply' : (self.__tr('Photo gray ink cartridge'), ''),
211             'agent_photo_gray_cartridge' : (self.__tr('Photo gray cartridge'), ''),
212             'agent_photo_blue_head' : (self.__tr('Photo blue print head'), ''),
213             'agent_photo_blue_supply' : (self.__tr('Photo blue ink cartridge'), ''),
214             'agent_photo_blue_cartridge' : (self.__tr('Photo blue cartridge'), ''),
215             'agent_kcmy_cm_head' : (self.__tr('Print head'), ''),
216             'agent_photo_cyan_and_photo_magenta_head' : (self.__tr('Photo magenta and photo cyan print head'), ''),
217             'agent_yellow_and_magenta_head' : (self.__tr('Magenta and yellow print head'), '' ),
218             'agent_cyan_and_black_head' : (self.__tr('Black and cyan print head'), '' ),
219             'agent_light_gray_and_photo_black_head' : (self.__tr('Light gray and photo black print head'), '' ),
220             'agent_light_gray_supply' : (self.__tr('Light gray ink cartridge'), '' ),
221             'agent_medium_gray_supply' : (self.__tr('Medium gray ink cartridge'), '' ),
222             'agent_photo_gray_supply' : (self.__tr('Photo black ink cartridge'), '' ),
223             'agent_cyan_and_magenta_head' : (self.__tr('Cyan and magenta print head'), ''),
224             'agent_black_and_yellow_head' : (self.__tr('Black and yellow print head'), ''),
225             'agent_black_toner' : (self.__tr('Black toner cartridge'), ''),
226             'agent_cyan_toner' : (self.__tr('Cyan toner cartridge'), ''),
227             'agent_magenta_toner' : (self.__tr('Magenta toner cartridge'), ''),
228             'agent_yellow_toner' : (self.__tr('Yellow toner cartridge'), ''),
229             'agent_unspecified_maint_kit' : (self.__tr('Maintenance kit (fuser)'), ''),
230             'agent_unspecified_adf_kit' : (self.__tr('Document feeder (ADF) kit'), ''),
231             'agent_unspecified_drum_kit' : (self.__tr('Drum maintenance kit'), ''),
232             'agent_unspecified_transfer_kit' : (self.__tr('Image transfer kit'), ''),
233             'agent_health_unknown' : ('Unknown', ''),
234             'agent_health_ok' : (self.__tr('Good/OK'), ''),
235             'agent_health_fair_moderate' : (self.__tr('Fair/Moderate'), ''),
236             'agent_health_misinstalled': (self.__tr('Not installed'), ''),
237             'agent_health_incorrect' : (self.__tr('Incorrect'), ''),
238             'agent_health_failed' : (self.__tr('Failed'),''),
239             'agent_health_overtemp' : (self.__tr('Overheated'),''),
240             'agent_health_discharging' : (self.__tr('Discharging'), ''),
241             'agent_health_charging' : (self.__tr('Charging'), ''),
242             'agent_level_unknown' : ('%unknown%', ''),
243             'agent_level_low' : (self.__tr('Low'), ''),
244             'agent_level_out' : (self.__tr('Very low'),''),
245             'vsa_000' : (self.__tr("The Ethernet cable is plugged in which will prevent you from connecting to a wireless network. To connect wirelessly, remove the cable and try again. (VSA000)"), ''),
246             'vsa_001' : (self.__tr("A wireless network was found that matches what you have configured. However, the Ethernet cable is plugged in which will prevent you from connecting to it. To connect wirelessly, remove the cable and try again. (VSA001)"), ''),
247             'vsa_002' : (self.__tr("The wireless adaptor on your printer is not enabled. You cannot connect to a wireless network until this is turned on. (VSA002)"), ''),
248             'vsa_003' : (self.__tr("Your Access Point (AP) is not broadcasting its SSID. This feature is probably disabled. (VSA003)"), ''),
249             'vsa_004' : (self.__tr("The wireless adaptor on your printer is not functioning properly. There may be a problem with the hardware. (VSA004)"), ''),
250             'vsa_100' : (self.__tr("Check if MAC address filtering or IP address filtering is being used by your Access Point. If it is, then refer to your troubleshooting documentation that came with your HP device and make any necessary corrections. (VSA100)"), ''),
251             'vsa_101' : (self.__tr("The access point you are trying to connect to has settings that are NOT consistent with the ones in the printer. (VSA101)"), ''),
252             'vsa_102' : (self.__tr("Unknown (VSA102)"), ''),
253             'vsa_200' : (self.__tr("Your printer is configured to connect to an Access Point (AP) with the manufacturer's default (SSID) name. You should consider changing the AP name to avoid connecting to the wrong access point. (VSA200)"), ''),
254             'vsa_201' : (self.__tr("The network that you are trying to connect to cannot be found. Please make sure your access point is powered on. (VSA201)"), ''),
255             'vsa_202' : (self.__tr("You are trying to connect to an ad hoc network, and no other devices with that SSID can be found. (VSA202)"), ''),
256             'vsa_203' : (self.__tr("Check that your HP device (SSID) name matches your Access Point (SSID) name exactly (SSID names are case sensitive). (VSA203)"), ''),
257             'vsa_204' : (self.__tr("The SSID that you have configured is empty. In order to connect wirelessly you must enter a valid, non-blank SSID. (VSA204)"), ''),
258             'vsa_300' : (self.__tr("The printer is configured to connect to an ad hoc wireless network in 802.11g mode. This can cause compatibility issues with older 802.11b devices. (VSA300)"), ''),
259             'vsa_301' : (self.__tr("The printer is configured so that it shows that it is connected to an ad hoc network even if no other devices are present. This setting should only be used to connect to non-compliant 802.11 devices. WiFi certified devices won't have this issue. (VSA301)"), ''),
260             'vsa_302' : (self.__tr("The printer is configured to show that it isn't connected to an ad hoc network when no other devices are present. This setting should only be used to connect to compliant/WiFi certified 802.11 devices. (VSA302)"), ''),
261             'vsa_303' : (self.__tr("The printer is configured to connect to the wireless network in 802.11b mode. This setting should only be used to connect to a non-compliant 802.11 device. WiFi certified devices don't have this issue. (VSA303)"), ''),
262             'vsa_400' : (self.__tr("The signal strength for your wireless network too low (below -85dBm) which may result in your network becoming unstable. (VSA400)"), ''),
263             'vsa_401' : (self.__tr("You are not currently associated with a wireless network. However, a network that is consistent with your settings has been detected, but its signal strength is below -85dBm which could be preventing association. (VSA401)"), ''),
264             'vsa_500' : (self.__tr("There were multiple access points (or wireless repeaters) with your configured found in the area. The printer will connect to the one with the strongest signal. If you have setup a network with multiple APs, this is normal and this message is for information purposes only. (VSA500)"), ''),
265             'vsa_501' : (self.__tr("There were multiple access points (or wireless repeaters) with your configured found in the area. Some of these networks have settings that are inconsistent with your printer's wireless settings. (VSA501)"), '' ),
266             'vsa_600' : (self.__tr("Your wireless network requires a WEP key. The key you have provided does not match what is expected. Click <i>&lt; Back</i> to re-enter the key. (VSA600)"), ''),
267             'vsa_601' : (self.__tr("Your wireless network requires a WEP key. However, no data has been received to decrypt. Please try again in a few seconds. (VSA601)"), ''),
268             'vsa_602' : (self.__tr("The WEP key index on your HP device does not match that of your Access Point. Refer to the documentation that came with your HP device regarding changing the WEP key index. (VSA602)"), ''),
269             'vsa_603' : (self.__tr("Your Access Point (AP) requires a WPA pass phrase. The pass phrase you entered for your HP device does not match exactly your AP pass phrase. Click <i>&lt; Back</i> to re-enter the pass phase. (VSA603)"), ''),
270             'vsa_604' : (self.__tr("The HP printer is configured to connect to a WEP wireless network and the authentication method has been changed from the default setting. (VSA604)"), ''),
271             'vsa_605' : (self.__tr("The HP printer is configured to connect using WPA-PSK authentication. However, the encryption method you have chosen is not the default. (VSA605)"), ''),
272             'vsa_606' : (self.__tr("The HP printer is configured to connect using WPA-PSK authentication. However, the authentication method you have chosen is not the default. (VSA606)"), ''),
273         }
274
275     def __tr(self,s,c = None):
276         return s