diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-04-28 16:11:36 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2013-04-28 16:11:36 +0000 |
commit | 41f0d1feccf622636a7b9fefd0ad6235ebb8c63c (patch) | |
tree | fb278b33303b4a6bd06154177926a760b3d0a61f /navit/country.c | |
parent | fe57f914b4ab318c3dd41607e3c6c8bb5bf407de (diff) | |
download | navit-41f0d1feccf622636a7b9fefd0ad6235ebb8c63c.tar.gz |
Add:Core:Made a central entry point for translation in preparation of future changes
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5456 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/country.c')
-rw-r--r-- | navit/country.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/navit/country.c b/navit/country.c index 52e5b0ef1..5375a22e6 100644 --- a/navit/country.c +++ b/navit/country.c @@ -317,7 +317,7 @@ country_attr_get(void *priv_data, enum attr_type attr_type, struct attr *attr) } return 0; case attr_label: - attr->u.str=gettext(country->name); + attr->u.str=navit_nls_gettext(country->name); this_->attr_next=attr_country_id; return 1; case attr_country_id: @@ -337,7 +337,7 @@ country_attr_get(void *priv_data, enum attr_type attr_type, struct attr *attr) this_->attr_next=attr_country_name; return 1; case attr_country_name: - attr->u.str=gettext(country->name); + attr->u.str=navit_nls_gettext(country->name); this_->attr_next=attr_none; return 1; default: @@ -403,7 +403,7 @@ country_search_get_item(struct country_search *this_) match(this_, attr_country_iso3, this_->country->iso3) || match(this_, attr_country_iso2, this_->country->iso2) || match(this_, attr_country_car, this_->country->car) || - match(this_, attr_country_name, gettext(this_->country->name))) { + match(this_, attr_country_name, navit_nls_gettext(this_->country->name))) { this_->item.id_lo=this_->country->id; return &this_->item; } |