Ticket #9124: Remove horde/Core dependency from horde/Nls.
authorMichael M Slusarz <slusarz@curecanti.org>
Tue, 13 Jul 2010 19:45:58 +0000 (13:45 -0600)
committerMichael M Slusarz <slusarz@curecanti.org>
Wed, 14 Jul 2010 04:31:10 +0000 (22:31 -0600)
commita0ce9ace9c3114b59d4926dd43c89cd19f4794c4
tree535fcc7d25ab0754cbfbe0f51fff4a3118e61492
parent4d12a87d8ed2dc3f316684d01df343e2242e632e
Ticket #9124: Remove horde/Core dependency from horde/Nls.

Move all of the Horde_Nls:: code dependent on Horde configuration to
horde/Core.  A core dependency has thus manifested itself in a bunch of
framework libraries thought to be horde/Core free (since getCharset() is
dependent on the local Horde configuration).

The following functions have been moved to registry:
Horde_Nls::config -> Horde_Registry::$nlsconfig
Horde_Nls::select() -> Horde_Registry::preferredLang()
Horde_Nls::setLanguage() -> Horde_Registry::setLanguage()
Horde_Nls::setTextdomain() -> Horde_Registry::setTextdomain()
Horde_Nls::setLanguageEnvironment() ->
Horde_Registry::setLanguageEnvironment()
Horde_Nls::isValid() -> Horde_Registry::isValidLang()
Horde_Nls::getCharset() -> Horde_Registry::getCharset()
Horde_Nls::getExternalCharset() -> Horde_Registry::getExternalCharset()
Horde_Nls::getEmailCharset() -> Horde_Registry::getEmailCharset()
Horde_Nls::setCharset() -> Horde_Registry::setCharset()
Horde_Nls::setCharsetEnvironment() ->
Horde_Registry::setCharsetEnvironment()
Horde_Nls::setTimeZone() -> Horde_Registry::setTimeZone()

Horde_Nls::generateFlagImageByHost() ->
Horde_Ui_FlagImage::generateFlagImageByHost()

Horde_Registry::initApp() now accepts the boolean 'timezone' parameter,
which will set the timezone if true.
349 files changed:
agora/lib/Agora.php
agora/lib/Messages.php
agora/lib/View.php
agora/messages/abuse.php
agora/rss/index.php
agora/rss/messages.php
agora/rss/threads.php
agora/templates/common-header.inc
ansel/gallery/sort.php
ansel/img/ecard.php
ansel/lib/Ansel.php
ansel/lib/Block/gallery.php
ansel/lib/Block/my_galleries.php
ansel/lib/Block/recent_comments.php
ansel/lib/Block/recent_faces.php
ansel/lib/Block/recently_added.php
ansel/lib/Block/recently_added_geodata.php
ansel/lib/GalleryMode/Date.php
ansel/lib/Image.php
ansel/lib/Storage.php
ansel/lib/Tags.php
ansel/lib/Tile/DateGallery.php
ansel/lib/Tile/Gallery.php
ansel/lib/View/Base.php
ansel/lib/Widget/Links.php
ansel/rss.php
ansel/scripts/recursive_import.php
ansel/templates/captions/captions.inc
ansel/templates/common-header.inc
ansel/templates/faces/gallery.inc
ansel/templates/gallery/gallery.inc
ansel/templates/image/crop_image.inc
ansel/templates/image/edit_image.inc
ansel/templates/image/preview_cropimage.inc
ansel/templates/image/preview_image.inc
ansel/templates/image/resize_image.inc
ansel/templates/list/header.inc
ansel/templates/view/results.inc
ansel/templates/xppublish/new.inc
babel/lib/Display.php
babel/templates/common-header.inc
chora/annotate.php
chora/browsedir.php
chora/cvsgraph.php
chora/diff.php
chora/history.php
chora/lib/Chora.php
chora/stats.php
chora/templates/common-header.inc
crumb/templates/common-header.inc
drag_n_drop_portal/block.php
drag_n_drop_portal/lib/Block/Layout/View/js.php
fima/data.php
fima/lib/Driver/sql.php
fima/lib/base.php
fima/templates/common-header.inc
folks/config/hooks.php.dist
folks/lib/Folks.php
folks/lib/Notification/mail.php
folks/scripts/mail-filter.php
folks/scripts/mail.php
folks/templates/common-header.inc
folks/templates/feed/activities.php
folks/templates/feed/feed.php
framework/Ajax/lib/Horde/Ajax/Imple/SpellChecker.php
framework/Alarm/lib/Horde/Alarm/Sql.php
framework/Auth/lib/Horde/Auth/Cyrsql.php
framework/Auth/lib/Horde/Auth/Cyrus.php
framework/Auth/lib/Horde/Auth/Imap.php
framework/Block/lib/Horde/Block/Layout/Manager.php
framework/Core/lib/Horde.php
framework/Core/lib/Horde/Config.php
framework/Core/lib/Horde/Core/Auth/Signup/Base.php
framework/Core/lib/Horde/Core/Autoloader/Callback/Nls.php [new file with mode: 0644]
framework/Core/lib/Horde/Core/Binder/Alarm.php
framework/Core/lib/Horde/Core/Prefs/Ui.php
framework/Core/lib/Horde/Core/Prefs/Ui/Widgets.php
framework/Core/lib/Horde/Registry.php
framework/Core/package.xml
framework/Crypt/lib/Horde/Crypt/Pgp.php
framework/Crypt/lib/Horde/Crypt/Smime.php
framework/Crypt/test/Horde/Crypt/bug_6601.phpt
framework/Crypt/test/Horde/Crypt/pgp_verify.phpt
framework/Data/lib/Horde/Data/Csv.php
framework/DataTree/DataTree/sql.php
framework/Form/Form/Renderer.php
framework/Group/lib/Horde/Group/Kolab.php
framework/Group/lib/Horde/Group/Ldap.php
framework/Kolab/Kolab.php
framework/Kolab_Filter/lib/Horde/Kolab/Filter/Base.php
framework/Kolab_Format/examples/Horde/Kolab/Format/event.php
framework/Kolab_Format/examples/Horde/Kolab/Format/new_type.php
framework/Kolab_Format/lib/Horde/Kolab/Format/Xml.php
framework/Kolab_Format/test/Horde/Kolab/Format/Integration/ContactTest.php
framework/Kolab_Format/test/Horde/Kolab/Format/Integration/EventTest.php
framework/Kolab_Format/test/Horde/Kolab/Format/Integration/MimeAttrTest.php
framework/Kolab_Format/test/Horde/Kolab/Format/Integration/PreferencesTest.php
framework/Kolab_Format/test/Horde/Kolab/Format/Integration/RecurrenceTest.php
framework/Kolab_Format/test/Horde/Kolab/Format/Integration/XmlTest.php
framework/Kolab_Storage/lib/Horde/Kolab/Storage/Driver/Namespace.php
framework/Kolab_Storage/lib/Horde/Kolab/Storage/Folder/Base.php
framework/Kolab_Storage/test/Horde/Kolab/Storage/Class/Driver/CclientTest.php
framework/Kolab_Storage/test/Horde/Kolab/Storage/Class/Driver/ImapTest.php
framework/Kolab_Storage/test/Horde/Kolab/Storage/Class/Driver/MockTest.php
framework/Kolab_Storage/test/Horde/Kolab/Storage/Class/Driver/PearTest.php
framework/Kolab_Storage/test/Horde/Kolab/Storage/FolderTest.php
framework/Kolab_Storage/test/Horde/Kolab/Storage/NamespaceTest.php
framework/Kolab_Storage/test/Horde/Kolab/Storage/Server/DriverTest.php
framework/Mime/lib/Horde/Mime.php
framework/Mime/lib/Horde/Mime/Mdn.php
framework/Mime/lib/Horde/Mime/Viewer/Css.php
framework/Mime/lib/Horde/Mime/Viewer/Deb.php
framework/Mime/lib/Horde/Mime/Viewer/Enriched.php
framework/Mime/lib/Horde/Mime/Viewer/Enscript.php
framework/Mime/lib/Horde/Mime/Viewer/Html.php
framework/Mime/lib/Horde/Mime/Viewer/Msexcel.php
framework/Mime/lib/Horde/Mime/Viewer/Mspowerpoint.php
framework/Mime/lib/Horde/Mime/Viewer/Msword.php
framework/Mime/lib/Horde/Mime/Viewer/Php.php
framework/Mime/lib/Horde/Mime/Viewer/Plain.php
framework/Mime/lib/Horde/Mime/Viewer/Rar.php
framework/Mime/lib/Horde/Mime/Viewer/Rfc822.php
framework/Mime/lib/Horde/Mime/Viewer/Richtext.php
framework/Mime/lib/Horde/Mime/Viewer/Rpm.php
framework/Mime/lib/Horde/Mime/Viewer/Rtf.php
framework/Mime/lib/Horde/Mime/Viewer/Smil.php
framework/Mime/lib/Horde/Mime/Viewer/Srchighlite.php
framework/Mime/lib/Horde/Mime/Viewer/Tgz.php
framework/Mime/lib/Horde/Mime/Viewer/Tnef.php
framework/Mime/lib/Horde/Mime/Viewer/Vcard.php
framework/Mime/lib/Horde/Mime/Viewer/Webcpp.php
framework/Mime/lib/Horde/Mime/Viewer/Wordperfect.php
framework/Mime/lib/Horde/Mime/Viewer/Zip.php
framework/Model/lib/Horde/Form/Renderer/Xhtml.php
framework/Model/lib/Horde/Form/VarRenderer/Xhtml.php
framework/Nls/lib/Horde/Nls.php
framework/Nls/package.xml
framework/Notification/lib/Horde/Notification/Event/Status.php
framework/Notification/test/Horde/Notification/Class/Notification/Event/StatusTest.php
framework/Prefs/lib/Horde/Prefs.php
framework/Prefs/lib/Horde/Prefs/Identity.php
framework/Rampage/scripts/Horde/Rampage/rampage.php
framework/Rpc/lib/Horde/Rpc/Jsonrpc.php
framework/Rpc/lib/Horde/Rpc/Soap.php
framework/Rpc/lib/Horde/Rpc/Webdav.php
framework/Share/lib/Horde/Share/Sql.php
framework/SpellChecker/lib/Horde/SpellChecker/Aspell.php
framework/SyncML/SyncML/Backend/Horde.php
framework/SyncML/tests/testsync.php
framework/Tree/lib/Horde/Tree/Javascript.php
framework/Ui/lib/Horde/Ui/FlagImage.php [new file with mode: 0644]
framework/Ui/lib/Horde/Ui/JsCalendar.php
framework/Ui/lib/Horde/Ui/Language.php
framework/Ui/lib/Horde/Ui/VarRenderer.php
framework/Ui/package.xml
framework/iCalendar/iCalendar.php
gollem/templates/common-header.inc
gollem/templates/javascript_defs.php
hermes/start.php
hermes/templates/common-header.inc
horde/admin/sessions.php
horde/admin/setup/config.php
horde/admin/setup/scripts.php
horde/admin/sqlshell.php
horde/config/hooks.php.dist
horde/config/nls.php
horde/lib/Block/sunrise.php
horde/lib/Block/time.php
horde/lib/Block/twitter_timeline.php
horde/lib/Prefs/Ui.php
horde/login.php
horde/scripts/upgrades/convert_datatree_groups_to_sql.php
horde/services/language.php
horde/services/portal/index.php
horde/services/portal/sidebar.php
horde/services/problem.php
horde/services/resetpassword.php
horde/services/twitter.php
horde/templates/admin/groups/edit.inc
horde/templates/common-header.inc
hylax/templates/common-header.inc
imp/attachment.php
imp/compose-dimp.php
imp/compose-mimp.php
imp/compose.php
imp/config/prefs.php.dist
imp/contacts.php
imp/folders.php
imp/lib/Ajax/Application.php
imp/lib/Ajax/Imple/ContactAutoCompleter.php
imp/lib/Block/Newmail.php
imp/lib/Compose.php
imp/lib/Contents.php
imp/lib/Crypt/Pgp.php
imp/lib/Crypt/Smime.php
imp/lib/Folder.php
imp/lib/IMP.php
imp/lib/Imap/Flags.php
imp/lib/LoginTasks/Task/DeleteSentmailMonthly.php
imp/lib/LoginTasks/Task/RenameSentmailMonthly.php
imp/lib/Message.php
imp/lib/Mime/Viewer/Alternative.php
imp/lib/Mime/Viewer/Appledouble.php
imp/lib/Mime/Viewer/Html.php
imp/lib/Mime/Viewer/Images.php
imp/lib/Mime/Viewer/Itip.php
imp/lib/Mime/Viewer/Mdn.php
imp/lib/Mime/Viewer/Partial.php
imp/lib/Mime/Viewer/Pdf.php
imp/lib/Mime/Viewer/Pgp.php
imp/lib/Mime/Viewer/Plain.php
imp/lib/Mime/Viewer/Smime.php
imp/lib/Mime/Viewer/Status.php
imp/lib/Mime/Viewer/Tnef.php
imp/lib/Prefs/Ui.php
imp/lib/Spam.php
imp/lib/Ui/Compose.php
imp/lib/Ui/Mailbox.php
imp/lib/Views/ListMessages.php
imp/lib/Views/ShowMessage.php
imp/mailbox-mimp.php
imp/mailbox.php
imp/message-mimp.php
imp/message.php
imp/rss.php
imp/search-basic.php
imp/search.php
imp/templates/common-header.inc
imp/templates/dimp/javascript_defs_dimp.php
imp/templates/imp/javascript_defs.php
imp/thread.php
imp/view.php
ingo/filters.php
ingo/lib/Ingo.php
ingo/lib/Script.php
ingo/lib/Storage/Filters/Sql.php
ingo/lib/Storage/Prefs.php
ingo/lib/Storage/Sql.php
ingo/rule.php
ingo/templates/common-header.inc
ingo/templates/rule/header.inc
jeta/templates/common-header.inc
jonah/delivery/rss.php
jonah/lib/Block/latest.php
jonah/lib/Block/news.php
jonah/lib/Block/news_popular.php
jonah/lib/Block/story.php
jonah/lib/Driver.php
jonah/lib/Driver/Sql.php
jonah/lib/News.php
jonah/lib/News/sql.php
jonah/stories/share.php
jonah/templates/common-header.inc
kastalia/templates/common-header.inc
koward/lib/Koward/View/shared/_header.html.php
kronolith/data.php
kronolith/edit.php
kronolith/fb.php
kronolith/feed/index.php
kronolith/lib/Ajax/Application.php
kronolith/lib/Api.php
kronolith/lib/Application.php
kronolith/lib/Block/tree_alarms.php
kronolith/lib/Driver/Sql.php
kronolith/lib/Event.php
kronolith/lib/Kronolith.php
kronolith/lib/View/ExportEvent.php
kronolith/new.php
kronolith/scripts/agenda.php
kronolith/templates/common-header.inc
kronolith/templates/itip/notification.html.php
kronolith/templates/javascript_defs.php
kronolith/templates/view/view.inc
luxor/lib/Lang/Generic.php
luxor/lib/Luxor.php
luxor/templates/common-header.inc
mnemo/data.php
mnemo/lib/Driver/sql.php
mnemo/memo.php
mnemo/note/pdf.php
mnemo/templates/common-header.inc
mnemo/templates/view/memo.inc
nag/data.php
nag/lib/Api.php
nag/lib/Application.php
nag/lib/Driver/Sql.php
nag/lib/Forms/task.php
nag/lib/Nag.php
nag/lib/Task.php
nag/task.php
nag/templates/common-header.inc
nag/templates/view/task.inc
news/lib/Block/category.php
news/lib/Block/last.php
news/lib/Block/last_blogs.php
news/lib/Block/most_commented.php
news/lib/Block/most_read.php
news/lib/Driver/sql.php
news/lib/News.php
news/lib/View.php
news/mail.php
news/pdf.php
news/rss/comments.php
news/rss/index.php
news/rss/news.php
news/templates/common-header.inc
operator/graphgen.php
operator/templates/common-header.inc
pastie/templates/common-header.inc
shout/templates/common-header.inc
shout/templates/dialplan/edit.inc
skeleton/templates/common-header.inc
skoli/templates/common-header.inc
trean/add.php
trean/data.php
trean/lib/Application.php
trean/lib/Bookmarks.php
trean/rss.php
trean/templates/common-header.inc
turba/add.php
turba/config/sources.php.dist
turba/data.php
turba/lib/Driver.php
turba/lib/Driver/Ldap.php
turba/lib/Driver/Sql.php
turba/lib/Object.php
turba/lib/View/Browse.php
turba/templates/common-header.inc
turba/vcard.php
vilma/templates/common-header.inc
whups/lib/Driver.php
whups/lib/Driver/sql.php
whups/opensearch.php
whups/query/rss.php
whups/queue/rss.php
whups/scripts/mail-filter.php
whups/search/rss.php
whups/templates/common-header.inc
whups/ticket/rss.php
wicked/lib/Driver.php
wicked/lib/Driver/sql.php
wicked/lib/Page.php
wicked/lib/Page/MergeOrRename.php
wicked/lib/Wicked.php
wicked/opensearch.php
wicked/templates/common-header.inc
wicked/templates/edit/new.inc
wicked/templates/edit/standard.inc
wicked/templates/history/summary.inc