From: Espen B. <es...@gm...> - 2008-06-25 11:43:13
|
I now tried the debug in latest from SVN: 3.0.2-0.SVN10819M The debug prints "nb_NO found". If I write "17.07.1976" the date text entry turns red. Espen 2008/6/25, Benny Malengier <ben...@gm...>: > I did not know you could enter points in Dutch. > Anyway, entering here 17.07.1976, works just fine in Hardy, 3.0.1-0-SVN..., > and after save I see 17/07/1976, the normal dutch way of writing it. > > Are you sure the dutch/swedish/norwegian date module is used, as obviously > the system supposes USA style dates. > So, do you in a terminal startup not see message like: > > "Date parser for", LANG, "not available, using default" ? > > To debug, perhaps add in your src/DateHandler/__init__.py some print > statement extra, eg > > try: > if LANG_TO_PARSER.has_key(LANG): > parser = LANG_TO_PARSER[LANG]() > print LANG, 'found' > else: > print LANG, 'not found, looking for ' , LANG_TO_PARSER[LANG_SHORT] > parser = LANG_TO_PARSER[LANG_SHORT]() > > Benny > > 2008/6/25 Espen Berg <es...@gm...>: > > > > Hi all! > > I just upgraded my Ubuntu to Hardy (8.04). When trying to enter dates > > for events in GRAMPS, I always get an alert (red blinking background > > in the date entry) when entering dates of type "17.07.1976". If I > > however enter "07.17.1976" it works. The latter date format is not > > built into my brain or fingers, so it is not even an option to use > > that one. > > > > I've tried different languages to verify that it is consistent, and it > > is. Both Dutch, Swedish and Norwegian gives me the same warning for > > the same date entry. > > > > Just for the verification, I downloaded GRAMPS 2.2.10 and tried the > > same - with the same result. This way I assume I've struck into some > > locale stuff (again). > > > > Any ideas of how to be able to enter dates on the format "dd.mm.yyyy" > > (which is the most normal format for e.g. Norwegians). > > > > Output from shell: > > > > espenbe@ministerial:~$ locale > > LANG=nb_NO.UTF-8 > > LC_CTYPE="nb_NO.UTF-8" > > LC_NUMERIC="nb_NO.UTF-8" > > LC_TIME="nb_NO.UTF-8" > > LC_COLLATE="nb_NO.UTF-8" > > LC_MONETARY="nb_NO.UTF-8" > > LC_MESSAGES="nb_NO.UTF-8" > > LC_PAPER="nb_NO.UTF-8" > > LC_NAME="nb_NO.UTF-8" > > LC_ADDRESS="nb_NO.UTF-8" > > LC_TELEPHONE="nb_NO.UTF-8" > > LC_MEASUREMENT="nb_NO.UTF-8" > > LC_IDENTIFICATION="nb_NO.UTF-8" > > LC_ALL= > > > > > > > > Espen > > > > > ------------------------------------------------------------------------- > > Check out the new SourceForge.net Marketplace. > > It's the best place to buy or sell services for > > just about anything Open Source. > > http://sourceforge.net/services/buy/index.php > > _______________________________________________ > > Gramps-devel mailing list > > Gra...@li... > > https://lists.sourceforge.net/lists/listinfo/gramps-devel > > > > |