diff options
author | Kjartan Maraas <kmaraas@gnome.org> | 2000-10-31 06:10:23 +0800 |
---|---|---|
committer | Kjartan Maraas <kmaraas@src.gnome.org> | 2000-10-31 06:10:23 +0800 |
commit | dd76f4c007ae749393c702a3d8b4555ec36711d3 (patch) | |
tree | 33729f6789ab096be4a6856e01549a42c2090f42 /addressbook | |
parent | e22fc888293da251575c89847dcada165e5b9076 (diff) | |
download | gsoc2013-evolution-dd76f4c007ae749393c702a3d8b4555ec36711d3.tar gsoc2013-evolution-dd76f4c007ae749393c702a3d8b4555ec36711d3.tar.gz gsoc2013-evolution-dd76f4c007ae749393c702a3d8b4555ec36711d3.tar.bz2 gsoc2013-evolution-dd76f4c007ae749393c702a3d8b4555ec36711d3.tar.lz gsoc2013-evolution-dd76f4c007ae749393c702a3d8b4555ec36711d3.tar.xz gsoc2013-evolution-dd76f4c007ae749393c702a3d8b4555ec36711d3.tar.zst gsoc2013-evolution-dd76f4c007ae749393c702a3d8b4555ec36711d3.zip |
Fixed marking of strings for translation. Use "_(" instead of "_ (". Add
2000-10-30 Kjartan Maraas <kmaraas@gnome.org>
* backend/e-book/e-card.c: Fixed marking of strings
for translation. Use "_(" instead of "_ (".
* gui/component/addressbook-factory.c: Add missing
calls to bindtextdomain() and textdomain noticed by
Dan Winship.
* gui/component/addressbook.c: Marked string for translation.
svn path=/trunk/; revision=6282
Diffstat (limited to 'addressbook')
-rw-r--r-- | addressbook/ChangeLog | 9 | ||||
-rw-r--r-- | addressbook/backend/ebook/e-card.c | 70 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook-factory.c | 4 | ||||
-rw-r--r-- | addressbook/gui/component/addressbook.c | 2 |
4 files changed, 49 insertions, 36 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog index 77e4776a11..7a54abd23f 100644 --- a/addressbook/ChangeLog +++ b/addressbook/ChangeLog @@ -1,3 +1,12 @@ +2000-10-30 Kjartan Maraas <kmaraas@gnome.org> + + * backend/e-book/e-card.c: Fixed marking of strings + for translation. Use "_(" instead of "_ (". + * gui/component/addressbook-factory.c: Add missing + calls to bindtextdomain() and textdomain noticed by + Dan Winship. + * gui/component/addressbook.c: Marked string for translation. + 2000-10-27 Christopher James Lahey <clahey@helixcode.com> * backend/pas/Makefile.am, gui/search/Makefile.am, diff --git a/addressbook/backend/ebook/e-card.c b/addressbook/backend/ebook/e-card.c index 1a6fa8f9a0..37a35b05e2 100644 --- a/addressbook/backend/ebook/e-card.c +++ b/addressbook/backend/ebook/e-card.c @@ -3041,14 +3041,14 @@ card_to_string (Card *crd) string = g_string_new (""); - add_CardStrProperty_to_string (string, _ ("Card: "), &crd->fname); + add_CardStrProperty_to_string (string, _("Card: "), &crd->fname); if (crd->name.prop.used) { - addProp_to_string (string, _ ("\nName: ")); - add_strProp_to_string (string, _ ("\n Prefix: "), crd->name.prefix); - add_strProp_to_string (string, _ ("\n Given: "), crd->name.given); - add_strProp_to_string (string, _ ("\n Additional: "), crd->name.additional); - add_strProp_to_string (string, _ ("\n Family: "), crd->name.family); - add_strProp_to_string (string, _ ("\n Suffix: "), crd->name.suffix); + addProp_to_string (string, _("\nName: ")); + add_strProp_to_string (string, _("\n Prefix: "), crd->name.prefix); + add_strProp_to_string (string, _("\n Given: "), crd->name.given); + add_strProp_to_string (string, _("\n Additional: "), crd->name.additional); + add_strProp_to_string (string, _("\n Family: "), crd->name.family); + add_strProp_to_string (string, _("\n Suffix: "), crd->name.suffix); g_string_append_c (string, '\n'); } @@ -3062,7 +3062,7 @@ card_to_string (Card *crd) char *date_str; date_str = card_bday_str (crd->bday); - add_strProp_to_string (string, _ ("\nBirth Date: "), date_str); + add_strProp_to_string (string, _("\nBirth Date: "), date_str); free (date_str); } @@ -3073,15 +3073,15 @@ card_to_string (Card *crd) CardDelAddr *deladdr = (CardDelAddr *) node->data; if (deladdr->prop.used) { - addProp_to_string (string, _ ("\nAddress:")); + addProp_to_string (string, _("\nAddress:")); add_strAddrType (string, deladdr->type); - add_strProp_to_string (string, _ ("\n Postal Box: "), deladdr->po); - add_strProp_to_string (string, _ ("\n Ext: "),deladdr->ext); - add_strProp_to_string (string, _ ("\n Street: "),deladdr->street); - add_strProp_to_string (string, _ ("\n City: "), deladdr->city); - add_strProp_to_string (string, _ ("\n Region: "), deladdr->region); - add_strProp_to_string (string, _ ("\n Postal Code: "), deladdr->code); - add_strProp_to_string (string, _ ("\n Country: "), deladdr->country); + add_strProp_to_string (string, _("\n Postal Box: "), deladdr->po); + add_strProp_to_string (string, _("\n Ext: "),deladdr->ext); + add_strProp_to_string (string, _("\n Street: "),deladdr->street); + add_strProp_to_string (string, _("\n City: "), deladdr->city); + add_strProp_to_string (string, _("\n Region: "), deladdr->region); + add_strProp_to_string (string, _("\n Postal Code: "), deladdr->code); + add_strProp_to_string (string, _("\n Country: "), deladdr->country); } } @@ -3094,7 +3094,7 @@ card_to_string (Card *crd) for (node = crd->dellabel.l; node; node = node->next) { CardDelLabel *dellabel = (CardDelLabel *) node->data; - add_strProp_to_string (string, _ ("\nDelivery Label: "), + add_strProp_to_string (string, _("\nDelivery Label: "), dellabel->data); add_strAddrType (string, dellabel->type); } @@ -3106,10 +3106,10 @@ card_to_string (Card *crd) if (crd->phone.l->next) { sep = " "; - g_string_append (string, _ ("\nTelephones:\n")); + g_string_append (string, _("\nTelephones:\n")); } else { sep = " "; - g_string_append (string, _ ("\nTelephone:")); + g_string_append (string, _("\nTelephone:")); } for (node = crd->phone.l; node; node = node->next) { @@ -3133,10 +3133,10 @@ card_to_string (Card *crd) if (crd->email.l->next) { sep = " "; - g_string_append (string, _ ("\nE-mail:\n")); + g_string_append (string, _("\nE-mail:\n")); } else { sep = " "; - g_string_append (string, _ ("\nE-mail:")); + g_string_append (string, _("\nE-mail:")); } @@ -3155,13 +3155,13 @@ card_to_string (Card *crd) g_string_append_c (string, '\n'); } - add_CardStrProperty_to_string (string, _ ("\nMailer: "), &crd->mailer); + add_CardStrProperty_to_string (string, _("\nMailer: "), &crd->mailer); if (crd->timezn.prop.used) { char *str; str = card_timezn_str (crd->timezn); - add_strProp_to_string (string, _ ("\nTime Zone: "), str); + add_strProp_to_string (string, _("\nTime Zone: "), str); free (str); } @@ -3169,11 +3169,11 @@ card_to_string (Card *crd) char *str; str = card_geopos_str (crd->geopos); - add_strProp_to_string (string, _ ("\nGeo Location: "), str); + add_strProp_to_string (string, _("\nGeo Location: "), str); free (str); } - add_CardStrProperty_to_string (string, _ ("\nBusiness Role: "), &crd->role); + add_CardStrProperty_to_string (string, _("\nBusiness Role: "), &crd->role); /* if (crd->logo.prop.used) { addPropSizedValue (string, _ ("\nLogo: "), @@ -3185,17 +3185,17 @@ card_to_string (Card *crd) addstringectProp (string, card_convert_to_stringect (crd->agent));*/ if (crd->org.prop.used) { - addProp_to_string (string, _ ("\nOrg: ")); - add_strProp_to_string (string, _ ("\n Name: "), crd->org.name); - add_strProp_to_string (string, _ ("\n Unit: "), crd->org.unit1); - add_strProp_to_string (string, _ ("\n Unit2: "), crd->org.unit2); - add_strProp_to_string (string, _ ("\n Unit3: "), crd->org.unit3); - add_strProp_to_string (string, _ ("\n Unit4: "), crd->org.unit4); + addProp_to_string (string, _("\nOrg: ")); + add_strProp_to_string (string, _("\n Name: "), crd->org.name); + add_strProp_to_string (string, _("\n Unit: "), crd->org.unit1); + add_strProp_to_string (string, _("\n Unit2: "), crd->org.unit2); + add_strProp_to_string (string, _("\n Unit3: "), crd->org.unit3); + add_strProp_to_string (string, _("\n Unit4: "), crd->org.unit4); g_string_append_c (string, '\n'); } - add_CardStrProperty_to_string (string, _ ("\nCategories: "), &crd->categories); - add_CardStrProperty_to_string (string, _ ("\nComment: "), &crd->comment); + add_CardStrProperty_to_string (string, _("\nCategories: "), &crd->categories); + add_CardStrProperty_to_string (string, _("\nComment: "), &crd->comment); /* if (crd->sound.prop.used) { if (crd->sound.type != SOUND_PHONETIC) @@ -3208,10 +3208,10 @@ card_to_string (Card *crd) add_SoundType (string, crd->sound.type); }*/ - add_CardStrProperty_to_string (string, _ ("\nUnique String: "), &crd->uid); + add_CardStrProperty_to_string (string, _("\nUnique String: "), &crd->uid); if (crd->key.prop.used) { - add_strProp_to_string (string, _ ("\nPublic Key: "), crd->key.data); + add_strProp_to_string (string, _("\nPublic Key: "), crd->key.data); add_strKeyType (string, crd->key.type); } diff --git a/addressbook/gui/component/addressbook-factory.c b/addressbook/gui/component/addressbook-factory.c index 6b2d194a42..ebfd0d9cfd 100644 --- a/addressbook/gui/component/addressbook-factory.c +++ b/addressbook/gui/component/addressbook-factory.c @@ -43,8 +43,12 @@ init_bonobo (int argc, char **argv) int main (int argc, char **argv) { + bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR); + textdomain (PACKAGE); + init_corba (&argc, argv); + init_bonobo (argc, argv); /* FIXME: Messy names here. This file should be `main.c'. `addressbook.c' should diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index dee910c258..22ab0516fb 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -272,7 +272,7 @@ make_quick_search_widget (GtkSignalFunc start_search_func, gtk_box_pack_start (GTK_BOX (search_vbox), search_entry, FALSE, TRUE, 3); gtk_box_pack_start (GTK_BOX (search_vbox), - gtk_label_new("Quick Search"), + gtk_label_new(_("Quick Search")), FALSE, TRUE, 0); return search_vbox; |