After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 318043 - Autofill fuction not localized
Autofill fuction not localized
Status: RESOLVED FIXED
Product: Gnumeric
Classification: Applications
Component: General
git master
Other Linux
: Normal normal
: ---
Assigned To: Jody Goldberg
Jody Goldberg
Depends on:
Blocks:
 
 
Reported: 2005-10-05 19:09 UTC by Luca Ferretti
Modified: 2005-10-09 20:50 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
a not so good fix (1005 bytes, patch)
2005-10-06 09:40 UTC, Jean Bréfort
committed Details | Review

Description Luca Ferretti 2005-10-05 19:09:00 UTC
It seems that autofill of weekdays and months (names) works only for words in
English language.

Steps to reproduce-
1. Start Gnumeric in a non-C locale (i.e. `LANG=it LANGUAGE=it_IT gnumeric` for
Italian)
2. Put in A1 "Gennaio" (== January)
3. Use autofill (Ctrl+drag)

Results: "Gennaio" is replied in all selected cells.

Trying the same using "January", it works fine. Of course same behavior for
weekdays names.

Aspected results:
Gnumeric should be able to select the language from the "template" string. I.e.
starting Gnumeric using Italian localization but using the French name for
January, autofill function should place month names in French language.


Notes:
Not sure, but Excel should be able to do something like 

	Bimestral1
	Bimestral2
	Bimestral3
	Bimestral4
	Bimestral5
	Bimestral6
	Bimestral1
	Bimestral2
	...
Comment 1 Jean Bréfort 2005-10-05 21:05:04 UTC
Confirmed
Comment 2 Jean Bréfort 2005-10-06 09:40:42 UTC
Created attachment 53096 [details] [review]
a not so good fix

The strings are now in goffice, that's why the translations were not found.
Comment 3 Jody Goldberg 2005-10-06 10:33:35 UTC
That is an ugly kludge, but with 1 day before release we don't have a lot of
choice.  Commit with a #warning to move the lists to go_locale for 1.7
Comment 4 Jean Bréfort 2005-10-06 16:20:53 UTC
Comment on attachment 53096 [details] [review]
a not so good fix

I tested the Bimester1... stuff with xl2k. It does not work, but things work
with Trimester. I get Trimester1 to Trimester4 and the back to Trimester1.
Comment 5 Andreas J. Guelzow 2005-10-07 06:23:22 UTC
Hmm:
Expected results:
Gnumeric should be able to select the language from the "template" string. I.e.
starting Gnumeric using Italian localization but using the French name for
January, autofill function should place month names in French language.

This is not a reasonable expectation:

Suppose I enter "August" and "September" and then "autofill". Should the next
cell be "October" (English) or "Oktober" (German). We should pretty much stick
with the current locale.
Comment 6 Jean Bréfort 2005-10-07 06:37:04 UTC
Agreed, anyway, gnumeric will never load strings in all available locales.
Comment 7 Jody Goldberg 2005-10-09 20:50:13 UTC
1) I don't see a huge win to load all translations of all lists for checking.
2) This patch seems sufficient for now.