[mythtv-commits] mythtv commit: r24942 - in trunk/mythtv by stuartm
mythtv at cvs.mythtv.org
mythtv at cvs.mythtv.org
Wed Jun 2 12:45:36 UTC 2010
Author: stuartm
Date: 2010-06-02 12:45:36 +0000 (Wed, 02 Jun 2010)
New Revision: 24942
Changeset: http://svn.mythtv.org/trac/changeset/24942
Added:
trunk/mythtv/libs/libmythdb/mythlocale.cpp
trunk/mythtv/libs/libmythdb/mythlocale.h
trunk/mythtv/locales/
trunk/mythtv/locales/dummy.c
trunk/mythtv/locales/en_gb.xml
trunk/mythtv/locales/locales.pro
Modified:
trunk/mythtv/libs/libmyth/mythcontext.cpp
trunk/mythtv/libs/libmythdb/libmythdb.pro
trunk/mythtv/libs/libmythdb/mythcorecontext.cpp
trunk/mythtv/libs/libmythdb/mythcorecontext.h
trunk/mythtv/mythtv.pro
Log:
Add a new class, MythLocale. MythLocale primarily reads setting defaults from xml files on startup, inserting preferred defaults, such as language, for the locale automatically to simplify initial setup. Currently only settings stored in the settings table are covered, but the intention is for others such as frequency table and xmltv grabbers to be handled in time. These defaults won't affect existing setups, they don't overwrite settings which already exist. In future a 'Reset to locale defaults' option may be offered so existing users can benefit.\n\nThe locale files are designed to be treated like translations and submissions are welcome. Defaults should be chosen carefully, on the basis that they are better for the majority of users in that locale and not because of personal preference. This commit includes a file for the en_gb locale which illustrates the format and examples of settings which may benefit.
More information about the mythtv-commits
mailing list