                       .toString
                       xml/parse
                       :content))
-
-(when (nil? @update?)
-  (write-pref :update true))
 
 (defn get-string
   "Returns the localized string for the given keyword."

            [nightweb.io :as io]
            [ring.util.codec :as codec])
  (:import [java.util Locale]))

(def prefs (.node (java.util.prefs.Preferences/userRoot) "nightweb"))



(def update? (atom (read-pref :update)))
(def remote? (atom (read-pref :remote)))

(when (nil? @update?)
  (write-pref :update true))

; language

(def lang-files {"en" "values/strings.xml"
                 "ja" "values-ja/strings.xml"})
(def lang-strings (-> (get lang-files (.getLanguage (Locale/getDefault)))
