JosephMajaseSithole / datejs

Automatically exported from code.google.com/p/datejs
0 stars 0 forks source link

Not way to localize "today", "yesterday" and other #61

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Localized version of script should also provide localized versions of
common keywords like "today" or "last"

What is the expected output? What do you see instead?
Localized words should work just like english based words

What version of the product are you using? On what operating system?
Current date.js tested on date-pl-PL.js

Please provide any additional information below.

Original issue reported on code.google.com by Ksiezykm...@gmail.com on 3 Feb 2009 at 2:06

GoogleCodeExporter commented 8 years ago
The following comments are located within each of the culture specific .js 
files, see
http://code.google.com/p/datejs/source/browse/trunk/src/globalization/pl-PL.js

    /**
     * NOTE: If a string format is not parsing correctly, but
     * you would expect it parse, the problem likely lies below. 
     * 
     * The following regex patterns control most of the string matching
     * within the parser.
     * 
     * The Month name and Day name patterns were automatically generated
     * and in general should be (mostly) correct. 
     *
     * Beyond the month and day name patterns are natural language strings.
     * Example: "next", "today", "months"
     *
     * These natural language string may NOT be correct for this culture. 
     * If they are not correct, please translate and edit this file
     * providing the correct regular expression pattern. 
     *
     * If you modify this file, please post your revised CultureInfo file
     * to the Datejs Forum located at http://www.datejs.com/forums/.
     *
     * Please mark the subject of the post with [CultureInfo]. Example:
     *    Subject: [CultureInfo] Translated "da-DK" Danish(Denmark)
     * 
     * We will add the modified patterns to the master source files.
     *
     * As well, please review the list of "Future Strings" section below. 
     */

Hope this helps.

Original comment by geoff%co...@gtempaccount.com on 3 Feb 2009 at 4:33