fba412e
Index: lib/alexandria/models/library.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/models/library.rb	(revision 1066)
fba412e
+++ lib/alexandria/models/library.rb	(revision 1067)
fba412e
@@ -41,7 +41,7 @@
fba412e
 
fba412e
     include GetText
fba412e
     extend GetText
fba412e
-    bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+    bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
     BOOK_ADDED, BOOK_UPDATED, BOOK_REMOVED = (0..3).to_a
fba412e
     include Observable
fba412e
Index: lib/alexandria/book_providers/renaud.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/book_providers/renaud.rb	(revision 1066)
fba412e
+++ lib/alexandria/book_providers/renaud.rb	(revision 1067)
fba412e
@@ -24,7 +24,7 @@
fba412e
   class BookProviders
fba412e
     class RENAUDProvider < GenericProvider
fba412e
       include GetText
fba412e
-      #GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      #GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
       BASE_URI = "http://www.renaud-bray.com/"
fba412e
       ACCENTUATED_CHARS = "áàâäçéèêëíìîïóòôöúùûü"
fba412e
 
fba412e
Index: lib/alexandria/book_providers/amazon_aws.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/book_providers/amazon_aws.rb	(revision 1066)
fba412e
+++ lib/alexandria/book_providers/amazon_aws.rb	(revision 1067)
fba412e
@@ -25,7 +25,7 @@
fba412e
     class AmazonProvider < GenericProvider
fba412e
       include Logging
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       #CACHE_DIR = File.join(Alexandria::Library::DIR, '.amazon_cache')
fba412e
 
fba412e
Index: lib/alexandria/book_providers/mcu.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/book_providers/mcu.rb	(revision 1066)
fba412e
+++ lib/alexandria/book_providers/mcu.rb	(revision 1067)
fba412e
@@ -27,7 +27,7 @@
fba412e
     class MCUProvider < GenericProvider
fba412e
       include Logging
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       LANGUAGES = {
fba412e
         'es' => '1'
fba412e
Index: lib/alexandria/book_providers/proxis.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/book_providers/proxis.rb	(revision 1066)
fba412e
+++ lib/alexandria/book_providers/proxis.rb	(revision 1067)
fba412e
@@ -23,7 +23,7 @@
fba412e
     class ProxisProvider < GenericProvider
fba412e
       include GetText
fba412e
       include Logging
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       LANGUAGES = {
fba412e
         'nl' => '1',
fba412e
Index: lib/alexandria/book_providers/z3950.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/book_providers/z3950.rb	(revision 1066)
fba412e
+++ lib/alexandria/book_providers/z3950.rb	(revision 1067)
fba412e
@@ -26,7 +26,7 @@
fba412e
     class Z3950Provider < AbstractProvider
fba412e
       include Logging
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(name="Z3950", fullname="Z39.50")
fba412e
         super
fba412e
@@ -174,7 +174,7 @@
fba412e
       unabstract
fba412e
 
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize
fba412e
         super("LOC", _("Library of Congress (Usa)"))
fba412e
@@ -207,7 +207,7 @@
fba412e
       unabstract
fba412e
 
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize
fba412e
         super("BL", _("British Library"))
fba412e
@@ -296,7 +296,7 @@
fba412e
       unabstract
fba412e
 
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize
fba412e
         super("SBN", "Servizio Bibliotecario Nazionale (Italy)")
fba412e
Index: lib/alexandria/book_providers.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/book_providers.rb	(revision 1066)
fba412e
+++ lib/alexandria/book_providers.rb	(revision 1067)
fba412e
@@ -25,7 +25,7 @@
fba412e
     include Singleton
fba412e
     include Observable
fba412e
     include GetText
fba412e
-    GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+    GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
     SEARCH_BY_ISBN, SEARCH_BY_TITLE, SEARCH_BY_AUTHORS,
fba412e
     SEARCH_BY_KEYWORD = (0..3).to_a
fba412e
Index: lib/alexandria/import_library.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/import_library.rb	(revision 1066)
fba412e
+++ lib/alexandria/import_library.rb	(revision 1067)
fba412e
@@ -22,7 +22,7 @@
fba412e
 
fba412e
     include GetText
fba412e
     extend GetText
fba412e
-    bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+    bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
     def self.all
fba412e
       [
fba412e
Index: lib/alexandria/export_library.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/export_library.rb	(revision 1066)
fba412e
+++ lib/alexandria/export_library.rb	(revision 1067)
fba412e
@@ -102,7 +102,7 @@
fba412e
     include GetText
fba412e
     include Logging
fba412e
     extend GetText
fba412e
-    bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+    bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
     def self.all
fba412e
       [
fba412e
Index: lib/alexandria/smart_library.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/smart_library.rb	(revision 1066)
fba412e
+++ lib/alexandria/smart_library.rb	(revision 1067)
fba412e
@@ -23,7 +23,7 @@
fba412e
     include Logging
fba412e
     include GetText
fba412e
     extend GetText
fba412e
-    bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+    bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
     ALL_RULES, ANY_RULE = 1, 2
fba412e
     attr_reader :name
fba412e
@@ -290,7 +290,7 @@
fba412e
     class Rule
fba412e
       include GetText
fba412e
       extend GetText
fba412e
-      bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       attr_accessor :operand, :operation, :value
fba412e
 
fba412e
@@ -343,7 +343,7 @@
fba412e
       module Operands
fba412e
         include GetText
fba412e
         extend GetText
fba412e
-        bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+        bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
         LEFT = [
fba412e
                 LeftOperand.new(:title, _("Title"), String),
fba412e
@@ -375,7 +375,7 @@
fba412e
         include Logging
fba412e
         include GetText
fba412e
         extend GetText
fba412e
-        bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+        bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
         IS_TRUE = Operator.new(
fba412e
                                :is_true,
fba412e
Index: lib/alexandria/about.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/about.rb	(revision 1066)
fba412e
+++ lib/alexandria/about.rb	(revision 1067)
fba412e
@@ -20,7 +20,7 @@
fba412e
   TITLE = 'Alexandria'
fba412e
   TEXTDOMAIN = 'alexandria'
fba412e
   extend GetText
fba412e
-  bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+  bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
   DESCRIPTION = _('A program to help you manage your book collection.')
fba412e
   COPYRIGHT = "Copyright (C) 2004,2005,2006 Laurent Sansonetti\n" +
fba412e
     "Copyright (C) 2007,2008,2009 Alexandria Contributors"
fba412e
Index: lib/alexandria/ui/dialogs/misc_dialogs.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/misc_dialogs.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/misc_dialogs.rb	(revision 1067)
fba412e
@@ -19,7 +19,7 @@
fba412e
   module UI
fba412e
     class ConflictWhileCopyingDialog < AlertDialog
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, library, book)
fba412e
         super(parent,
fba412e
@@ -42,7 +42,7 @@
fba412e
 
fba412e
     class ReallyDeleteDialog < AlertDialog
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, library, books=nil)
fba412e
         # Deleting a library.
fba412e
Index: lib/alexandria/ui/dialogs/book_properties_dialog_base.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/book_properties_dialog_base.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/book_properties_dialog_base.rb	(revision 1067)
fba412e
@@ -20,7 +20,7 @@
fba412e
     class BookPropertiesDialogBase < GladeBase
fba412e
       include GetText
fba412e
       extend GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       COVER_MAXWIDTH = 140    # pixels
fba412e
 
fba412e
Index: lib/alexandria/ui/dialogs/new_book_dialog_manual.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/new_book_dialog_manual.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/new_book_dialog_manual.rb	(revision 1067)
fba412e
@@ -20,7 +20,7 @@
fba412e
     class NewBookDialogManual < BookPropertiesDialogBase
fba412e
       include GetText
fba412e
       extend GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       TMP_COVER_FILE = File.join(Dir.tmpdir, "tmp_cover")
fba412e
       def initialize(parent, library, &on_add_cb)
fba412e
Index: lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/smart_library_properties_dialog_base.rb	(revision 1067)
fba412e
@@ -20,7 +20,7 @@
fba412e
     class SmartLibraryPropertiesDialogBase < Gtk::Dialog
fba412e
       include Logging
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       attr_reader :predicate_operator_rule
fba412e
 
fba412e
Index: lib/alexandria/ui/dialogs/export_dialog.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/export_dialog.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/export_dialog.rb	(revision 1067)
fba412e
@@ -19,7 +19,7 @@
fba412e
   module UI
fba412e
     class ConfirmEraseDialog < AlertDialog
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, filename)
fba412e
         super(parent, _("File already exists"),
fba412e
@@ -42,7 +42,7 @@
fba412e
     class ExportDialog < Gtk::FileChooserDialog
fba412e
       include GetText
fba412e
       extend GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       FORMATS = Alexandria::ExportFormat.all
fba412e
       THEMES = Alexandria::WebTheme.all
fba412e
Index: lib/alexandria/ui/dialogs/preferences_dialog.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/preferences_dialog.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/preferences_dialog.rb	(revision 1067)
fba412e
@@ -95,7 +95,7 @@
fba412e
 
fba412e
     class ProviderPreferencesDialog < ProviderPreferencesBaseDialog
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, provider)
fba412e
         super(_("Preferences for %s") % provider.fullname,
fba412e
@@ -120,7 +120,7 @@
fba412e
 
fba412e
     class NewProviderDialog <  ProviderPreferencesBaseDialog
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent)
fba412e
         super(_("New Provider"),
fba412e
@@ -209,7 +209,7 @@
fba412e
     class PreferencesDialog < GladeBase
fba412e
       include Alexandria::Logging
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, &changed_block)
fba412e
         super('preferences_dialog.glade')
fba412e
Index: lib/alexandria/ui/dialogs/new_book_dialog.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/new_book_dialog.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/new_book_dialog.rb	(revision 1067)
fba412e
@@ -26,7 +26,7 @@
fba412e
   module UI
fba412e
     class KeepBadISBNDialog < AlertDialog
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, book)
fba412e
         super(parent, _("Invalid ISBN '%s'") % book.isbn,
fba412e
@@ -51,7 +51,7 @@
fba412e
       include Logging
fba412e
       include GetText
fba412e
       extend GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, selected_library=nil, &block)
fba412e
         super('new_book_dialog.glade')
fba412e
Index: lib/alexandria/ui/dialogs/new_smart_library_dialog.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/new_smart_library_dialog.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/new_smart_library_dialog.rb	(revision 1067)
fba412e
@@ -19,7 +19,7 @@
fba412e
   module UI
fba412e
     class NewSmartLibraryDialog < SmartLibraryPropertiesDialogBase
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, &block)
fba412e
         super(parent)
fba412e
Index: lib/alexandria/ui/dialogs/book_properties_dialog.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/book_properties_dialog.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/book_properties_dialog.rb	(revision 1067)
fba412e
@@ -21,7 +21,7 @@
fba412e
       include Logging
fba412e
       include GetText
fba412e
       extend GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, library, book)
fba412e
         super(parent, library.cover(book))
fba412e
Index: lib/alexandria/ui/dialogs/smart_library_properties_dialog.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/smart_library_properties_dialog.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/smart_library_properties_dialog.rb	(revision 1067)
fba412e
@@ -19,7 +19,7 @@
fba412e
   module UI
fba412e
     class SmartLibraryPropertiesDialog < SmartLibraryPropertiesDialogBase
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, smart_library, &block)
fba412e
         super(parent)
fba412e
Index: lib/alexandria/ui/dialogs/acquire_dialog.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/acquire_dialog.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/acquire_dialog.rb	(revision 1067)
fba412e
@@ -213,7 +213,7 @@
fba412e
       include GetText
fba412e
       include Logging
fba412e
       extend GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, selected_library=nil, &block)
fba412e
         super('acquire_dialog.glade')
fba412e
Index: lib/alexandria/ui/dialogs/about_dialog.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/about_dialog.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/about_dialog.rb	(revision 1067)
fba412e
@@ -19,7 +19,7 @@
fba412e
   module UI
fba412e
     class AboutDialog < Gtk::AboutDialog
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       GPL = <
fba412e
 Alexandria is free software; you can redistribute it and/or
fba412e
Index: lib/alexandria/ui/dialogs/import_dialog.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/dialogs/import_dialog.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/dialogs/import_dialog.rb	(revision 1067)
fba412e
@@ -30,7 +30,7 @@
fba412e
   module UI
fba412e
     class SkipEntryDialog < AlertDialog
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       def initialize(parent, message)
fba412e
         super(parent, _("Error while importing"),
fba412e
@@ -53,7 +53,7 @@
fba412e
       include GetText
fba412e
       include Logging
fba412e
 
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       FILTERS = Alexandria::ImportFilter.all
fba412e
 
fba412e
Index: lib/alexandria/ui/main_app.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/main_app.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/main_app.rb	(revision 1067)
fba412e
@@ -43,7 +43,7 @@
fba412e
   module UI
fba412e
     include Logging
fba412e
     include GetText
fba412e
-    GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+    GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
     class MainApp
fba412e
       include Logging
fba412e
Index: lib/alexandria/ui/listview.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/listview.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/listview.rb	(revision 1067)
fba412e
@@ -20,7 +20,7 @@
fba412e
   module UI
fba412e
     include Logging
fba412e
     include GetText
fba412e
-    GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+    GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
     class ListViewManager
fba412e
       include Logging
fba412e
       include GetText
fba412e
Index: lib/alexandria/ui/ui_manager.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/ui_manager.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/ui_manager.rb	(revision 1067)
fba412e
@@ -24,7 +24,7 @@
fba412e
         :iconview_model, :filtered_model, :on_books_selection_changed
fba412e
       include Logging
fba412e
       include GetText
fba412e
-      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+      GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
       module Columns
fba412e
         COVER_LIST, COVER_ICON, TITLE, TITLE_REDUCED, AUTHORS,
fba412e
Index: lib/alexandria/ui/libraries_combo.rb
fba412e
===================================================================
fba412e
--- lib/alexandria/ui/libraries_combo.rb	(revision 1066)
fba412e
+++ lib/alexandria/ui/libraries_combo.rb	(revision 1067)
fba412e
@@ -19,7 +19,7 @@
fba412e
 class Gtk::ComboBox
fba412e
   include GetText
fba412e
   extend GetText
fba412e
-  GetText.bindtextdomain(Alexandria::TEXTDOMAIN, nil, nil, "UTF-8")
fba412e
+  GetText.bindtextdomain(Alexandria::TEXTDOMAIN, :charset => "UTF-8")
fba412e
 
fba412e
   def populate_with_libraries(libraries, selected_library)
fba412e
     libraries_names = libraries.map { |x| x.name }