13 replies [Last post]
geopap's picture
Offline
Joined: 01/07/2008
Juice: 11
Was this information Helpful?

Here is my contribution with the Greek CIF file

PreviewAttachmentSize
greece_300_1.cif3.72 KB
Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: Greek CIF File

Ahh, very cool. Test on Livetest, will get it committed to core ASAP.

finkpad's picture
Offline
Joined: 12/08/2007
Juice: 63
Cant get GREECE to work with Version 2

I'm running Uber6 RC2 and Greece is screwy... any ideas folks?

Déja's picture
Offline
Joined: 06/24/2009
Juice: 4
Re: Greek CIF File

For some reason, the text from this CIF does not appear to be encoded/decoded properly. Here's how it is displayed on the country settings screen in the übercart configuration panel:

Ελλάδα GRC 1 disable remove

That is also how it is displayed in mysql, when selected from the command line. This problem seems to be pervasive with any country/zone data that contains unicode characters. Is this a problem with übercart's import, the encoding of the CIF, the configuration of the database or table, or some other problem?

We are using übercart 5.x-1.7 on drupal 5.18

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Re: Greek CIF File

It works fine for me. The file I have is encoded in UTF-8, and that's how my pages are being rendered, both in Drupal and in phpMyAdmin. My text editor just displays rectangles, but I suspect that's a font problem since it says the file is UTF-8 (OpenOffice.org displays the characters in Times New Roman perfectly well.), and I wouldn't expect cmd.exe to handle Unicode anyway.

Drupal sets itself up to declare that it renders pages in Unicode, though I suppose a theme could change that. There should be a <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> tag in the page.tpl.php file. Your database tables should also be in the utf8_unicode_ci collation as well. I still wouldn't expect your command line to show them correctly, though.

Déja's picture
Offline
Joined: 06/24/2009
Juice: 4
Re: Re: Re: Greek CIF File

I should clarify, command line being an SSH connection to an ubuntu server, not a windows-based cmd.exe

Additionally, the theme in question is the garland theme I use as the administration theme, which I would not expect to interfere with internationalization.

chadhester's picture
Offline
Joined: 05/12/2009
Juice: 51
Country Name??!!!

Most CIF files use an English spelling for the country name... But why are Greece, Ukraine, and Iran the only ones spelled in their native tongue???

Using D6 and UC2.2

Regards,
Chad Hester

chadhester's picture
Offline
Joined: 05/12/2009
Juice: 51
Re: Country Name??!!!

Failed to mention Peru and Turkey... There may be others, but I count 5 of 149

Regards,
Chad Hester

Lyle's picture
Offline
AdministratoreLiTe!
Joined: 08/07/2007
Juice: 6846
Re: Country Name??!!!

That's how they were submitted by the people that wrote them. In retrospect, it might be better to translate the files into English, and then use t() to make the names translatable into any language.

chadhester's picture
Offline
Joined: 05/12/2009
Juice: 51
Re: Re: Country Name??!!!

I couldn't agree more. In fact, that what I originally expected. For now I've changed the entries in my database, but I assume that any updated CIF imports will knock these back.

I also noticed that the "zones" in some of the CIF files are also in a country's native language.

Thinking exactly what you did with t() to the rescue. I guess English could be the "standard" language for these things, but I also have to recall that some of these developers might not be English-speakers, primarily. I'd rather have something in a non-English language than nothing at all.

Another aside: Perhaps we might reach a day where we could have all CIF files in English, a country's native language, and any other popular options... But all work that I certainly don't have any more time than most to do.

... in an ideal world, eh?

Smiling

Thank you to all authors and contributors nonetheless for all your efforts.

Drupal and Ubercart TO THA MAAAAAAAAAAXXXXX ! ! ! !

Regards,
Chad Hester

arielgold's picture
Offline
Joined: 02/14/2010
Juice: 63
Re: Re: Re: Country Name??!!!

I see this thread is a year old, but I have the most recent version of ubercart and Greece (and I'm guessing Iran and Ukraine) are still in their native tongue, not English.

Is this something that will be fixed?

ribblevalley's picture
Offline
Joined: 10/06/2009
Juice: 79
Re: Re: Re: Re: Country Name??!!!

Crete is missing from the CIF

array(300, 'KRE', 'Κρήτη'),

bserem's picture
Offline
Joined: 07/13/2009
Juice: 30
Re: Re: Re: Re: Re: Country Name??!!!

Crete is an island that contains four regions (Chania, Heraklion etc)

jdln's picture
Offline
Joined: 03/08/2010
Juice: 184
Re: Re: Re: Re: Country Name??!!!

Subscribing