wmr049 / google-api-for-dotnet

Automatically exported from code.google.com/p/google-api-for-dotnet
0 stars 0 forks source link

Why making the LanguageUtility methods internal ? #1

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The only way to specify a language is through the enumeration. 
How can I get the enum value for a language code ? I don't like Enum.Parse...

Original issue reported on code.google.com by gildas.g...@gmail.com on 17 Jun 2008 at 3:43

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Google.API.Language, this enum is public. You will find it in a supper namespace
"Google.API".

I need to use the Language enum in more than one project, so I put it there.

You can check the Document for more information.

Best regards.

iron9light

Original comment by iron9li...@gmail.com on 18 Jun 2008 at 1:25

GoogleCodeExporter commented 9 years ago
The reasoning makes sense, but it would be nice to be able to convert between 
ISO
abbreviations and the Enum. For example: I wanted to use the local system 
language as
the default "from" in a translation, but the only data I have for this is from
System.Globalization.CultureInfo.CurrentCulture.TwoLetterISOLanguageName, which 
means
I have to compile my own version of this code or duplicate the "dictionary" 
outside.

Original comment by m...@neilmsheldon.name on 29 Dec 2008 at 6:06

GoogleCodeExporter commented 9 years ago
It will support CultureInfo in the future. 

Original comment by iron9li...@gmail.com on 1 Jan 2009 at 12:41