diff options
author | Taybin Rutkin <taybin@taybin.com> | 2006-10-24 15:38:46 +0000 |
---|---|---|
committer | Taybin Rutkin <taybin@taybin.com> | 2006-10-24 15:38:46 +0000 |
commit | e6fdb9502498a04f22ab42c1ff1b5d33d1a43152 (patch) | |
tree | 16ab8e72781dec454df83f3665125c142ac1f039 /libs/pbd | |
parent | bbbc28d3e5ea5dc3e405571ea3cc968a62b70d16 (diff) |
Fix for internationalize. Now use the I18N() macro.
git-svn-id: svn://localhost/ardour2/trunk@1004 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/convert.cc | 4 | ||||
-rw-r--r-- | libs/pbd/pbd/convert.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/libs/pbd/convert.cc b/libs/pbd/convert.cc index 60d39c91e2..3b709d8e42 100644 --- a/libs/pbd/convert.cc +++ b/libs/pbd/convert.cc @@ -106,12 +106,12 @@ atof (const string& s) } vector<string> -internationalize (const char **array) +internationalize (const char *package_name, const char **array) { vector<string> v; for (uint32_t i = 0; array[i]; ++i) { - v.push_back (_(array[i])); + v.push_back (dgettext(package_name, array[i])); } return v; diff --git a/libs/pbd/pbd/convert.h b/libs/pbd/pbd/convert.h index 12e63ba6fc..e838b756bc 100644 --- a/libs/pbd/pbd/convert.h +++ b/libs/pbd/pbd/convert.h @@ -33,7 +33,7 @@ void url_decode (std::string&); std::string length2string (const int32_t frames, const float sample_rate); -std::vector<std::string> internationalize (const char **); +std::vector<std::string> internationalize (const char *, const char **); } //namespace PBD |