OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #include "../../include/javascript/resource.h" | 7 #include "../../include/javascript/resource.h" |
8 | 8 |
9 CFX_WideString JSGetStringFromID(CJS_Context* pContext, FX_UINT id) | 9 CFX_WideString JSGetStringFromID(CJS_Context* pContext, FX_UINT id) |
10 { | 10 { |
(...skipping 21 matching lines...) Expand all Loading... |
32 case IDS_STRING_JSBUSY: | 32 case IDS_STRING_JSBUSY: |
33 return L"System is busy."; | 33 return L"System is busy."; |
34 case IDS_STRING_JSEVENT: | 34 case IDS_STRING_JSEVENT: |
35 return L"Duplicate formfield event found."; | 35 return L"Duplicate formfield event found."; |
36 case IDS_STRING_RUN: | 36 case IDS_STRING_RUN: |
37 return L"Script ran successfully."; | 37 return L"Script ran successfully."; |
38 case IDS_STRING_JSPRINT1: | 38 case IDS_STRING_JSPRINT1: |
39 return L"The second parameter can't be converted to a Date."; | 39 return L"The second parameter can't be converted to a Date."; |
40 case IDS_STRING_JSPRINT2: | 40 case IDS_STRING_JSPRINT2: |
41 return L"The second parameter is an invalid Date!"; | 41 return L"The second parameter is an invalid Date!"; |
42 case IDS_JSPARAM_INCORRECT: | 42 case IDS_STRING_JSNOGLOBAL: |
43 return L"Global value not found."; | 43 return L"Global value not found."; |
| 44 case IDS_STRING_JSREADONLY: |
| 45 return L"Cannot assign to readonly property."; |
44 default: | 46 default: |
45 return L""; | 47 return L""; |
46 } | 48 } |
47 } | 49 } |
OLD | NEW |