Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WIP: Change strings from title case to sentence case (C code only).
  • Loading branch information
Mark Clarkstone committed Oct 23, 2015
1 parent 3f980b9 commit 56a3108
Show file tree
Hide file tree
Showing 24 changed files with 225 additions and 221 deletions.
286 changes: 145 additions & 141 deletions intl/tvheadend.en_US.po

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/access.c
Expand Up @@ -1417,7 +1417,7 @@ const idclass_t access_entry_class = {
{
.type = PT_BOOL,
.id = "adv_streaming",
.name = N_("Advanced Streaming"),
.name = N_("Advanced streaming"),
.off = offsetof(access_entry_t, ae_adv_streaming),
},
{
Expand Down Expand Up @@ -1471,7 +1471,7 @@ const idclass_t access_entry_class = {
.type = PT_STR,
.islist = 1,
.id = "dvr_config",
.name = N_("DVR Configuration Profiles"),
.name = N_("DVR configuration profiles"),
.set = access_entry_dvr_config_set,
.get = access_entry_dvr_config_get,
.list = dvr_entry_class_config_name_list,
Expand All @@ -1492,7 +1492,7 @@ const idclass_t access_entry_class = {
{
.type = PT_INT,
.id = "conn_limit_type",
.name = N_("Connection Limit Type"),
.name = N_("Limited connection to"),
.off = offsetof(access_entry_t, ae_conn_limit_type),
.list = access_entry_conn_limit_type_enum,
},
Expand Down Expand Up @@ -1526,7 +1526,7 @@ const idclass_t access_entry_class = {
.type = PT_STR,
.islist = 1,
.id = "channel_tag",
.name = N_("Channel Tags"),
.name = N_("Channel tags"),
.set = access_entry_chtag_set,
.get = access_entry_chtag_get,
.list = channel_tag_class_get_list,
Expand Down
10 changes: 5 additions & 5 deletions src/bouquet.c
Expand Up @@ -890,7 +890,7 @@ const idclass_t bouquet_class = {
{
.type = PT_BOOL,
.id = "maptoch",
.name = N_("Auto-Map to Channels"),
.name = N_("Auto map to channels"),
.off = offsetof(bouquet_t, bq_maptoch),
.notify = bouquet_class_maptoch_notify,
},
Expand Down Expand Up @@ -918,14 +918,14 @@ const idclass_t bouquet_class = {
{
.type = PT_BOOL,
.id = "chtag",
.name = N_("Create Tag"),
.name = N_("Create tag"),
.off = offsetof(bouquet_t, bq_chtag),
.notify = bouquet_class_chtag_notify,
},
{
.type = PT_STR,
.id = "chtag_ref",
.name = N_("Channel Tag Reference"),
.name = N_("Channel tag reference"),
.get = bouquet_class_chtag_ref_get,
.set = bouquet_class_chtag_ref_set,
.rend = bouquet_class_chtag_ref_rend,
Expand Down Expand Up @@ -982,7 +982,7 @@ const idclass_t bouquet_class = {
{
.type = PT_U32,
.id = "services_seen",
.name = N_("# Services Seen"),
.name = N_("# Services seen"),
.off = offsetof(bouquet_t, bq_services_seen),
.opts = PO_RDONLY,
},
Expand All @@ -1002,7 +1002,7 @@ const idclass_t bouquet_class = {
{
.type = PT_U32,
.id = "lcn_off",
.name = N_("Channel Number Offset"),
.name = N_("Channel number offset"),
.off = offsetof(bouquet_t, bq_lcn_offset),
.notify = bouquet_class_lcn_offset_notify,
},
Expand Down
10 changes: 5 additions & 5 deletions src/channels.c
Expand Up @@ -302,7 +302,7 @@ const idclass_t channel_class = {
{
.type = PT_BOOL,
.id = "autoname",
.name = N_("Auto Name"),
.name = N_("Auto name"),
.off = offsetof(channel_t, ch_autoname),
.set = channel_class_autoname_set,
.opts = PO_NOSAVE,
Expand Down Expand Up @@ -341,7 +341,7 @@ const idclass_t channel_class = {
{
.type = PT_BOOL,
.id = "epgauto",
.name = N_("Auto EPG Channel"),
.name = N_("Auto EPG channel"),
.off = offsetof(channel_t, ch_epgauto),
},
{
Expand All @@ -357,14 +357,14 @@ const idclass_t channel_class = {
{
.type = PT_INT,
.id = "dvr_pre_time",
.name = N_("DVR Pre"), // TODO: better text?
.name = N_("DVR pre record (mins)"), // TODO: better text?
.off = offsetof(channel_t, ch_dvr_extra_time_pre),
.opts = PO_ADVANCED
},
{
.type = PT_INT,
.id = "dvr_pst_time",
.name = N_("DVR Post"), // TODO: better text?
.name = N_("DVR post record (mins)"), // TODO: better text?
.off = offsetof(channel_t, ch_dvr_extra_time_post),
.opts = PO_ADVANCED
},
Expand Down Expand Up @@ -1128,7 +1128,7 @@ channel_tag_class_get_list(void *o, const char *lang)

const idclass_t channel_tag_class = {
.ic_class = "channeltag",
.ic_caption = N_("Channel Tag"),
.ic_caption = N_("Channel tag"),
.ic_event = "channeltag",
.ic_save = channel_tag_class_save,
.ic_get_title = channel_tag_class_get_title,
Expand Down
2 changes: 1 addition & 1 deletion src/config.c
Expand Up @@ -1890,7 +1890,7 @@ const idclass_t config_class = {
.number = 3,
},
{
.name = N_("DVB Scan Files"),
.name = N_("DVB scan files"),
.number = 4,
},
{
Expand Down
6 changes: 3 additions & 3 deletions src/descrambler/caclient.c
Expand Up @@ -170,7 +170,7 @@ caclient_class_get_title ( idnode_t *in, const char *lang )
static char buf[32];
if (cac->cac_name && cac->cac_name[0])
return cac->cac_name;
snprintf(buf, sizeof(buf), tvh_gettext_lang(lang, N_("CA Client %i")), cac->cac_index);
snprintf(buf, sizeof(buf), tvh_gettext_lang(lang, N_("CA client %i")), cac->cac_index);
return buf;
}

Expand Down Expand Up @@ -233,7 +233,7 @@ caclient_class_status_get(void *o)
const idclass_t caclient_class =
{
.ic_class = "caclient",
.ic_caption = N_("Conditional Access Client"),
.ic_caption = N_("Conditional access client"),
.ic_save = caclient_class_save,
.ic_event = "caclient",
.ic_get_title = caclient_class_get_title,
Expand Down Expand Up @@ -265,7 +265,7 @@ const idclass_t caclient_class =
{
.type = PT_STR,
.id = "name",
.name = N_("Client Name"),
.name = N_("Client name"),
.off = offsetof(caclient_t, cac_name),
.notify = idnode_notify_title_changed,
},
Expand Down
2 changes: 1 addition & 1 deletion src/descrambler/capmt.c
Expand Up @@ -2228,7 +2228,7 @@ const idclass_t caclient_capmt_class =
{
.type = PT_STR,
.id = "camdfilename",
.name = N_("Camd.socket Filename / IP Address (TCP mode)"),
.name = N_("Camd.socket filename / IP Address (TCP mode)"),
.off = offsetof(capmt_t, capmt_sockfile),
.def.s = "/tmp/camd.socket",
},
Expand Down
4 changes: 2 additions & 2 deletions src/descrambler/constcw.c
Expand Up @@ -282,7 +282,7 @@ const idclass_t caclient_ccw_des_class =
{
.ic_super = &caclient_class,
.ic_class = "caclient_ccw_des",
.ic_caption = N_("DES Constant Code Word Client"),
.ic_caption = N_("DES Constant code word client"),
.ic_properties = (const property_t[]){
{
.type = PT_U16,
Expand Down Expand Up @@ -342,7 +342,7 @@ const idclass_t caclient_ccw_aes_class =
{
.ic_super = &caclient_class,
.ic_class = "caclient_ccw_aes",
.ic_caption = N_("AES Constant Code Word Client"),
.ic_caption = N_("AES Constant code word client"),
.ic_properties = (const property_t[]){
{
.type = PT_U16,
Expand Down
2 changes: 1 addition & 1 deletion src/descrambler/cwc.c
Expand Up @@ -1733,7 +1733,7 @@ const idclass_t caclient_cwc_class =
{
.ic_super = &caclient_class,
.ic_class = "caclient_cwc",
.ic_caption = N_("Code Word Client (newcamd)"),
.ic_caption = N_("Code word client (newcamd)"),
.ic_properties = (const property_t[]){
{
.type = PT_STR,
Expand Down
10 changes: 5 additions & 5 deletions src/dvr/dvr_autorec.c
Expand Up @@ -953,7 +953,7 @@ dvr_autorec_entry_class_owner_opts(void *o)

const idclass_t dvr_autorec_entry_class = {
.ic_class = "dvrautorec",
.ic_caption = N_("DVR Auto-Record Entry"),
.ic_caption = N_("DVR auto record entry"),
.ic_event = "dvrautorec",
.ic_save = dvr_autorec_entry_class_save,
.ic_get_title = dvr_autorec_entry_class_get_title,
Expand Down Expand Up @@ -1003,7 +1003,7 @@ const idclass_t dvr_autorec_entry_class = {
{
.type = PT_STR,
.id = "tag",
.name = N_("Channel Tag"),
.name = N_("Channel tag"),
.set = dvr_autorec_entry_class_tag_set,
.get = dvr_autorec_entry_class_tag_get,
.rend = dvr_autorec_entry_class_tag_rend,
Expand Down Expand Up @@ -1071,7 +1071,7 @@ const idclass_t dvr_autorec_entry_class = {
{
.type = PT_U32,
.id = "content_type",
.name = N_("Content Type"),
.name = N_("Content type"),
.list = dvr_autorec_entry_class_content_type_list,
.off = offsetof(dvr_autorec_entry_t, dae_content_type),
},
Expand All @@ -1094,7 +1094,7 @@ const idclass_t dvr_autorec_entry_class = {
{
.type = PT_U32,
.id = "retention",
.name = N_("DVR Log Retention (days)"),
.name = N_("DVR keep recording details for... (days)"),
.off = offsetof(dvr_autorec_entry_t, dae_retention),
.opts = PO_HIDDEN,
},
Expand All @@ -1115,7 +1115,7 @@ const idclass_t dvr_autorec_entry_class = {
{
.type = PT_STR,
.id = "config_name",
.name = N_("DVR Configuration"),
.name = N_("DVR configuration"),
.set = dvr_autorec_entry_class_config_name_set,
.get = dvr_autorec_entry_class_config_name_get,
.rend = dvr_autorec_entry_class_config_name_rend,
Expand Down
16 changes: 8 additions & 8 deletions src/dvr/dvr_config.c
Expand Up @@ -660,7 +660,7 @@ dvr_config_class_get_title (idnode_t *self, const char *lang)
dvr_config_t *cfg = (dvr_config_t *)self;
if (!dvr_config_is_default(cfg))
return cfg->dvr_config_name;
return N_("(Default Profile)");
return N_("(Default profile)");
}

static int
Expand Down Expand Up @@ -724,15 +724,15 @@ dvr_config_class_pathname_set(void *o, const void *v)

const idclass_t dvr_config_class = {
.ic_class = "dvrconfig",
.ic_caption = N_("DVR Configuration Profile"),
.ic_caption = N_("DVR configuration profile"),
.ic_event = "dvrconfig",
.ic_save = dvr_config_class_save,
.ic_get_title = dvr_config_class_get_title,
.ic_delete = dvr_config_class_delete,
.ic_perm = dvr_config_class_perm,
.ic_groups = (const property_group_t[]) {
{
.name = N_("DVR Behavior"),
.name = N_("DVR behavior"),
.number = 1,
},
{
Expand Down Expand Up @@ -774,7 +774,7 @@ const idclass_t dvr_config_class = {
{
.type = PT_STR,
.id = "name",
.name = N_("Configuration Name"),
.name = N_("Configuration name"),
.set = dvr_config_class_name_set,
.off = offsetof(dvr_config_t, dvr_config_name),
.def.s = "! New config",
Expand All @@ -801,7 +801,7 @@ const idclass_t dvr_config_class = {
{
.type = PT_INT,
.id = "cache",
.name = N_("Cache Scheme"),
.name = N_("Cache scheme"),
.off = offsetof(dvr_config_t, dvr_muxcnf.m_cache),
.def.i = MC_CACHE_DONTKEEP,
.list = dvr_config_class_cache_list,
Expand All @@ -810,22 +810,22 @@ const idclass_t dvr_config_class = {
{
.type = PT_U32,
.id = "retention-days",
.name = N_("DVR Log Retention Time (days)"),
.name = N_("DVR keep recording details for... (days)"),
.off = offsetof(dvr_config_t, dvr_retention_days),
.def.u32 = 31,
.group = 1,
},
{
.type = PT_U32,
.id = "removal-days",
.name = N_("DVR File Removal Time (days)"),
.name = N_("DVR remove file after... (days)"),
.off = offsetof(dvr_config_t, dvr_removal_days),
.group = 1,
},
{
.type = PT_BOOL,
.id = "clone",
.name = N_("Clone Scheduled Entry On Error"),
.name = N_("Clone scheduled entry on error"),
.off = offsetof(dvr_config_t, dvr_clone),
.def.u32 = 1,
.group = 1,
Expand Down
18 changes: 9 additions & 9 deletions src/dvr/dvr_db.c
Expand Up @@ -2338,7 +2338,7 @@ dvr_entry_class_content_type_list(void *o, const char *lang)

const idclass_t dvr_entry_class = {
.ic_class = "dvrentry",
.ic_caption = N_("DVR Entry"),
.ic_caption = N_("DVR entry"),
.ic_event = "dvrentry",
.ic_save = dvr_entry_class_save,
.ic_get_title = dvr_entry_class_get_title,
Expand Down Expand Up @@ -2418,14 +2418,14 @@ const idclass_t dvr_entry_class = {
{
.type = PT_STR,
.id = "channel_icon",
.name = N_("Channel Icon"),
.name = N_("Channel icon"),
.get = dvr_entry_class_channel_icon_url_get,
.opts = PO_HIDDEN | PO_RDONLY | PO_NOSAVE,
},
{
.type = PT_STR,
.id = "channelname",
.name = N_("Channel Name"),
.name = N_("Channel name"),
.get = dvr_entry_class_channel_name_get,
.set = dvr_entry_class_channel_name_set,
.off = offsetof(dvr_entry_t, de_channel_name),
Expand Down Expand Up @@ -2488,7 +2488,7 @@ const idclass_t dvr_entry_class = {
{
.type = PT_U32,
.id = "retention",
.name = N_("DVR Log Retention (days)"),
.name = N_("DVR keep recording details for... (days)"),
.off = offsetof(dvr_entry_t, de_retention),
.set = dvr_entry_class_retention_set,
.opts = PO_HIDDEN
Expand All @@ -2514,7 +2514,7 @@ const idclass_t dvr_entry_class = {
{
.type = PT_STR,
.id = "config_name",
.name = N_("DVR Configuration"),
.name = N_("DVR configuration"),
.set = dvr_entry_class_config_name_set,
.get = dvr_entry_class_config_name_get,
.list = dvr_entry_class_config_name_list,
Expand Down Expand Up @@ -2587,22 +2587,22 @@ const idclass_t dvr_entry_class = {
{
.type = PT_STR,
.id = "autorec",
.name = N_("Auto Record"),
.name = N_("Auto record"),
.set = dvr_entry_class_autorec_set,
.get = dvr_entry_class_autorec_get,
.opts = PO_RDONLY,
},
{
.type = PT_STR,
.id = "autorec_caption",
.name = N_("Auto Record Caption"),
.name = N_("Auto record caption"),
.get = dvr_entry_class_autorec_caption_get,
.opts = PO_RDONLY | PO_NOSAVE | PO_HIDDEN,
},
{
.type = PT_STR,
.id = "timerec",
.name = N_("Auto Time Record"),
.name = N_("Auto time record"),
.set = dvr_entry_class_timerec_set,
.get = dvr_entry_class_timerec_get,
.opts = PO_RDONLY,
Expand Down Expand Up @@ -2633,7 +2633,7 @@ const idclass_t dvr_entry_class = {
{
.type = PT_U32,
.id = "content_type",
.name = N_("Content Type"),
.name = N_("Content type"),
.list = dvr_entry_class_content_type_list,
.off = offsetof(dvr_entry_t, de_content_type),
.opts = PO_RDONLY | PO_SORTKEY,
Expand Down

0 comments on commit 56a3108

Please sign in to comment.