![]() |
Editing The Date Code In The WP.LRS File |
The information in this document applies to:
WordPerfect® 5.1 for DOS
Problem
Solutions: NOTE: If users have more questions about editing the .LRS file, there is a lot of information in the reference section of the WordPerfect manual under "Language" and "Language Resource File." The default Date format in WordPerfect is 3 1, 4 (Month Day, Year). Users have the option of changing this format through Shift-F5, 3. The date options are quite extensive but do not include case changes. For example, one user wanted the month to appear in all caps. Since this option was not available in Date Format the user retrieved the WP.LRS file and edited the appearance of each month in the English - United States section. When a user has a language code in a document, WordPerfect looks to the WP.LRS (Language Resource) file for the proper date format. The format for most languages besides US English is DATE MONTH YEAR, for example, instead of June 1, 1990, the date would be formatted 1 June 1990 and 06/01/90 would be 01/06/90. The situation may arise that a user, although using a language code, still wants the date formatted in US English. To do this, the user can edit the WP.LRS file and change the date code for the language that is being used. Because the WP.LRS file is in Notebook format, the file can be edited in WordPerfect or in Notebook. To edit in WordPerfect: 1. Retrieve the WP.LRS file into a clear screen in WordPerfect. 2. Search for the language code being used in the document (for example UK for UK English). 3. The line after the language code will say 1 3 4. Change this to 3 1, 4. 4. Save the document and exit WordPerfect. 5. When you enter WP again, the date format will show correctly for the document even if the language is other than US English. To edit in Notebook: 1. Retrieve the WP.LRS file into Notebook. 2. Cursor through the List Display to the language code being used in the document. When the correct language code is highlighted, press Enter. 3. Press Tab to move to the field for the date format. 4. Change the 1 3 4 to 3 1, 4. 5. Exit Notebook, saving the WP.LRS file. When you enter WP, the date format will show correctly for the document even if the language is other than US English. Some problems that can arise regarding the Date/Time format are as follows: 1. When a user enters WP with the "{WP" user initials and changes the settings in Setup (i.e., Date Format, Justification, Language Code, Margins, etc.), all of the format changes hold except the Date Format. The Date/Time always changes back to the wrong format. The problem is that the user was trying to change the default Date/Time format in Setup (Shift-F1, I, 2) and the format was not changing in the document (Shift-F5, C). The customer was changing the language code in Setup to UK, which has a different Date/Time format. The solution is to either delete the WP.LRS file from the WP directory, or to edit it and change the date format in the file. 2. The Date/Text format does not correspond to the format set up in the SetUp menu (i.e., Shift-F1, 4, option 2). The customer selects the date format 1 3 4 (or anything else) in the Setup menu. When the customer does Date Text in the document (Shift F5, 1), it appears as 3, 1 4. This only seems to happen when the [Lang:UK] code is not the current language code (i.e., the user has changed to US). Development said that this is an Enhancement. In the current release, if you specify a different date format (or anything else the .LRS file handles) in Setup, the package language will recognize the new format specified in Setup. However, if you enter a language code anywhere else in the document, WP will read the .LRS file for defaults from that point on. So, only the package language reads Setup defaults. Any other language codes in the document read the .LRS file for settings. This applies to WordPerfect 5.0 as well. 3. Another customer updated the Canadian release with the US release. The customer is still using the WP{WP}UK.LEX with the [Lang:UK] code in Setup Initial Codes. The customer had changed the Date Format in Setup to 5, 3, 1 but it would not register when the date was inserted in documents. After deleting the [Lang:UK] code, the date code format changed. This is working as designed. The date format in Setup only affects the language WordPerfect is in. For example, this is the US version, so the date format in Setup only affects the date code if the language, at the time, is US. To change the date for UK, in the US version, you must use the .LRS file. Note: If the date does not reflect the change made in the .LRS file, verify that there are no other copies of the .LRS file on the hard drive. The changes made in the WP.LRS file may not be read if an additional copy of the .LRS file is found in another directory listed in the Path command. |
Answer:
Details:
Product specifications, packaging, technical support and information (*Specifications*) refer to theUnited States retail English version only. Specifications for other versions may vary. All Specifications, claims, features, representations, and/or comparisons provided are correct to the best of our knowledge of the date of publication, but are subject to change without notice.OUR MAXIMUM AGGREGATE LIABILITY TO YOU AND THAT OF OUR DEALERS AND SUPPLIERS IS LIMITED. IT SHALL NOTEXCEED THE AMOUNT YOU PAID TO ACCESS THE INFORMATION. SEE LEGAL DISCLAIMER. |